java.lang.Object
com.port80.util.attr.AttrTable
com.port80.graph.impl.GraphElement
com.port80.graph.impl.Edge
- All Implemented Interfaces:
- com.port80.util.attr.IAttrTable, com.port80.graph.IEdge, com.port80.graph.IGraphElement
- public class Edge
- extends GraphElement
- implements com.port80.graph.IEdge
Graph edge interface.
| Methods inherited from class com.port80.util.attr.AttrTable |
attrKeySet, clearAttrs, getAttr, getAttrAsString, getAttrBool, getAttrBool, getAttrCached, getAttrDouble, getAttrDouble, getAttrFloat, getAttrFloat, getAttrInt, getAttrInt, getAttrLong, getAttrLong, getAttrRegistry, getAttrString, hasAttr, initAttr, initAttr, initAttr, initAttr, initAttr, initAttr, initAttr, initAttr, removeAttr, removeUnregisteredAttrs, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrFromString |
| Methods inherited from interface com.port80.util.attr.IAttrTable |
attrKeySet, clearAttrs, getAttr, getAttrAsString, getAttrBool, getAttrBool, getAttrCached, getAttrDouble, getAttrDouble, getAttrFloat, getAttrFloat, getAttrInt, getAttrInt, getAttrLong, getAttrLong, getAttrRegistry, getAttrString, hasAttr, removeAttr, removeUnregisteredAttrs, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrFromString |
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
PACKAGENAME
private static final java.lang.String PACKAGENAME
- See Also:
- Constant Field Values
CLASSNAME
private static final java.lang.String CLASSNAME
- See Also:
- Constant Field Values
VERSION
private static final int VERSION
- See Also:
- Constant Field Values
VERSIONNAME
private static final java.lang.String VERSIONNAME
- See Also:
- Constant Field Values
DEBUG
private static boolean DEBUG
anonymousCount
private static int anonymousCount
parent
protected com.port80.graph.IGraph parent
head
protected com.port80.graph.IVertex head
tail
protected com.port80.graph.IVertex tail
headPort
protected com.port80.graph.IVertexPort headPort
tailPort
protected com.port80.graph.IVertexPort tailPort
Edge
public Edge(com.port80.graph.IVertex tail,
com.port80.graph.IVertex head,
java.lang.String name,
java.lang.Object data,
com.port80.graph.IGraph parent)
- An edge is typically created through a graph.newEdge() method
instead of calling this constructor directly.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
getHead
public com.port80.graph.IVertex getHead()
- Description copied from interface:
com.port80.graph.IEdge
- The set of all edges, the Set should be considered read only.
Add or remove of edges should use method provided by the Edge
class.
- Specified by:
getHead in interface com.port80.graph.IEdge
getTail
public com.port80.graph.IVertex getTail()
- Specified by:
getTail in interface com.port80.graph.IEdge
getHeadPort
public com.port80.graph.IVertexPort getHeadPort()
getTailPort
public com.port80.graph.IVertexPort getTailPort()
getOpposite
public com.port80.graph.IVertex getOpposite(com.port80.graph.IVertex v)
- Specified by:
getOpposite in interface com.port80.graph.IEdge
getArrowSize
public double getArrowSize()
- Specified by:
getArrowSize in interface com.port80.graph.IEdge
getTailArrow
public com.port80.graph.IArrow getTailArrow()
- Specified by:
getTailArrow in interface com.port80.graph.IEdge
getHeadArrow
public com.port80.graph.IArrow getHeadArrow()
- Specified by:
getHeadArrow in interface com.port80.graph.IEdge
findReverseEdges
public java.util.List findReverseEdges(java.util.List ret)
- Specified by:
findReverseEdges in interface com.port80.graph.IEdge
clearLayout
public void clearLayout()
- Specified by:
clearLayout in interface com.port80.graph.IEdge
getElementTypeName
public java.lang.String getElementTypeName()
- Specified by:
getElementTypeName in interface com.port80.graph.IGraphElement- Overrides:
getElementTypeName in class GraphElement