Class LabelString
java.lang.Object
de.xima.fc.common.graphdot.LabelString
- All Implemented Interfaces:
Serializable, CharSequence
Represents a label string, either plain text or HTML.
"hello-world" <<strong>hello world</strong>>
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLabelString(CharSequence label) Creates a new label string with the given content. -
Method Summary
Modifier and TypeMethodDescriptiondefault charcharAt(int index) default IntStreamchars()default IntStreamfinal booleangetLabel()final inthashCode()static LabelStringUses an HTML text for the label.default intlength()static LabelStringUses a plain text for the label.default CharSequencesubSequence(int start, int end) toString()
-
Constructor Details
-
LabelString
Creates a new label string with the given content.- Parameters:
label- Content of the label string.
-
-
Method Details
-
getLabel
- Returns:
- The label text or HTML.
-
toString
- Specified by:
toStringin interfaceCharSequence
-
html
Uses an HTML text for the label.- Parameters:
html- Label text.- Returns:
- A label string with an HTML text label.
-
plain
Uses a plain text for the label.- Parameters:
text- Label text.- Returns:
- A label string with a plain text label.
-
equals
-
hashCode
-
charAt
default char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
chars
- Specified by:
charsin interfaceCharSequence
-
codePoints
- Specified by:
codePointsin interfaceCharSequence
-
length
default int length()- Specified by:
lengthin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-