public class Label extends SimpleLabel implements Attributes<F>
public static java.lang.String NODE_NAME
public static java.lang.String GRAPH_NAME
public static java.lang.String HEAD_NAME
public static java.lang.String TAIL_NAME
public static Label of(java.lang.String value)
Create a simple label. Create newlines with \n.
value - the label textpublic static Label nodeName()
Create a label of the node name (works only as a node attribute).
public static Label graphName()
Create a label of the graph name.
public static Label headName()
Create a label of the link head's node name (works only as a link attribute).
public static Label tailName()
Create a label of the link tail's node name (works only as a link attribute).
public static Label lines(java.lang.String... lines)
Create a simple multiline label.
lines - the text linespublic static Label lines(guru.nidi.graphviz.attribute.Label.Justification just, java.lang.String... lines)
Create a simple multiline label.
just - the text justificationlines - the text linespublic static Label html(java.lang.String value)
Create a HTML label.
value - the HTML codepublic static Label htmlLines(java.lang.String... lines)
Create a multiline HTML label.
lines - the lines in HTML formatpublic static Label htmlLines(guru.nidi.graphviz.attribute.Label.Justification just, java.lang.String... lines)
Create a multiline HTML label.
just - the test justificationlines - the lines in HTML formatpublic static Label markdown(java.lang.String value)
Create a HTML label from markdown. The following patterns are allowed:
\n newline, **bold**, *italics*, ~~strike through~~, _underlined_, ^overlined^, __subscript__, ^^superscript^^.
value - the markdown codepublic static Label raw(java.lang.String value)
Create either a simple, HTML or markdown label. If the value is not surrounded by < and >, a simple Label is created. Otherwise if value contains some HTML tags, a HTML label is created. Otherwise a markdown label is created.
value - the raw labelpublic EndLabel head()
public EndLabel head(double angle, double distance)
public EndLabel tail()
public EndLabel tail(double angle, double distance)
public Label external()
public Label floating()
public Label decorated()
public Label justify(guru.nidi.graphviz.attribute.Label.Justification just)
public Label locate(guru.nidi.graphviz.attribute.Label.Location loc)
public boolean isExternal()
public Attributes<? super guru.nidi.graphviz.attribute.ForAll> applyTo(MapAttributes<? super guru.nidi.graphviz.attribute.ForAll> attributes)
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()