All Packages Class Hierarchy This Package Previous Next Index
Class Graph.Node
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----Graph.Node
- public abstract class Node
- extends Panel
- implements KeyListener, MouseListener, MouseMotionListener, Cloneable
This class was generated by a SmartGuide.
This is a base class for Nodes, it extends Panel,
simply because you can put almost anything in/on the
Panel, so there are no restrictions in the possible
type of the data you can display on it. On the other
hand it is a fully flegged component, so that node
drawer or selection mechanisms, can manipulate it,
as any other component. To conclude, extend Node to
suit your purposes (display your data) but do not
forget that the rest of the program communicates with
your node through those events that Panel sends/recieves,
so you have to leave some of the space of the Panel
uncovered, for user to click on it.(simpler form:
make the surface of the Node bigger than is the union
of all of surfaces of components that you display in the
node.)
- See Also:
- GraphEventsAdaptor
-
timestamp
-
-
Node(Integer, GraphEventsAdaptor)
-
-
clone()
-
-
getId()
-
-
keyPressed(KeyEvent)
- keyPressed method comment.
-
keyReleased(KeyEvent)
- keyReleased method comment.
-
keyTyped(KeyEvent)
- keyTyped method comment.
-
mouseClicked(MouseEvent)
- mouseClicked method comment.
-
mouseDragged(MouseEvent)
- mouseDragged method comment.
-
mouseEntered(MouseEvent)
- mouseEntered method comment.
-
mouseExited(MouseEvent)
- mouseExited method comment.
-
mouseMoved(MouseEvent)
- mouseMoved method comment.
-
mousePressed(MouseEvent)
- mousePressed method comment.
-
mouseReleased(MouseEvent)
- mouseReleased method comment.
-
paint(Graphics)
-
-
resize(double)
-
-
setBounds(int, int, int, int)
-
Timestamps are updated when Bounds/Location/Size are changed.
-
setEventAdaptor(GraphEventsAdaptor)
-
-
setId(Integer)
-
timestamp
public transient long timestamp
Node
public Node(Integer Id,
GraphEventsAdaptor gea)
clone
public Object clone()
- Overrides:
- clone in class Object
getId
public Integer getId()
keyPressed
public void keyPressed(KeyEvent e)
- keyPressed method comment.
keyReleased
public void keyReleased(KeyEvent e)
- keyReleased method comment.
keyTyped
public void keyTyped(KeyEvent e)
- keyTyped method comment.
mouseClicked
public void mouseClicked(MouseEvent e)
- mouseClicked method comment.
mouseDragged
public void mouseDragged(MouseEvent e)
- mouseDragged method comment.
mouseEntered
public void mouseEntered(MouseEvent e)
- mouseEntered method comment.
mouseExited
public void mouseExited(MouseEvent e)
- mouseExited method comment.
mouseMoved
public void mouseMoved(MouseEvent e)
- mouseMoved method comment.
mousePressed
public void mousePressed(MouseEvent e)
- mousePressed method comment.
mouseReleased
public void mouseReleased(MouseEvent e)
- mouseReleased method comment.
paint
public abstract void paint(Graphics g)
- Overrides:
- paint in class Container
resize
public abstract void resize(double percent)
setBounds
public void setBounds(int x,
int y,
int width,
int height)
- Timestamps are updated when Bounds/Location/Size are changed.
- Overrides:
- setBounds in class Component
setEventAdaptor
public void setEventAdaptor(GraphEventsAdaptor gea)
setId
public void setId(Integer Id)
All Packages Class Hierarchy This Package Previous Next Index