Class RoleBorderItemLocator
- java.lang.Object
-
- org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
-
- org.eclipse.sirius.diagram.ui.tools.api.figure.locator.DBorderItemLocator
-
- org.palladiosimulator.editors.sirius.custom.style.borderItemLocator.RoleBorderItemLocator
-
- All Implemented Interfaces:
org.eclipse.draw2d.Locator
,org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator
,org.eclipse.gmf.runtime.draw2d.ui.figures.IBorderItemLocator
public class RoleBorderItemLocator extends org.eclipse.sirius.diagram.ui.tools.api.figure.locator.DBorderItemLocator
This class is a workaround for unexpected Sirius behavior and should be removed as soon as possible. It prevents the border item offset to be set to the default value by overriding thesetBorderItemOffset(Dimension)
-method.
-
-
Constructor Summary
Constructors Constructor Description RoleBorderItemLocator(org.eclipse.draw2d.IFigure parentFigure, int preferredSide)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setBorderItemOffset(org.eclipse.draw2d.geometry.Dimension borderItemOffset)
-
Methods inherited from class org.eclipse.sirius.diagram.ui.tools.api.figure.locator.DBorderItemLocator
conflicts, conflicts, findClosestSideOfParent, getBrotherFigures, getCurrentConstraint, getLeftTopOffset, getPreferredLocation, getRightBottomOffset, getValidLocation, getValidLocation, locateOnBorder, locateOnBorder, locateOnEastBorder, locateOnNorthBorder, locateOnParent, locateOnSouthBorder, locateOnWestBorder, relocate, resetBorderItemMovedState, setConstraint, setFiguresToIgnoresDuringNextRelocate, setLeftTopOffset, setRightBottomOffset, unfix
-
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
calculateNextNonConflictingPosition, getAbsoluteToBorder, getBorderItemOffset, getConflictingBorderItemFigure, getConstraint, getCurrentSideOfParent, getParentBorder, getParentFigure, getPreferredLocation, getPreferredSideOfParent, getSize, locateOnParent, setCurrentSideOfParent, setPreferredSideOfParent
-
-