public class NodeConstraints
extends java.lang.Object
implements java.io.Externalizable
Constructor and Description |
---|
NodeConstraints()
Initializes a new NodeConstraints instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of this NodeConstraints instance.
|
boolean |
getDisableMirroring()
Gets a value indicating whether the user can drag a side of the node past
its opposite side, so that they switch positions.
|
boolean |
getKeepInsideDiagram()
Gets a value indicating whether a node must always stay
inside the boundaries of the diagram that contains it.
|
boolean |
getKeepInsideParent()
Gets a value indicating whether a node must always stay
in the boundaries of its group master node.
|
boolean |
getKeepRatio()
Gets a value indicating whether the initial width/height ratio
of a node must be preserved.
|
float |
getMaxHeight()
Gets the largest allowed height for the node.
|
float |
getMaxWidth()
Gets the largest allowed width for the node.
|
float |
getMinHeight()
Gets the smallest allowed height for the node.
|
float |
getMinWidth()
Gets the smallest allowed width for the node.
|
DirectionConstraint |
getMoveDirection()
Gets a value indicating the movement direction constraint.
|
void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context) |
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable.
|
void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context) |
void |
setDisableMirroring(boolean value)
Sets a value indicating whether the user can drag a side of the node past
its opposite side, so that they switch positions.
|
void |
setKeepInsideDiagram(boolean value)
Sets a value indicating whether a node must always stay
inside the boundaries of the diagram that contains it.
|
void |
setKeepInsideParent(boolean value)
Sets a value indicating whether a node must always stay
in the boundaries of its group master node.
|
void |
setKeepRatio(boolean value)
Sets a value indicating whether the initial width/height ratio
of a node must be preserved.
|
void |
setMaxHeight(float value)
Sets the largest allowed height for the node.
|
void |
setMaxWidth(float value)
Sets the largest allowed width for the node.
|
void |
setMinHeight(float value)
Sets the smallest allowed height for the node.
|
void |
setMinWidth(float value)
Sets the smallest allowed width for the node.
|
void |
setMoveDirection(DirectionConstraint value)
Sets a value indicating the movement direction constraint.
|
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable.
|
public NodeConstraints()
public java.lang.Object clone()
clone
in class java.lang.Object
public void saveToXml(org.w3c.dom.Element xmlElement, XmlPersistContext context)
public void loadFromXml(org.w3c.dom.Element xmlElement, XmlPersistContext context) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public DirectionConstraint getMoveDirection()
DirectionConstraint
enumeration.public void setMoveDirection(DirectionConstraint value)
value
- A member of the DirectionConstraint
enumeration.public float getMinWidth()
public void setMinWidth(float value)
value
- A float value specifying the minimal node width.public float getMinHeight()
public void setMinHeight(float value)
value
- A float value specifying the minimal node height.public float getMaxWidth()
public void setMaxWidth(float value)
value
- A float value specifying the maximal node width.public float getMaxHeight()
public void setMaxHeight(float value)
value
- A float value specifying the maximal node height.public boolean getKeepInsideParent()
public void setKeepInsideParent(boolean value)
value
- Indicates whether a node should always stay
in the boundaries of its group master node.public boolean getKeepRatio()
public void setKeepRatio(boolean value)
value
- Indicates whether the initial width/height
ratio of a node should be preserved.public boolean getDisableMirroring()
public void setDisableMirroring(boolean value)
value
- Indicates whether the user can drag a side of the node
past its opposite side, so that they switch positions.public boolean getKeepInsideDiagram()
public void setKeepInsideDiagram(boolean value)
value
- Indicates whether a node should always stay
inside the boundaries of the diagram that contains it.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