Package org.eclipse.draw2d
Class XYAnchor
java.lang.Object
org.eclipse.draw2d.ConnectionAnchorBase
org.eclipse.draw2d.XYAnchor
- All Implemented Interfaces:
- ConnectionAnchor
Supports an anchor in the XY layout. This anchor exists independently without
 an owner.
- 
Field SummaryFields inherited from class org.eclipse.draw2d.ConnectionAnchorBaselisteners
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetLocation(Point reference) Returns the location of this anchor relative to the reference point given in as input.getOwner()Returnsnullas these anchors inherently do not depend on other figures for their location.Returns the point which is used as the reference by this connection anchor.voidsetLocation(Point p) Sets the location of this anchor and notifies all the listeners of the update.Methods inherited from class org.eclipse.draw2d.ConnectionAnchorBaseaddAnchorListener, fireAnchorMoved, removeAnchorListener
- 
Constructor Details- 
XYAnchorConstructs an XYAnchor at the Point p.- Parameters:
- p- the point where this anchor will be located
- Since:
- 2.0
 
 
- 
- 
Method Details- 
getLocationReturns the location of this anchor relative to the reference point given in as input. Since this is XY layout, the location of the point is independent of the reference point.- Parameters:
- reference- The reference Point in absolute coordinates
- Returns:
- The anchor's location
- See Also:
 
- 
getOwnerReturnsnullas these anchors inherently do not depend on other figures for their location.- Returns:
- The IFigure that contains this ConnectionAnchor
- Since:
- 2.0
- See Also:
 
- 
getReferencePointReturns the point which is used as the reference by this connection anchor. In the case of the XYAnchor, this point is the same as its location.- Returns:
- The reference Point
- See Also:
 
- 
setLocationSets the location of this anchor and notifies all the listeners of the update.- Parameters:
- p- the new location of this anchor
- Since:
- 2.0
- See Also:
 
 
-