|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.Segment javax.swing.text.TextLayoutStrategy.AttributedSegment
Implementation of AttributedCharacterIterator that supports the GlyphView attributes for rendering the glyphs through a TextLayout.
Nested Class Summary |
Nested classes inherited from class java.text.AttributedCharacterIterator |
AttributedCharacterIterator.Attribute |
Field Summary | |
(package private) static Set |
keys
|
(package private) View |
v
|
Fields inherited from class javax.swing.text.Segment |
array, count, offset |
Fields inherited from interface java.text.CharacterIterator |
DONE |
Constructor Summary | |
(package private) |
TextLayoutStrategy.AttributedSegment()
|
Method Summary | |
Set |
getAllAttributeKeys()
Returns the keys of all attributes defined on the iterator's text range. |
Object |
getAttribute(AttributedCharacterIterator.Attribute attribute)
Returns the value of the named attribute for the current character. |
Map |
getAttributes()
Returns a map with the attributes defined on the current character. |
(package private) Font |
getFont(int childIndex)
Get the font at the given child index. |
(package private) int |
getFontBoundary(int childIndex,
int dir)
Get a boundary position for the font. |
int |
getRunLimit()
Returns the index of the first character following the run with respect to all attributes containing the current character. |
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. |
int |
getRunLimit(Set attributes)
Returns the index of the first character following the run with respect to the given attributes containing the current character. |
int |
getRunStart()
Returns the index of the first character of the run with respect to all attributes containing the current character. |
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. |
int |
getRunStart(Set attributes)
Returns the index of the first character of the run with respect to the given attributes containing the current character. |
(package private) View |
getView()
|
(package private) void |
setView(View v)
|
(package private) int |
toIteratorIndex(int pos)
|
(package private) int |
toModelPosition(int index)
|
Methods inherited from class javax.swing.text.Segment |
clone, current, first, getBeginIndex, getEndIndex, getIndex, isPartialReturn, last, next, previous, setIndex, setPartialReturn, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.text.CharacterIterator |
clone, current, first, getBeginIndex, getEndIndex, getIndex, last, next, previous, setIndex |
Field Detail |
View v
static Set keys
Constructor Detail |
TextLayoutStrategy.AttributedSegment()
Method Detail |
View getView()
void setView(View v)
int getFontBoundary(int childIndex, int dir)
Font getFont(int childIndex)
int toModelPosition(int index)
int toIteratorIndex(int pos)
public int getRunStart()
getRunStart
in interface AttributedCharacterIterator
public int getRunStart(AttributedCharacterIterator.Attribute attribute)
getRunStart
in interface AttributedCharacterIterator
public int getRunStart(Set attributes)
getRunStart
in interface AttributedCharacterIterator
public int getRunLimit()
getRunLimit
in interface AttributedCharacterIterator
public int getRunLimit(AttributedCharacterIterator.Attribute attribute)
getRunLimit
in interface AttributedCharacterIterator
public int getRunLimit(Set attributes)
getRunLimit
in interface AttributedCharacterIterator
public Map getAttributes()
getAttributes
in interface AttributedCharacterIterator
public Object getAttribute(AttributedCharacterIterator.Attribute attribute)
getAttribute
in interface AttributedCharacterIterator
attribute
- the key of the attribute whose value is requested.public Set getAllAttributeKeys()
getAllAttributeKeys
in interface AttributedCharacterIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |