org.tigris.gef.demo
Class SampleNode4

java.lang.Object
  extended byorg.tigris.gef.graph.presentation.NetPrimitive
      extended byorg.tigris.gef.graph.presentation.NetNode
          extended byorg.tigris.gef.demo.SampleNode
              extended byorg.tigris.gef.demo.SampleNode4
All Implemented Interfaces:
GraphNodeHooks, java.io.Serializable

public class SampleNode4
extends SampleNode
implements java.io.Serializable

An example subclass of NetNode for use in the demos.

See Also:
BasicApplication, Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.demo.SampleNode
_number, east, north, south, west
 
Fields inherited from class org.tigris.gef.graph.presentation.NetNode
_ports
 
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive
_changeSup, _highlight
 
Constructor Summary
SampleNode4()
           
 
Method Summary
 org.tigris.gef.presentation.FigNode makePresentation(Layer lay)
          Construct and return a new FigNode to present this NetNode in the given Layer.
 
Methods inherited from class org.tigris.gef.demo.SampleNode
getId, getNumber, initialize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
 
Methods inherited from class org.tigris.gef.graph.presentation.NetNode
addPort, canConnectTo, dispose, 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
 

Constructor Detail

SampleNode4

public SampleNode4()
Method Detail

makePresentation

public org.tigris.gef.presentation.FigNode makePresentation(Layer lay)
Description copied from class: NetNode
Construct and return a new FigNode to present this NetNode in the given Layer. A default implementation is supplied as an example, but all subclasses should override this method. NetPorts of this NetNode should be associated with individual Figs that make up the FigNode.

Overrides:
makePresentation in class SampleNode