|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
de.cau.cs.kieler.core.model.gmf.figures.layout.LabelLocator
public class LabelLocator
A border item locator for entity and port labels.
Constructor Summary | |
---|---|
LabelLocator(IFigure parent,
int side)
Creates a label locator. |
Method Summary | |
---|---|
Rectangle |
getValidLocation(Rectangle proposedLocation,
IFigure borderItem)
|
void |
relocate(IFigure borderItem)
|
void |
setPortBehavior(boolean theportBehavior)
Sets whether the locator should handle the parents as ports. |
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator |
---|
calculateNextNonConflictingPosition, findClosestSideOfParent, getAbsoluteToBorder, getBorderItemOffset, getConflictingBorderItemFigure, getConstraint, getCurrentSideOfParent, getParentBorder, getParentFigure, getPreferredLocation, getPreferredLocation, getPreferredSideOfParent, getSize, locateOnBorder, locateOnParent, setBorderItemOffset, setConstraint, setCurrentSideOfParent, setPreferredSideOfParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelLocator(IFigure parent, int side)
parent
- the parent figureside
- the sideMethod Detail |
---|
public void setPortBehavior(boolean theportBehavior)
theportBehavior
- the port behavior statuspublic void relocate(IFigure borderItem)
relocate
in interface Locator
relocate
in class org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
public Rectangle getValidLocation(Rectangle proposedLocation, IFigure borderItem)
getValidLocation
in interface IBorderItemLocator
getValidLocation
in class org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |