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 the
ChopboxAnchor by
overwriting the erroneous methods.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener
org.eclipse.draw2d.AncestorListener.Stub -
Field Summary
Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase
listeners -
Constructor Summary
ConstructorsConstructorDescriptionChopboxAnchorFixed(org.eclipse.draw2d.IFigure figure, AdvancedAnchor advancedAnchor) -
Method Summary
Modifier and TypeMethodDescriptionprotected AdvancedAnchororg.eclipse.draw2d.geometry.PointgetLocation(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, hashCodeMethods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwnerMethods inherited from class org.eclipse.draw2d.ConnectionAnchorBase
fireAnchorMoved
-
Constructor Details
-
ChopboxAnchorFixed
-
-
Method Details
-
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:
getLocationin interfaceorg.eclipse.draw2d.ConnectionAnchor- Overrides:
getLocationin classorg.eclipse.draw2d.ChopboxAnchor
-
getAdvancedAnchor
-