|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.iview.igraph.IGraph
public class IGraph
A graph with layout and view information.
Field Summary | |
---|---|
java.lang.String |
name
|
LListCollector |
nodes
|
java.lang.Class |
nodeType
|
java.lang.Class |
nodeViewType
|
protected lt.monarch.graph.GraphView |
view
|
Constructor Summary | |
---|---|
IGraph(java.lang.String theName)
Creates a new graph object with the given name and information from the given graph view. |
|
IGraph(java.lang.String theName,
lt.monarch.graph.GraphView graphView)
Creates a new graph object with the given name and information from the given graph view. |
|
IGraph(java.lang.String theName,
java.util.HashMap cpGraph)
Creates a new graph object with the given name and position information from the given map. |
|
IGraph(java.lang.String theName,
java.util.List cpGraph)
Creates a new graph object with the given name and position information from the given map. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
protected ix.iview.igraph.IGraph.GraphNodeComponent |
findNode(java.lang.Object node)
|
java.util.List |
getCanvasPoints()
|
java.util.List |
getGraphCanvasPoints()
|
java.lang.String |
getName()
|
java.awt.Point |
getPosition(java.lang.Object node)
|
boolean |
isSameLayout(java.lang.Object positions)
|
void |
layoutFromCanvasPoints(lt.monarch.graph.GraphView graphView)
Lays out the graph from the current canvas points. |
java.util.HashMap |
readCanvasPoints()
Getting and noting canvas point information from the graph |
void |
refreshGraph(lt.monarch.graph.GraphView graphView)
Refreshes the IGraph from the information in the graphView. |
void |
setCanvasPoints(java.util.HashMap canvasPoints)
|
java.util.List |
updateCanvasPoints()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Class nodeViewType
public java.lang.Class nodeType
public java.lang.String name
public LListCollector nodes
protected lt.monarch.graph.GraphView view
Constructor Detail |
---|
public IGraph(java.lang.String theName, lt.monarch.graph.GraphView graphView)
theName
- the graph's namegraphView
- the GraphView object that holds the MGraph informationpublic IGraph(java.lang.String theName)
theName
- the graph's namepublic IGraph(java.lang.String theName, java.util.HashMap cpGraph)
theName
- the graph's namecpGraph
- the graph's canvas points in a hash mappublic IGraph(java.lang.String theName, java.util.List cpGraph)
theName
- the graph's namecpGraph
- the graph's canvas points in a list of NodePoint objectsMethod Detail |
---|
public void refreshGraph(lt.monarch.graph.GraphView graphView)
graph
- the GraphView object that holds the MGraph informationpublic java.awt.Point getPosition(java.lang.Object node)
public void setCanvasPoints(java.util.HashMap canvasPoints)
public java.util.List updateCanvasPoints()
public java.util.List getCanvasPoints()
public java.util.List getGraphCanvasPoints()
public java.util.HashMap readCanvasPoints()
public boolean isSameLayout(java.lang.Object positions)
public void layoutFromCanvasPoints(lt.monarch.graph.GraphView graphView)
protected ix.iview.igraph.IGraph.GraphNodeComponent findNode(java.lang.Object node)
public java.lang.String getName()
getName
in interface Named
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |