Class graph.Node
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class graph.Node

java.lang.Object
   |
   +----sprite.Sprite
           |
           +----graph.Node

public class Node
extends Sprite

Variable Index

 o DIAMETER
 o RADIUS
 o all_
 o color_
 o font_
 o graph_
 o incoming_
 o metrics_
 o num_
 o outgoing_
 o tAscent_
 o tHeight_
 o tWidth_
 o yAdd_

Constructor Index

 o Node(GraphArea, int, int, boolean)
 o Node(GraphArea, int, int, boolean, int)

Method Index

 o AddEdge(Edge)
 o ConnectingEdge(Node)
 o ConnectsTo(Node)
 o Draw(Graphics)
 o GetAllArray()
 o GetAllEdges()
 o GetIncomingArray()
 o GetIncomingEdges()
 o GetLabel()
 o GetNumber()
 o GetOutgoingArray()
 o GetOutgoingEdges()
 o HideNumber()
 o Inside(int, int)
 o IsSquare()
 o Remove()
 o RemoveEdge(Edge)
 o SetColor(Color)
 o ShowNumber()
 o handleEvent(Event)
 o toString()

Variables

 o RADIUS
  public final static int RADIUS
 o DIAMETER
  public final static int DIAMETER
 o graph_
  protected GraphArea graph_
 o color_
  protected Color color_
 o incoming_
  protected Vector incoming_
 o outgoing_
  protected Vector outgoing_
 o all_
  protected Vector all_
 o num_
  protected int num_
 o font_
  protected static Font font_
 o tWidth_
  protected static int tWidth_
 o tHeight_
  protected static int tHeight_
 o tAscent_
  protected static int tAscent_
 o yAdd_
  protected static int yAdd_
 o metrics_
  protected static FontMetrics metrics_

Constructors

 o Node
  public Node(GraphArea area,
              int x,
              int y,
              boolean square)
 o Node
  public Node(GraphArea area,
              int x,
              int y,
              boolean square,
              int num)

Methods

 o SetColor
  public void SetColor(Color color)
 o ShowNumber
  public void ShowNumber()
 o HideNumber
  public void HideNumber()
 o GetNumber
  public int GetNumber()
 o IsSquare
  public boolean IsSquare()
 o GetLabel
  public String GetLabel()
 o GetIncomingEdges
  public Vector GetIncomingEdges()
 o GetOutgoingEdges
  public Vector GetOutgoingEdges()
 o GetAllEdges
  public Vector GetAllEdges()
 o GetIncomingArray
  public Edge[] GetIncomingArray()
 o GetOutgoingArray
  public Edge[] GetOutgoingArray()
 o GetAllArray
  public Edge[] GetAllArray()
 o ConnectsTo
  public boolean ConnectsTo(Node other)
 o ConnectingEdge
  public Edge ConnectingEdge(Node other)
 o AddEdge
  public void AddEdge(Edge e)
 o RemoveEdge
  public void RemoveEdge(Edge e)
 o Remove
  public void Remove()
Overrides:
Remove in class Sprite
 o Inside
  public boolean Inside(int x,
                        int y)
Overrides:
Inside in class Sprite
 o Draw
  public void Draw(Graphics g)
Overrides:
Draw in class Sprite
 o handleEvent
  public void handleEvent(Event e)
Overrides:
handleEvent in class Sprite
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index