|
||||||||||
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.
Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.
ZNode
,
ZLayout
Constructor Summary | |
ZPathLayoutManager()
Default Constructor - uses default values unless specifically set |
|
ZPathLayoutManager(java.awt.Shape s)
Constructor that accepts a shape |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this layout manager. |
void |
doLayout(ZGroup node)
Apply this manager's layout algorithm to the specified node's children. |
void |
doLayout(ZGroup node,
int millis)
Apply this manager's layout algorithm to the specified node's children, and animate the changes over time. |
boolean |
getClosed()
Determine whether the path is closed. |
boolean |
getExact()
Determine if exact spacing was specified. |
double |
getFlatness()
Return the current flatness of the FlatteningPathIterator used to convert the Shape to points. |
java.awt.Shape |
getShape()
Get the shape currently in use by this object. |
double |
getSpace()
The current spacing used by the layout algorithm during its first iteration. |
double |
getTolerance()
Get the tolerance allowed if exact spacing is specified. |
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 the path open or closed. |
void |
setExact(boolean exact)
Sets whether the algorithm should iterate to get exact spacing or should only run once. |
void |
setFlatness(double flatness)
Sets the flatness of the FlatteninPathIterator used to convert the Shape to points. |
void |
setShape(java.awt.Shape shape)
Sets the shape that this layout manager will use. |
void |
setSpacing(double space)
Set the spacing used by the layout algorithm during its first iteration. |
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(double tolerance)
Sets the tolerance, ie the error allowed, in laying out objects on the path. |
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 |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZPathLayoutManager()
public ZPathLayoutManager(java.awt.Shape s)
s
- The shape used for layoutMethod Detail |
public java.lang.Object clone()
clone
in interface ZLayoutManager
clone
in class java.lang.Object
public void preLayout(ZGroup node)
preLayout
in interface ZLayoutManager
The
- node to apply this layout algorithm to.public void postLayout(ZGroup node)
postLayout
in interface ZLayoutManager
node
- The node to apply this layout algorithm to.public void doLayout(ZGroup node, int millis)
doLayout
in interface ZLayoutManager
node
- The node to apply this layout algorithm to.millis
- The number of milliseconds over which to animate layout changes.public void doLayout(ZGroup node)
doLayout
in interface ZLayoutManager
node
- The node to apply this layout algorithm to.public boolean getClosed()
public void setClosed(boolean closed)
closed
- True to make this path closed.public double getFlatness()
public void setFlatness(double flatness)
flatness
- the flatness.public boolean getExact()
public void setExact(boolean exact)
exact
- Whether exact spacing is specified.public double getTolerance()
public void setTolerance(double 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 double getSpace()
public void setSpacing(double space)
space
- The spacing.public void writeObject(ZObjectOutputStream out) throws java.io.IOException
writeObject
in interface ZSerializable
out
- The stream that this object writes intopublic void writeObjectRecurse(ZObjectOutputStream out) throws java.io.IOException
writeObjectRecurse
in interface ZSerializable
out
- The stream that this object writes intopublic void setState(java.lang.String fieldType, java.lang.String fieldName, java.lang.Object fieldValue)
setState
in interface ZSerializable
fieldType
- The fully qualified type of the fieldfieldName
- The name of the fieldfieldValue
- The value of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |