|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.umd.cs.jazz.ZPathLayoutManager
ZPathLayoutManager positions a set of nodes along a path.
ZNode,
ZLayout| Constructor Summary | |
ZPathLayoutManager()
Default Constructor - uses default values unless specifically set |
|
| Method Summary | |
void |
doLayout(ZGroup node)
Apply this manager's layout algorithm to the specified node's children. |
boolean |
getClosed()
|
boolean |
getExact()
|
float |
getFlatness()
|
java.awt.Shape |
getShape()
|
float |
getSpace()
|
float |
getTolerance()
|
void |
postLayout(ZGroup node)
Notify the layout manager that the layout for this node has finished This is called after all children and the node itself are layed out. |
void |
preLayout(ZGroup node)
Notify the layout manager that a potentially recursive layout is starting. |
void |
setClosed(boolean closed)
Sets whether the path is closed to closed |
void |
setExact(boolean exact)
Sets whether the algorithm should iterate to get exact spacing or should run once |
void |
setFlatness(float flatness)
|
void |
setShape(java.awt.Shape shape)
Sets the shape that this layout manager will use. |
void |
setSpacing(float space)
|
void |
setState(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.Object fieldValue)
Set some state of this object as it gets read back in. |
void |
setTolerance(float tolerance)
|
void |
writeObject(ZObjectOutputStream out)
Write out all of this object's state. |
void |
writeObjectRecurse(ZObjectOutputStream out)
Specify which objects this object references in order to write out the scenegraph properly |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ZPathLayoutManager()
| Method Detail |
public void preLayout(ZGroup node)
The - node to apply this layout algorithm to.public void postLayout(ZGroup node)
The - node to apply this layout algorithm to.public void doLayout(ZGroup node)
node - The node to apply this layout algorithm to.public boolean getClosed()
public void setClosed(boolean closed)
closedclosed - Is the path closed?public float getFlatness()
public void setFlatness(float flatness)
flatness - Sets the flatness of the FlatteninPathIterator used to convert the Shape to pointspublic boolean getExact()
public void setExact(boolean exact)
exact - Whether exact spacing is specified.public float getTolerance()
public void setTolerance(float tolerance)
tolerance - The tolerance allowed if exact spacing is specified.public java.awt.Shape getShape()
public void setShape(java.awt.Shape shape)
s - The desired layout shapepublic float getSpace()
public void setSpacing(float space)
space - The spacing used by the layout algorithm during its first
iteration.
public void writeObject(ZObjectOutputStream out)
throws java.io.IOException
out - The stream that this object writes into
public void writeObjectRecurse(ZObjectOutputStream out)
throws java.io.IOException
out - The stream that this object writes into
public void setState(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.Object fieldValue)
fieldType - The fully qualified type of the fieldfieldName - The name of the fieldfieldValue - The value of the field
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||