|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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. |
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 |
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 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 |