Class: javax.swing.text.TextLayoutStrategy.AttributedSegment
- static class TextLayoutStrategy.AttributedSegment
- extends Segment
- implements AttributedCharacterIterator
Implementation of AttributedCharacterIterator that supports
the GlyphView attributes for rendering the glyphs through a
TextLayout.
Inheritance
Superclass tree:- java.lang.Object
- javax.swing.text.Segment
- javax.swing.text.TextLayoutStrategy.AttributedSegment
Methods
-
TextLayoutStrategy.AttributedSegmenttop
TextLayoutStrategy.AttributedSegment() -
getAllAttributeKeystop
public Set getAllAttributeKeys()Returns the keys of all attributes defined on the iterator's text range. The set is empty if no attributes are defined.- Specified by:
- getAllAttributeKeys from AttributedCharacterIterator
-
getAttributetop
Returns the value of the named attribute for the current character. Returns null if the attribute is not defined.- Specified by:
- getAttribute from AttributedCharacterIterator
-
getAttributestop
public Map getAttributes()Returns a map with the attributes defined on the current character.- Specified by:
- getAttributes from AttributedCharacterIterator
-
getFonttop
Font getFont(int childIndex)Get the font at the given child index. -
getFontBoundarytop
int getFontBoundary(int childIndex, int dir)Get a boundary position for the font. This is implemented to assume that two fonts are equal if their references are equal (i.e. that the font came from a cache). -
getRunLimittop
public int getRunLimit()Returns the index of the first character following the run with respect to all attributes containing the current character.- Specified by:
- getRunLimit from AttributedCharacterIterator
-
getRunLimittop
public int getRunLimit(AttributedCharacterIterator.Attribute attribute)Returns the index of the first character following the run with respect to the given attribute containing the current character.- Specified by:
- getRunLimit from AttributedCharacterIterator
-
getRunLimittop
Returns the index of the first character following the run with respect to the given attributes containing the current character.- Specified by:
- getRunLimit from AttributedCharacterIterator
-
getRunStarttop
public int getRunStart()Returns the index of the first character of the run with respect to all attributes containing the current character.- Specified by:
- getRunStart from AttributedCharacterIterator
-
getRunStarttop
public int getRunStart(AttributedCharacterIterator.Attribute attribute)Returns the index of the first character of the run with respect to the given attribute containing the current character.- Specified by:
- getRunStart from AttributedCharacterIterator
-
getRunStarttop
Returns the index of the first character of the run with respect to the given attributes containing the current character.- Specified by:
- getRunStart from AttributedCharacterIterator
-
getViewtop
View getView() -
setViewtop
void setView(View v) -
toIteratorIndextop
int toIteratorIndex(int pos) -
toModelPositiontop
int toModelPosition(int index)
