Package org.eclipse.draw2d
Class RoundedRectangleAnchor
java.lang.Object
org.eclipse.draw2d.ConnectionAnchorBase
org.eclipse.draw2d.AbstractConnectionAnchor
org.eclipse.draw2d.ChopboxAnchor
org.eclipse.draw2d.RoundedRectangleAnchor
- All Implemented Interfaces:
- AncestorListener,- ConnectionAnchor
Anchor for rounded rectangles which is always on a line between the center
 and the reference point.
- Since:
- 3.8
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListenerAncestorListener.Stub
- 
Field SummaryFields inherited from class org.eclipse.draw2d.ConnectionAnchorBaselisteners
- 
Constructor SummaryConstructorsConstructorDescriptionRoundedRectangleAnchor(Figure figure, Dimension corners) Rounded Rectangle getCornerDimension should be public #302836 then Rounded Rectangle would be sufficient.Rounded Rectangle getCornerDimension should be public #302836 then Rounded Rectangle would be sufficient.
- 
Method SummaryModifier and TypeMethodDescriptiongetLocation(Point ref) Calculates the position with ChopboxAnchor#getLocation() and if the anchor is not at the rounded corners, the result is returned.Methods inherited from class org.eclipse.draw2d.ChopboxAnchorequals, getBox, getReferencePoint, hashCodeMethods inherited from class org.eclipse.draw2d.AbstractConnectionAnchoraddAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwnerMethods inherited from class org.eclipse.draw2d.ConnectionAnchorBasefireAnchorMoved
- 
Constructor Details- 
RoundedRectangleAnchorRounded Rectangle getCornerDimension should be public #302836 then Rounded Rectangle would be sufficient.
- 
RoundedRectangleAnchorRounded Rectangle getCornerDimension should be public #302836 then Rounded Rectangle would be sufficient.
 
- 
- 
Method Details- 
getLocationCalculates the position with ChopboxAnchor#getLocation() and if the anchor is not at the rounded corners, the result is returned. If the anchor point should be at a corner, the rectangle for the ellipse is determined and ellipseAnchorGetLocation returns the two intersection points between the line from calculated anchor point and the center of the rounded rectangle.- Specified by:
- getLocationin interface- ConnectionAnchor
- Overrides:
- getLocationin class- ChopboxAnchor
- Parameters:
- ref- The reference point
- Returns:
- The anchor location
 
 
-