org.eclipse.gmf.runtime.lite.figures
Class SideAffixedFeedbackPositioner
java.lang.Object
org.eclipse.gmf.runtime.lite.figures.SideAffixedElementPositioner
org.eclipse.gmf.runtime.lite.figures.SideAffixedFeedbackPositioner
public class SideAffixedFeedbackPositioner
- extends SideAffixedElementPositioner
Positions creation feedback to give the user an idea where the element will be created.
- Author:
- bblajer
Method Summary |
protected org.eclipse.draw2d.geometry.Dimension |
getBorderItemSize()
|
protected org.eclipse.draw2d.IFigure |
getHostFigure()
|
protected Collection<? extends org.eclipse.draw2d.IFigure> |
getSiblings()
|
protected org.eclipse.draw2d.IFigure |
getSiblingsParent()
|
org.eclipse.draw2d.geometry.Rectangle |
getValidLocation(org.eclipse.draw2d.geometry.Rectangle proposedLocation)
Returns the valid location that is as close as possible to the given location. |
void |
setSiblingsParent(org.eclipse.draw2d.IFigure figure)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SideAffixedFeedbackPositioner
public SideAffixedFeedbackPositioner(org.eclipse.gef.GraphicalEditPart hostEditPart)
setSiblingsParent
public void setSiblingsParent(org.eclipse.draw2d.IFigure figure)
getSiblingsParent
protected org.eclipse.draw2d.IFigure getSiblingsParent()
getValidLocation
public org.eclipse.draw2d.geometry.Rectangle getValidLocation(org.eclipse.draw2d.geometry.Rectangle proposedLocation)
- Description copied from class:
SideAffixedElementPositioner
- Returns the valid location that is as close as possible to the given location. The given argument will not be modified.
- Overrides:
getValidLocation
in class SideAffixedElementPositioner
- Parameters:
proposedLocation
- proposed location.
getBorderItemSize
protected org.eclipse.draw2d.geometry.Dimension getBorderItemSize()
- Specified by:
getBorderItemSize
in class SideAffixedElementPositioner
getHostFigure
protected org.eclipse.draw2d.IFigure getHostFigure()
- Specified by:
getHostFigure
in class SideAffixedElementPositioner
getSiblings
protected Collection<? extends org.eclipse.draw2d.IFigure> getSiblings()
- Specified by:
getSiblings
in class SideAffixedElementPositioner
Copyright © 2012. All Rights Reserved.