org.tigris.gef.demo
Class SampleEdge2

java.lang.Object
  extended by org.tigris.gef.graph.presentation.NetPrimitive
      extended by org.tigris.gef.graph.presentation.NetEdge
          extended by org.tigris.gef.demo.SampleEdge2
All Implemented Interfaces:
java.io.Serializable, GraphEdgeHooks

public class SampleEdge2
extends NetEdge

A sample NetEdge subclass for use in the Example application.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.graph.presentation.NetEdge
_destPort, _ports, _sourcePort
 
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive
_changeSup, _highlight
 
Constructor Summary
SampleEdge2()
          Construct a new SampleEdge2.
 
Method Summary
 java.lang.String getId()
           
 FigEdge makePresentation(Layer lay)
          Abstract method that returns a FigEdge to represent this edge in a given Layer.
 
Methods inherited from class org.tigris.gef.graph.presentation.NetEdge
connect, deleteFromModel, getDestPort, getPorts, getSourcePort, otherEnd, presentationFor, setDestPort, setPorts, setSourcePort
 
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.GraphEdgeHooks
addPropertyChangeListener, removePropertyChangeListener, setHighlight
 

Constructor Detail

SampleEdge2

public SampleEdge2()
Construct a new SampleEdge2.

Method Detail

getId

public java.lang.String getId()
Specified by:
getId in class NetPrimitive

makePresentation

public FigEdge makePresentation(Layer lay)
Description copied from class: NetEdge
Abstract method that returns a FigEdge to represent this edge in a given Layer. This is just a quick and simple way to do it if you use a DefaultGraphModel because DefaultgraphEdgeRenderer calls this. Override this method if you want your Edge subclasses to have a different look. The better way to do it is to implement your own GraphEdgeRenderer.

Specified by:
makePresentation in class NetEdge