Class GluePoint
java.lang.Object
com.independentsoft.office.odf.drawing.GluePoint
Represents a designated point in the area of a drawing object to which a connector shape can connect. All drawing objects have four standard glue points located at the center of the four edges of the object's bounding box.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the shape edge where a glue point is positioned.Gets the direction in which a connection line escapes from a drawing object if a connector connects to a glue point.intgetID()Gets unrestricted identifiers to draw elements.getX()Gets the horizontal position of the glue point.getY()Gets the vertical position of the glue point.voidsetAlignment(Alignment alignment)Sets the shape edge where a glue point is positioned.voidsetEscapeDirection(EscapeDirection escapeDirection)Sets the direction in which a connection line escapes from a drawing object if a connector connects to a glue point.voidsetID(int id)Sets unrestricted identifiers to draw elements.voidSets the horizontal position of the glue point.voidSets the vertical position of the glue point.toString()Converts the value of the current GluePoint object to its equivalent string representation.
-
Constructor Details
-
GluePoint
public GluePoint()Initializes a new instance of the GluePoint class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current GluePoint object to its equivalent string representation. -
getID
public int getID()Gets unrestricted identifiers to draw elements.- Returns:
- the id
-
setID
public void setID(int id)Sets unrestricted identifiers to draw elements.- Parameters:
id- the new id
-
getX
Gets the horizontal position of the glue point. The coordinate is either a percentage value relative to the drawing shape's center in horizontal direction.- Returns:
- the x
-
setX
Sets the horizontal position of the glue point. The coordinate is either a percentage value relative to the drawing shape's center in horizontal direction.- Parameters:
x- the new x
-
getY
Gets the vertical position of the glue point. The coordinate is either a percentage value relative to the drawing shape's center in vertical direction.- Returns:
- the y
-
setY
Sets the vertical position of the glue point. The coordinate is either a percentage value relative to the drawing shape's center in vertical direction.- Parameters:
y- the new y
-
getAlignment
Gets the shape edge where a glue point is positioned.- Returns:
- the alignment
-
setAlignment
Sets the shape edge where a glue point is positioned.- Parameters:
alignment- the new alignment
-
getEscapeDirection
Gets the direction in which a connection line escapes from a drawing object if a connector connects to a glue point.- Returns:
- the escape direction
-
setEscapeDirection
Sets the direction in which a connection line escapes from a drawing object if a connector connects to a glue point.- Parameters:
escapeDirection- the new escape direction
-