public class AnchorPattern
extends java.lang.Object
implements java.lang.Cloneable, java.io.Externalizable
AnchorPoint
objects, which can be assigned to a
node via the DiagramNode.setAnchorPattern(com.mindfusion.diagramming.AnchorPattern)
method.Constructor and Description |
---|
AnchorPattern(AnchorPoint[] points,
java.lang.String id)
Creates an AnchorPattern for the specified points with the specified
identifier.
|
AnchorPattern(AnchorPointList points,
java.lang.String id)
Creates an AnchorPattern for the specified points with the specified
identifier.
|
AnchorPattern(java.lang.String id)
Creates a new empty AnchorPattern with the specified identifier.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a clone of the anchor pattern.
|
static AnchorPattern |
fromId(java.lang.String id)
Returns the AnchorPattern object that has the specified identifier.
|
java.lang.String |
getId()
Gets the identifier of this AnchorPattern.
|
AnchorPointList |
getPoints()
Gets a list of the points in this AnchorPattern.
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
public AnchorPattern(java.lang.String id)
id
- A string used to identify this AnchorPattern
.public AnchorPattern(AnchorPoint[] points, java.lang.String id)
points
- An array of AnchorPoint
objects representing the
anchor points.id
- A string used to identify this AnchorPattern
.public AnchorPattern(AnchorPointList points, java.lang.String id)
points
- An AnchorPointList
containing the anchor points.id
- A string used to identify this AnchorPattern
.public java.lang.Object clone()
clone
in class java.lang.Object
AnchorPattern
instance.public AnchorPointList getPoints()
AnchorPointList
instance.public static AnchorPattern fromId(java.lang.String id)
id
- An identifier of the looked-for AnchorPattern.AnchorPattern
identified by the specified string.public java.lang.String getId()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException