Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.graph.impl
Class Edge  view Edge download Edge.java

java.lang.Object
  extended bycom.port80.util.attr.AttrTable
      extended bycom.port80.graph.impl.GraphElement
          extended bycom.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.


Field Summary
private static int anonymousCount
           
private static java.lang.String CLASSNAME
           
private static boolean DEBUG
           
protected  com.port80.graph.IVertex head
           
protected  com.port80.graph.IVertexPort headPort
           
private static java.lang.String NAME
           
private static java.lang.String PACKAGENAME
           
protected  com.port80.graph.IGraph parent
           
protected  com.port80.graph.IVertex tail
           
protected  com.port80.graph.IVertexPort tailPort
           
private static int VERSION
           
private static java.lang.String VERSIONNAME
           
 
Fields inherited from class com.port80.graph.impl.GraphElement
fData, fName
 
Fields inherited from class com.port80.util.attr.AttrTable
parentAttrTable
 
Constructor Summary
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.
 
Method Summary
 void clearLayout()
           
 java.util.List findReverseEdges(java.util.List ret)
           
 double getArrowSize()
           
 java.lang.String getElementTypeName()
           
 com.port80.graph.IVertex getHead()
          The set of all edges, the Set should be considered read only.
 com.port80.graph.IArrow getHeadArrow()
           
 com.port80.graph.IVertexPort getHeadPort()
           
 com.port80.graph.IVertex getOpposite(com.port80.graph.IVertex v)
           
 com.port80.graph.IVertex getTail()
           
 com.port80.graph.IArrow getTailArrow()
           
 com.port80.graph.IVertexPort getTailPort()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class com.port80.graph.impl.GraphElement
getData, getName, setData, setName
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.port80.graph.IGraphElement
getData, getName, setData, setName
 
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
 

Field Detail

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
Constructor Detail

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.

Method Detail

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