|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.pzgui.PZManager
org.pzgui.layout.PZLayoutManager
public class PZLayoutManager
A simple extension of the PZManager which facilitates the automatic layout of objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.pzgui.PZManager |
|---|
PZManager.LayoutableInfo |
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.pzgui.PZManager |
|---|
layoutablePositions, windows, YAML |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
PZLayoutManager()
|
|
| Method Summary | |
|---|---|
void |
addDrawable(Drawable d)
Add a new entity to draw on the GUI. |
void |
attachWindow(PZWindow w)
Calls attchWindow(w, true). |
void |
closeWindow(PZWindow w)
Cleans up after a window which is closing. |
edu.uci.ics.jung.graph.Graph<Vertex,Edge> |
getGraph()
gets the graph backing the layout manager |
edu.uci.ics.jung.algorithms.layout.Layout<Vertex,Edge> |
getLayout()
gets the current layout, if any |
int |
getLayoutHeight()
Get the maximum height the layout engine will use for laying out elements. |
java.awt.Dimension |
getLayoutSize()
Get the maximum size the layout engine will use for laying out elements. |
int |
getLayoutWidth()
Get the maximum width the layout engine will use for laying out elements. |
boolean |
isAutoRecomputeLayoutSize()
If true, then the layout size will be recomputed when a window is added, removed, or resized. |
boolean |
isRelayoutAfterManualChange()
Gets whether to relayout when a node is dragged |
protected void |
postRedraw()
Update the position of vertices after each redraw and advance the layout engine if it is an incremental layout engine. |
void |
removeDrawable(Drawable d)
Stop drawing the specified entity. |
void |
setAutoRecomputeLayoutSize(boolean autoRecomputeLayoutSize)
Sets whether to automatically recompute layout size based on the window size |
void |
setLayout(edu.uci.ics.jung.algorithms.layout.Layout<Vertex,Edge> layout)
sets the current layout |
void |
setLayoutSize(int width,
int height)
Set the maximum size the layout engine will use for laying out elements. |
void |
setLayoutSizeBasedOnVisibleArea()
Sets the layout size to the size of the visible area. |
void |
setRelayoutAfterManualChange(boolean b)
Sets whether to relayout when a node is dragged |
void |
windowResized(PZWindow window)
Recomputes the layout size if isAutoRecomputeLayoutSize() is true |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PZLayoutManager()
| Method Detail |
|---|
public void addDrawable(Drawable d)
PZManager
addDrawable in class PZManagerd - the entity to start drawingpublic void removeDrawable(Drawable d)
PZManager
removeDrawable in class PZManagerd - the entity to stop drawingprotected void postRedraw()
postRedraw in class PZManagerpublic edu.uci.ics.jung.graph.Graph<Vertex,Edge> getGraph()
public edu.uci.ics.jung.algorithms.layout.Layout<Vertex,Edge> getLayout()
public void setLayout(edu.uci.ics.jung.algorithms.layout.Layout<Vertex,Edge> layout)
layout - the new layout, or null to turn off auto-layoutpublic java.awt.Dimension getLayoutSize()
public int getLayoutHeight()
public int getLayoutWidth()
public void setLayoutSize(int width,
int height)
public void setLayoutSizeBasedOnVisibleArea()
public void attachWindow(PZWindow w)
PZManager
attachWindow in class PZManagerpublic void closeWindow(PZWindow w)
PZManager
closeWindow in class PZManagerpublic void windowResized(PZWindow window)
windowResized in class PZManagerpublic boolean isAutoRecomputeLayoutSize()
public void setAutoRecomputeLayoutSize(boolean autoRecomputeLayoutSize)
public boolean isRelayoutAfterManualChange()
public void setRelayoutAfterManualChange(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||