Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
af3
kernel
Commits
44cbea52
Commit
44cbea52
authored
9 years ago
by
Andreas Bayha
Browse files
Options
Downloads
Patches
Plain Diff
Factored out method to determine boundaries for layouted element.
parent
fbfaea88
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/SubDiagramEditPartBase.java
+14
-2
14 additions, 2 deletions
...tiss/tooling/base/ui/editpart/SubDiagramEditPartBase.java
with
14 additions
and
2 deletions
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/SubDiagramEditPartBase.java
+
14
−
2
View file @
44cbea52
...
...
@@ -47,7 +47,7 @@ import org.fortiss.tooling.kernel.model.INamedCommentedElement;
* @author mou
* @author $Author: hoelzl $
* @version $Rev: 8344 $
* @ConQAT.Rating YELLOW Hash:
8D288C854F9C6CDA4673E8D7BFF8A290
* @ConQAT.Rating YELLOW Hash:
5D5747D76C8C86781F7DA48EC1DE1AED
*/
public
abstract
class
SubDiagramEditPartBase
<
T
extends
ILayoutedModelElement
&
INamedCommentedElement
>
extends
ElementEditPartBase
<
T
>
{
...
...
@@ -94,7 +94,7 @@ public abstract class SubDiagramEditPartBase<T extends ILayoutedModelElement & I
Rectangle
result
=
new
Rectangle
();
for
(
Object
o
:
getModelChildren
())
{
if
(
o
instanceof
ILayoutedModelElement
)
{
Rectangle
p
=
get
Node
Bounds
((
ILayoutedModelElement
)
o
);
Rectangle
p
=
get
LayoutedElement
Bounds
((
ILayoutedModelElement
)
o
);
result
.
union
(
p
);
}
}
...
...
@@ -102,6 +102,18 @@ public abstract class SubDiagramEditPartBase<T extends ILayoutedModelElement & I
return
result
;
}
/**
* Determines the boundaries for a given {@link ILayoutedModelElement} in the context of this
* EditPart.
*
* @param layouted
* The {@link ILayoutedModelElement} to determine the boundaries for.
* @return {@link Rectangle} describing the boundaries.
*/
protected
Rectangle
getLayoutedElementBounds
(
ILayoutedModelElement
layouted
)
{
return
getNodeBounds
(
layouted
);
}
/** {@inheritDoc} */
@Override
protected
Rectangle
determineLabelFigureBounds
()
{
...
...
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