de.cau.cs.kieler.karma.util
Class CustomPortLocator

java.lang.Object
  extended by org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
      extended by 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 red

Constructor Summary
CustomPortLocator(IFigure parentFigure)
           
CustomPortLocator(IFigure borderItem, IFigure parentFigure, Rectangle constraint)
           
CustomPortLocator(IFigure borderItem, IFigure parentFigure, Rectangle constraint, int interval)
           
CustomPortLocator(IFigure parentFigure, int preferredSide)
           
CustomPortLocator(IFigure parentFigure, int preferredSide, int interval)
           
CustomPortLocator(int interval, IFigure parentFigure)
           
 
Method Summary
 Rectangle getPublicConstraint()
          public getter for the constraint attribute while the normal one is protected.
 
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
 

Constructor Detail

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)
Method Detail

getPublicConstraint

public Rectangle getPublicConstraint()
public getter for the constraint attribute while the normal one is protected.

Returns:
the constraint