|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.kohsuke.graphviz.GraphObject<T>
public abstract class GraphObject<T extends GraphObject<T>>
Base class of graph related objects.
This class maintains a list of attributes that decorates a graph object.
| Constructor Summary | |
|---|---|
GraphObject()
|
|
| Method Summary | ||
|---|---|---|
|
attr(Attribute<V> attribute)
Gets the effective value of the attribute. |
|
|
attr(Attribute<V> attribute,
V value)
Adds an attribute. |
|
java.lang.String |
attr(java.lang.String name)
Gets the effective value of the attribute. |
|
T |
attr(java.lang.String name,
java.lang.String value)
Adds an attribute. |
|
protected static java.lang.String |
escape(java.lang.String value)
|
|
java.util.Map<java.lang.String,java.lang.String> |
getEffectiveAttributes()
Gets the snapshot of all effective attributes, after inheriting all values from the style. |
|
T |
id(java.lang.String id)
Explicitly set the ID of this object. |
|
Style |
style()
Gets the style of this object. |
|
T |
style(Style s)
Sets the style of this object to the given one. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphObject()
| Method Detail |
|---|
public final T id(java.lang.String id)
public final T style(Style s)
public Style style()
public final T attr(java.lang.String name,
java.lang.String value)
public final <V> T attr(Attribute<V> attribute,
V value)
public final java.lang.String attr(java.lang.String name)
public final <V> V attr(Attribute<V> attribute)
public java.util.Map<java.lang.String,java.lang.String> getEffectiveAttributes()
protected static java.lang.String escape(java.lang.String value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||