Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
ea444985
Commit
ea444985
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
description fix for transparent compartments
parent
7f17fbe2
No related branches found
No related tags found
1 merge request
!44
Resolve "semantic zoom"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/element/compartment/CompartmentConverter.java
+7
-1
7 additions, 1 deletion
...s/bioEntity/element/compartment/CompartmentConverter.java
with
7 additions
and
1 deletion
converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/element/compartment/CompartmentConverter.java
+
7
−
1
View file @
ea444985
...
...
@@ -103,7 +103,7 @@ public abstract class CompartmentConverter<T extends Compartment> extends Elemen
throw
new
DrawingException
(
new
ElementUtils
().
getElementTag
(
compartment
)
+
"Dimension of the alias must be bigger than 0."
);
}
boolean
textCentered
=
!
isTransparent
(
compartment
,
params
);
Rectangle2D
border
=
compartment
.
getBorder
()
;
Rectangle2D
border
;
if
(
textCentered
)
{
synchronized
(
placeFinderSynchronization
)
{
if
(
placeFinder
==
null
||
placeFinder
.
getModel
()
!=
compartment
.
getModelData
())
{
...
...
@@ -111,6 +111,12 @@ public abstract class CompartmentConverter<T extends Compartment> extends Elemen
}
border
=
placeFinder
.
getRetangle
(
compartment
,
params
.
getLevel
());
}
}
else
{
border
=
new
Rectangle2D
.
Double
(
compartment
.
getNamePoint
().
getX
(),
compartment
.
getNamePoint
().
getY
(),
compartment
.
getWidth
()
-
(
compartment
.
getNamePoint
().
getX
()
-
compartment
.
getX
()),
compartment
.
getHeight
()
-
(
compartment
.
getNamePoint
().
getY
()
-
compartment
.
getY
()));
}
double
fontSize
=
DEFAULT_FONT_SIZE
*
params
.
getScale
();
if
(
compartment
.
getFontSize
()
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment