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.
-
-
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 java.awt.Color
getColor(int index)
int
getColumnPosition(int width)
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
-
-
-
-
Constructor Detail
-
CompositeAttributedString
public CompositeAttributedString(java.util.List<AttributedString> stringList)
-
CompositeAttributedString
public CompositeAttributedString(AttributedString[] attributedStrings)
-
-
Method Detail
-
getColumnPosition
public int getColumnPosition(int width)
- Overrides:
getColumnPosition
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
-
-