Package docking.widgets.fieldpanel.field
Class CompositeAttributedString
java.lang.Object
docking.widgets.fieldpanel.field.AttributedString
docking.widgets.fieldpanel.field.CompositeAttributedString
An AttributedString that is composed of other AttributedStrings.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCompositeAttributedString
(AttributedString... attributedStrings) CompositeAttributedString
(List<AttributedString> stringList) -
Method Summary
Modifier and TypeMethodDescriptionint
getCharPosition
(int x) getColor
(int index) getFontMetrics
(int charIndex) int
int
int
getText()
void
paint
(JComponent c, Graphics g, int x, int y) replaceAll
(char[] targets, char repacement) substring
(int start) substring
(int start, int end) Methods inherited from class docking.widgets.fieldpanel.field.AttributedString
deriveAttributedString, getIcon, length, toString
-
Field Details
-
attributedStrings
-
-
Constructor Details
-
CompositeAttributedString
-
CompositeAttributedString
-
-
Method Details
-
getCharPosition
public int getCharPosition(int x) - Overrides:
getCharPosition
in classAttributedString
-
getColor
- Overrides:
getColor
in classAttributedString
-
getFontMetrics
- Overrides:
getFontMetrics
in classAttributedString
-
getHeightAbove
public int getHeightAbove()- Overrides:
getHeightAbove
in classAttributedString
-
getHeightBelow
public int getHeightBelow()- Overrides:
getHeightBelow
in classAttributedString
-
getStringWidth
public int getStringWidth()- Overrides:
getStringWidth
in classAttributedString
-
getText
- Overrides:
getText
in classAttributedString
-
paint
- Overrides:
paint
in classAttributedString
-
replaceAll
- Overrides:
replaceAll
in classAttributedString
-
substring
- Overrides:
substring
in classAttributedString
-
substring
- Overrides:
substring
in classAttributedString
-