Package org.eclipse.gef.mvc.fx.parts
Class IBendableContentPart.BendPoint
- java.lang.Object
-
- org.eclipse.gef.mvc.fx.parts.IBendableContentPart.BendPoint
-
- Enclosing interface:
- IBendableContentPart<V extends javafx.scene.Node>
public static class IBendableContentPart.BendPoint extends java.lang.ObjectA representation of a bend point, which is defined either by a point or by a content anchorage to which the content is attached.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.ObjectgetContentAnchorage()The content element to which the bend point is attached.PointgetPosition()The position of the unattached bend point or the (optional) position hint for an attached bend point.inthashCode()booleanisAttached()Whether this bend point is defined through an attachment of a content anchorage.java.lang.StringtoString()
-
-
-
Constructor Detail
-
BendPoint
public BendPoint(java.lang.Object contentAnchorage, Point position)Creates a new attached bend point.- Parameters:
contentAnchorage- The content anchorage, to which the point is attached.position- A position (hint) for the attached bend point.
-
BendPoint
public BendPoint(Point position)
Creates a new unattached bend point.- Parameters:
position- The position of the bend point.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getContentAnchorage
public java.lang.Object getContentAnchorage()
The content element to which the bend point is attached.- Returns:
- The content element to which the bend point is attached.
-
getPosition
public Point getPosition()
The position of the unattached bend point or the (optional) position hint for an attached bend point.- Returns:
- A point representing the position if the bend point is not attached, or a position hint for an attached bend point.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isAttached
public boolean isAttached()
Whether this bend point is defined through an attachment of a content anchorage.- Returns:
trueif the bend point is defined through an attachment,falseif the bend point is defined through a position.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-