org.tigris.gef.demo
Class EdgeData
java.lang.Object
org.tigris.gef.graph.presentation.NetPrimitive
org.tigris.gef.graph.presentation.NetEdge
org.tigris.gef.demo.EdgeData
- All Implemented Interfaces:
- GraphEdgeHooks, java.io.Serializable
- public class EdgeData
- extends NetEdge
- implements java.io.Serializable
A sample NetEdge subclass for use in the Example application. There
are no real details here yet. If I was to expand this example more
the Edge could have more attributes, e.g. bandwidth... and it
could have its own subclasses of FigEdge to make it look a
certain way.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pCABLE_TYPE
public static final java.lang.String pCABLE_TYPE
- See Also:
- Constant Field Values
pBITS_PER_SECOND
public static final java.lang.String pBITS_PER_SECOND
- See Also:
- Constant Field Values
CABLE_SCSI
public static final java.lang.String CABLE_SCSI
- See Also:
- Constant Field Values
CABLE_ETHERNET
public static final java.lang.String CABLE_ETHERNET
- See Also:
- Constant Field Values
CABLE_FIREWIRE
public static final java.lang.String CABLE_FIREWIRE
- See Also:
- Constant Field Values
CABLE_FDDI
public static final java.lang.String CABLE_FDDI
- See Also:
- Constant Field Values
_bitsPerSecond
protected int _bitsPerSecond
- Speed of this data line
_cableType
protected java.lang.String _cableType
- Type of cable, choosen from the constants above: SCSI, FireWire,
etc.
_PossibleCableTypes
public static java.util.Vector _PossibleCableTypes
EdgeData
public EdgeData()
getId
public java.lang.String getId()
- Specified by:
getId
in class NetPrimitive
getCableType
public java.lang.String getCableType()
setCableType
public void setCableType(java.lang.String ct)
getBitsPerSecond
public int getBitsPerSecond()
setBitsPerSecond
public void setBitsPerSecond(int bps)
makePresentation
public org.tigris.gef.presentation.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