Make your own free website on Tripod.com
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Graph.GraphPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----Graph.GraphPanel

public class GraphPanel
extends Panel
implements KeyListener, MouseListener, MouseMotionListener
Nodes and edges are drawn on the GraphPanel. It supports double-buffering.

See Also:
GraphEventsAdaptor

Constructor Index

 o GraphPanel(GraphEventsAdaptor)
GraphPanel constructor comment.

Method Index

 o clear()
 o hideAttr()
Hides the Edge Attributes
 o keyPressed(KeyEvent)
keyPressed method comment.
 o keyReleased(KeyEvent)
keyReleased method comment.
 o keyTyped(KeyEvent)
keyTyped method comment.
 o mouseClicked(MouseEvent)
mouseClicked method comment.
 o mouseDragged(MouseEvent)
mouseDragged method comment.
 o mouseEntered(MouseEvent)
mouseEntered method comment.
 o mouseExited(MouseEvent)
mouseExited method comment.
 o mouseMoved(MouseEvent)
mouseMoved method comment.
 o mousePressed(MouseEvent)
mousePressed method comment.
 o mouseReleased(MouseEvent)
mouseReleased method comment.
 o paint(Graphics)
 o showAttr()
Shows the Edge Attributes
 o update(Graphics)
Usual update for the double buffered Graphics

Constructors

 o GraphPanel
 public GraphPanel(GraphEventsAdaptor gea)
GraphPanel constructor comment.

Methods

 o clear
 public void clear()
 o hideAttr
 public void hideAttr()
Hides the Edge Attributes

 o keyPressed
 public void keyPressed(KeyEvent e)
keyPressed method comment.

 o keyReleased
 public void keyReleased(KeyEvent e)
keyReleased method comment.

 o keyTyped
 public void keyTyped(KeyEvent e)
keyTyped method comment.

 o mouseClicked
 public void mouseClicked(MouseEvent e)
mouseClicked method comment.

 o mouseDragged
 public void mouseDragged(MouseEvent e)
mouseDragged method comment.

 o mouseEntered
 public void mouseEntered(MouseEvent e)
mouseEntered method comment.

 o mouseExited
 public void mouseExited(MouseEvent e)
mouseExited method comment.

 o mouseMoved
 public void mouseMoved(MouseEvent e)
mouseMoved method comment.

 o mousePressed
 public void mousePressed(MouseEvent e)
mousePressed method comment.

 o mouseReleased
 public void mouseReleased(MouseEvent e)
mouseReleased method comment.

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o showAttr
 public void showAttr()
Shows the Edge Attributes

 o update
 public void update(Graphics g)
Usual update for the double buffered Graphics

Overrides:
update in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index