|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.io.GraphFormatterBare<V,E>
public class GraphFormatterBare<V,E>
Implements a "bare" graph formatter, where the node description
(and its id) is simply what toString() produces for it.
It provides a default implementation of GraphFormatter
.
No visible attribute is returned for links.
Constructor Summary | |
---|---|
GraphFormatterBare()
|
Method Summary | |
---|---|
java.lang.String |
getEdgeDesc(E e)
Returns an empty string. |
java.lang.String |
getEdgeExtraAttr(E e)
Returns an empty string. |
java.lang.String |
getVertexDesc(V v)
Returns v.toString() . |
java.lang.String |
getVertexExtraAttr(V v)
Returns an empty string. |
java.lang.String |
getVertexId(V v)
Returns v.toString() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphFormatterBare()
Method Detail |
---|
public java.lang.String getVertexId(V v)
v.toString()
.
getVertexId
in interface GraphFormatter<V,E>
public java.lang.String getVertexDesc(V v)
v.toString()
.
getVertexDesc
in interface GraphFormatter<V,E>
public java.lang.String getVertexExtraAttr(V v)
getVertexExtraAttr
in interface GraphFormatter<V,E>
public java.lang.String getEdgeDesc(E e)
getEdgeDesc
in interface GraphFormatter<V,E>
public java.lang.String getEdgeExtraAttr(E e)
getEdgeExtraAttr
in interface GraphFormatter<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |