|
||||||||||
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.kaom.karma.ptolemy.PtolemyPortBorderItemLocator
public class PtolemyPortBorderItemLocator
BorderItemLocator for determining the correct locations of ports in a kaom ptolemy diagram.
Constructor Summary | |
---|---|
PtolemyPortBorderItemLocator(IFigure parent,
int side,
List<Port> portsOfSide,
Port thisPort)
Creates a label locator. |
Method Summary | |
---|---|
Rectangle |
getValidLocation(Rectangle proposedLocation,
IFigure borderItem)
|
void |
relocate(IFigure borderItem)
|
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 PtolemyPortBorderItemLocator(IFigure parent, int side, List<Port> portsOfSide, Port thisPort)
parent
- the parent figureside
- the sideportsOfSide
- a list of the ports of the same sidethisPort
- the port that uses this locatorMethod Detail |
---|
public 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 |