Home » openjdk-7 » javax » swing » text » [javadoc | source]
javax.swing.text
static class: TextLayoutStrategy.AttributedSegment [javadoc | source]
java.lang.Object
   javax.swing.text.Segment
      javax.swing.text.TextLayoutStrategy$AttributedSegment

All Implemented Interfaces:
    AttributedCharacterIterator, CharSequence, CharacterIterator, Cloneable

Implementation of AttributedCharacterIterator that supports the GlyphView attributes for rendering the glyphs through a TextLayout.
Field Summary
 View v     
static  Set<Attribute> keys     
Fields inherited from javax.swing.text.Segment:
array,  offset,  count
Constructor:
 AttributedSegment() 
Method from javax.swing.text.TextLayoutStrategy$AttributedSegment Summary:
getAllAttributeKeys,   getAttribute,   getAttributes,   getFont,   getFontBoundary,   getRunLimit,   getRunLimit,   getRunLimit,   getRunStart,   getRunStart,   getRunStart,   getView,   setView,   toIteratorIndex,   toModelPosition
Methods from javax.swing.text.Segment:
charAt,   clone,   current,   first,   getBeginIndex,   getEndIndex,   getIndex,   isPartialReturn,   last,   length,   next,   previous,   setIndex,   setPartialReturn,   subSequence,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.TextLayoutStrategy$AttributedSegment Detail:
 public Set<Attribute> getAllAttributeKeys() 
    Returns the keys of all attributes defined on the iterator's text range. The set is empty if no attributes are defined.
 public Object getAttribute(Attribute attribute) 
    Returns the value of the named attribute for the current character. Returns null if the attribute is not defined.
 public Map<Attribute, Object> getAttributes() 
    Returns a map with the attributes defined on the current character.
 Font getFont(int childIndex) 
    Get the font at the given child index.
 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).
 public int getRunLimit() 
    Returns the index of the first character following the run with respect to all attributes containing the current character.
 public int getRunLimit(Attribute attribute) 
    Returns the index of the first character following the run with respect to the given attribute containing the current character.
 public int getRunLimit(Set<? extends Attribute> attributes) 
    Returns the index of the first character following the run with respect to the given attributes containing the current character.
 public int getRunStart() 
    Returns the index of the first character of the run with respect to all attributes containing the current character.
 public int getRunStart(Attribute attribute) 
    Returns the index of the first character of the run with respect to the given attribute containing the current character.
 public int getRunStart(Set<? extends Attribute> attributes) 
    Returns the index of the first character of the run with respect to the given attributes containing the current character.
 View getView() 
  void setView(View v) 
 int toIteratorIndex(int pos) 
 int toModelPosition(int index)