de.cau.cs.kieler.karma.util
Class CustomPortLocator
java.lang.Object
org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
de.cau.cs.kieler.karma.util.CustomPortLocator
- All Implemented Interfaces:
- Locator, IBorderItemLocator
public class CustomPortLocator
- extends org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
Custom BorderItemLocator used by the ptolemy port position mechanism.
Works exactly the same as the normal BorderItemLocator just added a method for public access
of the constraint attribute.
- Rating

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, getValidLocation, locateOnBorder, locateOnParent, relocate, setBorderItemOffset, setConstraint, setCurrentSideOfParent, setPreferredSideOfParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomPortLocator
public CustomPortLocator(IFigure parentFigure)
CustomPortLocator
public CustomPortLocator(int interval,
IFigure parentFigure)
CustomPortLocator
public CustomPortLocator(IFigure parentFigure,
int preferredSide)
CustomPortLocator
public CustomPortLocator(IFigure parentFigure,
int preferredSide,
int interval)
CustomPortLocator
public CustomPortLocator(IFigure borderItem,
IFigure parentFigure,
Rectangle constraint)
CustomPortLocator
public CustomPortLocator(IFigure borderItem,
IFigure parentFigure,
Rectangle constraint,
int interval)
getPublicConstraint
public Rectangle getPublicConstraint()
- public getter for the constraint attribute while the normal one is protected.
- Returns:
- the constraint