|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.NodeConstraints
public class NodeConstraints
Represents the movement and size constraints that can be applied to a node.
Constructor Summary | |
---|---|
NodeConstraints()
Initializes a new NodeConstraints instance. |
Method Summary | |
---|---|
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 |
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. |
int |
getMoveDirection()
Gets a value indicating the movement direction constraint. |
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable. |
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 |
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(int value)
Sets a value indicating the movement direction constraint. |
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeConstraints()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public int getMoveDirection()
DirectionConstraint
constants.public void setMoveDirection(int value)
value
- One of the DirectionConstraint
constants.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 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |