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>
A representation of a bend point, which is defined either by a point or
by a content anchorage to which the content is attached.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The content element to which the bend point is attached.The position of the unattached bend point or the (optional) position hint for an attached bend point.int
hashCode()
boolean
Whether this bend point is defined through an attachment of a content anchorage.toString()
-
Constructor Details
-
BendPoint
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
Creates a new unattached bend point.- Parameters:
position
- The position of the bend point.
-
-
Method Details
-
equals
-
getContentAnchorage
The content element to which the bend point is attached.- Returns:
- The content element to which the bend point is attached.
-
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() -
isAttached
public boolean isAttached()Whether this bend point is defined through an attachment of a content anchorage.- Returns:
true
if the bend point is defined through an attachment,false
if the bend point is defined through a position.
-
toString
-