|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.graph.LayoutedGraph<N,E>
N - E - public class LayoutedGraph<N extends NodeView,E extends EdgeView>
This class contains all layout informations for a Graph object. A single Graph can have one or more layouts.
| Constructor Summary | |
|---|---|
LayoutedGraph(Graph graph,
Layout layout,
DefaultNodeView defaultNodeView,
DefaultEdgeView defaultEdgeView)
Creates a new LayoutedGaph object for the given Graph object with the given settings. |
|
| Method Summary | |
|---|---|
java.util.HashMap<java.lang.Object,N> |
getAllNodes()
Returns a collection of all nodes and all subnodes. |
java.awt.geom.Rectangle2D.Float |
getBounds()
|
DefaultEdgeView |
getDefaultEdgeView()
Returns the edge settings. |
DefaultNodeView |
getDefaultNodeView()
Returns the node settings. |
java.util.ArrayList<E> |
getEdges()
Returns a collection of all edges. |
Graph |
getGraph()
Returns the Graph object. |
java.util.Collection<N> |
getNodes()
Returns a collection of all nodes. |
N |
getNodeView(Node node)
|
N |
getNodeView(java.lang.Object id)
Returns the NodeView object by the given id. |
java.lang.Float |
getPosHierarchie(int i)
|
java.util.Collection<N> |
getSubNodes()
Returns a collection of all subnodes. |
void |
nodeChanged(NodeViewEvent event)
Update bounds |
void |
setBounds(float x,
float y,
float width,
float height)
|
void |
setDefaultEdgeView(DefaultEdgeView defaultEdgeView)
Sets the edge settings. |
void |
setDefaultNodeView(DefaultNodeView defaultNodeView)
Sets the node settings. |
void |
setPosHierarchie(int i,
float pos)
|
void |
updateModel()
Reloads all nodes and edges from the Graph object and updates the existing model. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutedGraph(Graph graph,
Layout layout,
DefaultNodeView defaultNodeView,
DefaultEdgeView defaultEdgeView)
graph - Graph object.layout - Layout object.defaultNodeView - node settings.defaultEdgeView - edge settings.| Method Detail |
|---|
public java.util.ArrayList<E> getEdges()
public Graph getGraph()
public java.util.Collection<N> getNodes()
public java.util.Collection<N> getSubNodes()
public java.util.HashMap<java.lang.Object,N> getAllNodes()
public N getNodeView(java.lang.Object id)
id - the id of a node.
public N getNodeView(Node node)
public DefaultEdgeView getDefaultEdgeView()
public void setDefaultEdgeView(DefaultEdgeView defaultEdgeView)
defaultEdgeView - the edge settings.public DefaultNodeView getDefaultNodeView()
public void setDefaultNodeView(DefaultNodeView defaultNodeView)
defaultNodeView - the node settings.public void updateModel()
public void nodeChanged(NodeViewEvent event)
nodeChanged in interface NodeViewListenerevent - informations about the event.public java.awt.geom.Rectangle2D.Float getBounds()
public void setBounds(float x,
float y,
float width,
float height)
public java.lang.Float getPosHierarchie(int i)
public void setPosHierarchie(int i,
float pos)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||