|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.graph.Layout<N,E>
N
- extended NodeView with additional properties.E
- extended EdgeView with additional properties.public abstract class Layout<N extends NodeView,E extends EdgeView>
Constructor Summary | |
---|---|
Layout(Graph graph,
DefaultNodeView defaultNodeView,
DefaultEdgeView defaulEdgeView)
Creates a new Layout object for the given Graph object width the given settings. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Registers a ChangeListener. |
abstract E |
createEdgeView(Edge edge,
DefaultEdgeView defaultEdgeView)
Factory method for creating a EdgeView object. |
abstract N |
createNodeView(Node node,
DefaultNodeView defaultNodeView)
Factory method for creating a NodeView object. |
LayoutedGraph |
getLayoutGraph()
Returns the layouted graph. |
java.lang.String |
getMessage()
Returns a short description of the algorithm. |
int |
getPercentComplete()
Returns the progress in percents from 0 to 100 |
void |
rerun(LayoutedGraph layoutedGraph)
Reruns the layoutalgorithm. |
void |
run()
Starts the algorithm. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layout(Graph graph, DefaultNodeView defaultNodeView, DefaultEdgeView defaulEdgeView)
graph
- Graph object.defaultNodeView
- node settings.defaulEdgeView
- edge settings.Method Detail |
---|
public LayoutedGraph getLayoutGraph()
public void addChangeListener(javax.swing.event.ChangeListener l)
Algorithm
addChangeListener
in interface Algorithm
l
- Changepublic java.lang.String getMessage()
Algorithm
getMessage
in interface Algorithm
public int getPercentComplete()
Algorithm
getPercentComplete
in interface Algorithm
public void rerun(LayoutedGraph layoutedGraph)
layoutedGraph
- public void run()
Algorithm
run
in interface java.lang.Runnable
run
in interface Algorithm
public abstract N createNodeView(Node node, DefaultNodeView defaultNodeView)
node
- Node object.defaultNodeView
- node settings.
public abstract E createEdgeView(Edge edge, DefaultEdgeView defaultEdgeView)
edge
- Edge object.defaultEdgeView
- edge settings.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |