|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.lite.figures.SideAffixedElementPositioner
org.eclipse.gmf.runtime.lite.figures.BorderItemLocator
public class BorderItemLocator
| Constructor Summary | |
|---|---|
BorderItemLocator(org.eclipse.gef.GraphicalEditPart editPart)
Constructs an instance of BorderItemLocator. |
|
| Method Summary | |
|---|---|
protected org.eclipse.draw2d.geometry.Dimension |
getBorderItemSize()
Gets the size of the border item figure. |
int |
getCurrentSideOfParent()
|
org.eclipse.draw2d.IFigure |
getHostFigure()
getter for the parent figure |
org.eclipse.draw2d.geometry.Rectangle |
getModelConstraint()
|
protected org.eclipse.draw2d.geometry.Rectangle |
getPreferredLocation()
Get the preferred location. |
protected org.eclipse.draw2d.geometry.Rectangle |
getPreferredLocation(int side)
Get an initial location based on the side. |
int |
getPreferredSideOfParent()
Returns the preferred side of the parent figure on which to place this border item. |
protected Collection<? extends org.eclipse.draw2d.IFigure> |
getSiblings()
|
protected org.eclipse.draw2d.IFigure |
getTargetFigure()
|
void |
relocate(org.eclipse.draw2d.IFigure borderItem)
|
void |
setCurrentSideOfParent(int side)
Sets the side of the parent figure on which the border item should appear. |
void |
setModelConstraint(org.eclipse.draw2d.geometry.Rectangle rectangle)
|
void |
setPreferredSideOfParent(int preferredSide)
Sets the preferred side of the parent figure on which to place this border item. |
org.eclipse.draw2d.geometry.Rectangle |
toContainerCoordinates(org.eclipse.draw2d.geometry.Rectangle relativeOffset)
Convert the relative coordinates in the model to ones that are relative to the container. |
| Methods inherited from class org.eclipse.gmf.runtime.lite.figures.SideAffixedElementPositioner |
|---|
conflicts, findClosestSideOfParent, getBorderItemOffset, getGap, getParentBorder, getValidLocation, locateOnBorder, setBorderItemOffset, setGap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BorderItemLocator(org.eclipse.gef.GraphicalEditPart editPart)
editPart - the side affixed edit part| Method Detail |
|---|
public void setModelConstraint(org.eclipse.draw2d.geometry.Rectangle rectangle)
protected final org.eclipse.draw2d.IFigure getTargetFigure()
public org.eclipse.draw2d.geometry.Rectangle getModelConstraint()
protected org.eclipse.draw2d.geometry.Rectangle getPreferredLocation()
Rectangle A new rectangle representing the preferred location.protected org.eclipse.draw2d.geometry.Rectangle getPreferredLocation(int side)
side - the preferred side of the parent figure on which to place this
border item as defined in PositionConstants
public org.eclipse.draw2d.geometry.Rectangle toContainerCoordinates(org.eclipse.draw2d.geometry.Rectangle relativeOffset)
relativeOffset -
public void relocate(org.eclipse.draw2d.IFigure borderItem)
relocate in interface org.eclipse.draw2d.Locatorpublic org.eclipse.draw2d.IFigure getHostFigure()
getHostFigure in class SideAffixedElementPositionerIFigurepublic int getPreferredSideOfParent()
PositionConstantspublic void setPreferredSideOfParent(int preferredSide)
preferredSide - the preferred side of the parent figure on which to place this
border item as defined in PositionConstantspublic int getCurrentSideOfParent()
public void setCurrentSideOfParent(int side)
side - the side on which this border item appears as defined in
PositionConstantsprotected org.eclipse.draw2d.geometry.Dimension getBorderItemSize()
getBorderItemSize in class SideAffixedElementPositionerborderItem -
protected Collection<? extends org.eclipse.draw2d.IFigure> getSiblings()
getSiblings in class SideAffixedElementPositioner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||