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

Variable Index

 o edges_
 o graph_
 o newEdgeColor_

Constructor Index

 o GraphArea(boolean, int, int)
 o GraphArea(boolean, int, int, boolean, Color)
 o GraphArea(boolean, int, int, boolean)

Method Index

 o AddEdge(Edge)
 o AddNode(Node)
 o AllowEditing()
 o CanEdit()
 o ClearGraph()
 o DisallowEditing()
 o GetEdgeArray()
 o GetEdges()
 o GetGraph()
 o GetGraphArray()
 o GetNewNode(int, int)
 o LoadGraph(URL)
 o LoadGraph(String)
 o RemoveEdge(Edge)
 o RemoveNode(Node)
 o SetNewEdgeColor(Color)
 o display_instructions(Color, String[])
 o toString()

Variables

 o graph_
  protected Vector graph_
 o edges_
  protected Vector edges_
 o newEdgeColor_
  protected Color newEdgeColor_

Constructors

 o GraphArea
  public GraphArea(boolean directed,
                   int width,
                   int height)
 o GraphArea
  public GraphArea(boolean directed,
                   int width,
                   int height,
                   boolean instructions,
                   Color instructions_color)
 o GraphArea
  public GraphArea(boolean directed,
                   int width,
                   int height,
                   boolean instructions)

Methods

 o display_instructions
  public void display_instructions(Color col,
                                   String theInst[])
 o LoadGraph
  public void LoadGraph(URL u)
 o LoadGraph
  public void LoadGraph(String s)
 o GetNewNode
  public Node GetNewNode(int x,
                         int y)
 o SetNewEdgeColor
  public void SetNewEdgeColor(Color color)
 o GetGraph
  public Vector GetGraph()
 o GetEdges
  public Vector GetEdges()
 o GetGraphArray
  public Node[] GetGraphArray()
 o GetEdgeArray
  public Edge[] GetEdgeArray()
 o AllowEditing
  public void AllowEditing()
 o DisallowEditing
  public void DisallowEditing()
 o CanEdit
  public boolean CanEdit()
 o ClearGraph
  public void ClearGraph()
 o AddEdge
  protected void AddEdge(Edge edge)
 o RemoveEdge
  protected void RemoveEdge(Edge edge)
 o AddNode
  protected void AddNode(Node node)
 o RemoveNode
  protected void RemoveNode(Node node)
 o toString
  public String toString()
Overrides:
toString in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index