Class graph.GraphArea
All Packages Class Hierarchy This Package Previous Next Index
Class graph.GraphArea
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----sprite.SpriteArea
|
+----graph.GraphArea
- public class GraphArea
- extends SpriteArea
-
edges_
-
-
graph_
-
-
newEdgeColor_
-
-
GraphArea(boolean, int, int)
-
-
GraphArea(boolean, int, int, boolean, Color)
-
-
GraphArea(boolean, int, int, boolean)
-
-
AddEdge(Edge)
-
-
AddNode(Node)
-
-
AllowEditing()
-
-
CanEdit()
-
-
ClearGraph()
-
-
DisallowEditing()
-
-
GetEdgeArray()
-
-
GetEdges()
-
-
GetGraph()
-
-
GetGraphArray()
-
-
GetNewNode(int, int)
-
-
LoadGraph(URL)
-
-
LoadGraph(String)
-
-
RemoveEdge(Edge)
-
-
RemoveNode(Node)
-
-
SetNewEdgeColor(Color)
-
-
display_instructions(Color, String[])
-
-
toString()
-
graph_
protected Vector graph_
edges_
protected Vector edges_
newEdgeColor_
protected Color newEdgeColor_
GraphArea
public GraphArea(boolean directed,
int width,
int height)
GraphArea
public GraphArea(boolean directed,
int width,
int height,
boolean instructions,
Color instructions_color)
GraphArea
public GraphArea(boolean directed,
int width,
int height,
boolean instructions)
display_instructions
public void display_instructions(Color col,
String theInst[])
LoadGraph
public void LoadGraph(URL u)
LoadGraph
public void LoadGraph(String s)
GetNewNode
public Node GetNewNode(int x,
int y)
SetNewEdgeColor
public void SetNewEdgeColor(Color color)
GetGraph
public Vector GetGraph()
GetEdges
public Vector GetEdges()
GetGraphArray
public Node[] GetGraphArray()
GetEdgeArray
public Edge[] GetEdgeArray()
AllowEditing
public void AllowEditing()
DisallowEditing
public void DisallowEditing()
CanEdit
public boolean CanEdit()
ClearGraph
public void ClearGraph()
AddEdge
protected void AddEdge(Edge edge)
RemoveEdge
protected void RemoveEdge(Edge edge)
AddNode
protected void AddNode(Node node)
RemoveNode
protected void RemoveNode(Node node)
toString
public String toString()
- Overrides:
- toString in class Component
All Packages Class Hierarchy This Package Previous Next Index