Package docking.widgets.fieldpanel.field
Class CompositeAttributedString
- java.lang.Object
-
- docking.widgets.fieldpanel.field.AttributedString
-
- docking.widgets.fieldpanel.field.CompositeAttributedString
-
public class CompositeAttributedString extends AttributedString
An AttributedString that is composed of other AttributedStrings.
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributedString[]
attributedStrings
-
Constructor Summary
Constructors Constructor Description CompositeAttributedString(AttributedString... attributedStrings)
CompositeAttributedString(java.util.List<AttributedString> stringList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCharPosition(int x)
java.awt.Color
getColor(int index)
java.awt.FontMetrics
getFontMetrics(int charIndex)
int
getHeightAbove()
int
getHeightBelow()
int
getStringWidth()
java.lang.String
getText()
void
paint(javax.swing.JComponent c, java.awt.Graphics g, int x, int y)
AttributedString
replaceAll(char[] targets, char repacement)
AttributedString
substring(int start)
AttributedString
substring(int start, int end)
-
Methods inherited from class docking.widgets.fieldpanel.field.AttributedString
deriveAttributedString, getIcon, length, toString
-
-
-
-
Field Detail
-
attributedStrings
protected AttributedString[] attributedStrings
-
-
Constructor Detail
-
CompositeAttributedString
public CompositeAttributedString(java.util.List<AttributedString> stringList)
-
CompositeAttributedString
public CompositeAttributedString(AttributedString... attributedStrings)
-
-
Method Detail
-
getCharPosition
public int getCharPosition(int x)
- Overrides:
getCharPosition
in classAttributedString
-
getColor
public java.awt.Color getColor(int index)
- Overrides:
getColor
in classAttributedString
-
getFontMetrics
public java.awt.FontMetrics getFontMetrics(int charIndex)
- 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
public java.lang.String getText()
- Overrides:
getText
in classAttributedString
-
paint
public void paint(javax.swing.JComponent c, java.awt.Graphics g, int x, int y)
- Overrides:
paint
in classAttributedString
-
replaceAll
public AttributedString replaceAll(char[] targets, char repacement)
- Overrides:
replaceAll
in classAttributedString
-
substring
public AttributedString substring(int start)
- Overrides:
substring
in classAttributedString
-
substring
public AttributedString substring(int start, int end)
- Overrides:
substring
in classAttributedString
-
-