Class ChopboxAnchorFixed
- java.lang.Object
-
- org.eclipse.draw2d.ConnectionAnchorBase
-
- org.eclipse.draw2d.AbstractConnectionAnchor
-
- org.eclipse.draw2d.ChopboxAnchor
-
- org.eclipse.graphiti.ui.internal.util.draw2d.ChopboxAnchorFixed
-
- All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener
,org.eclipse.draw2d.ConnectionAnchor
- Direct Known Subclasses:
GFChopboxAnchor
public class ChopboxAnchorFixed extends org.eclipse.draw2d.ChopboxAnchor
The purpose of this class is to fix bugs in theChopboxAnchor
by overwriting the erroneous methods.
-
-
Constructor Summary
Constructors Constructor Description ChopboxAnchorFixed(org.eclipse.draw2d.IFigure figure, AdvancedAnchor advancedAnchor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdvancedAnchor
getAdvancedAnchor()
org.eclipse.draw2d.geometry.Point
getLocation(org.eclipse.draw2d.geometry.Point reference)
CHANGED: if the reference is in the center of the figure, the result was not correct.-
Methods inherited from class org.eclipse.draw2d.ChopboxAnchor
equals, getBox, getReferencePoint, hashCode
-
-
-
-
Constructor Detail
-
ChopboxAnchorFixed
public ChopboxAnchorFixed(org.eclipse.draw2d.IFigure figure, AdvancedAnchor advancedAnchor)
-
-
Method Detail
-
getLocation
public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
CHANGED: if the reference is in the center of the figure, the result was not correct. This method has to be kept in sync withGefService.getChopboxLocationOnBox(Point, Rectangle)
.- Specified by:
getLocation
in interfaceorg.eclipse.draw2d.ConnectionAnchor
- Overrides:
getLocation
in classorg.eclipse.draw2d.ChopboxAnchor
-
getAdvancedAnchor
protected AdvancedAnchor getAdvancedAnchor()
-
-