|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.graph.presentation.NetPrimitive
org.tigris.gef.graph.presentation.NetNode
org.tigris.gef.demo.SampleNode
An example subclass of NetNode for use in the BasicApplication application.
Field Summary | |
protected int |
_number
|
SamplePort |
east
|
SamplePort |
north
|
SamplePort |
south
|
SamplePort |
west
|
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
_changeSup, _highlight |
Constructor Summary | |
SampleNode()
|
Method Summary | |
java.lang.String |
getId()
|
int |
getNumber()
|
void |
initialize(java.util.Hashtable args)
Initialize a new SampleNode from the given default node and application specific model. |
void |
keyPressed(java.awt.event.KeyEvent e)
Sample event handler: prints a message to the console. |
void |
keyReleased(java.awt.event.KeyEvent e)
Sample event handler: prints a message to the console. |
void |
keyTyped(java.awt.event.KeyEvent e)
Sample event handler: prints a message to the console. |
org.tigris.gef.presentation.FigNode |
makePresentation(Layer lay)
Construct and return a new FigNode to present this NetNode in the given Layer. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Sample event handler: prints a message to the console. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Sample event handler: prints a message to the console. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Sample event handler: prints a message to the console. |
void |
mouseExited(java.awt.event.MouseEvent e)
Sample event handler: prints a message to the console. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Sample event handler: prints a message to the console. |
void |
mousePressed(java.awt.event.MouseEvent e)
Sample event handler: prints a message to the console. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Sample event handler: prints a message to the console. |
Methods inherited from class org.tigris.gef.graph.presentation.NetNode |
addPort, canConnectTo, deleteFromModel, getAttributes, getPort, getPorts, postConnect, postDisconnect, postPlacement, presentationFor, setPorts |
Methods inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getHighlight, removePropertyChangeListener, setHighlight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.tigris.gef.graph.GraphNodeHooks |
addPropertyChangeListener, removePropertyChangeListener, setHighlight |
Field Detail |
public SamplePort north
public SamplePort east
public SamplePort west
public SamplePort south
protected int _number
Constructor Detail |
public SampleNode()
Method Detail |
public void initialize(java.util.Hashtable args)
Needs-More-Work: for now we construct the FigNode programatically, but eventually we will store it in a class variable and just refer to it, or copy it(?). That way the user can edit the FigNode(s) stored in the class variable and have those changes shown for all existing nodes, or for all future nodes. Maybe I should think about doing virtual copies?
initialize
in interface GraphNodeHooks
initialize
in class NetNode
public int getNumber()
public java.lang.String getId()
getId
in class NetPrimitive
public org.tigris.gef.presentation.FigNode makePresentation(Layer lay)
NetNode
makePresentation
in class NetNode
public void mouseEntered(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseClicked(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
public void keyTyped(java.awt.event.KeyEvent e)
public void keyReleased(java.awt.event.KeyEvent e)
public void keyPressed(java.awt.event.KeyEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |