Home » openjdk-7 » javax » swing » text » [javadoc | source]
javax.swing.text
final class: DefaultGlyphPainter [javadoc | source]
java.lang.Object
   javax.swing.text.GlyphView.GlyphPainter
      javax.swing.text.DefaultGlyphPainter
Default GlyphPainter which is used when a GlyphView needs a painter but none was set.
Method from javax.swing.text.DefaultGlyphPainter Summary:
drawSelectedText,   drawText,   drawUnselectedText,   getAscent,   getBoundedPosition,   getDefaultPainter,   getDescent,   getFontMetrics,   getFontMetrics,   getHeight,   getSpan,   modelToView,   paint,   viewToModel
Methods from javax.swing.text.GlyphView$GlyphPainter:
getAscent,   getBoundedPosition,   getDescent,   getHeight,   getNextVisualPositionFrom,   getPainter,   getSpan,   modelToView,   paint,   viewToModel
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.DefaultGlyphPainter Detail:
 int drawSelectedText(TextPainter tp,
    Graphics g,
    int start,
    int end,
    int x,
    int y) throws BadLocationException 
 int drawText(GlyphView v,
    Graphics g,
    int start,
    int end,
    int x,
    int y) throws BadLocationException 
 int drawUnselectedText(TextPainter tp,
    Graphics g,
    int start,
    int end,
    int x,
    int y) throws BadLocationException 
 public float getAscent(GlyphView v) 
 public int getBoundedPosition(GlyphView v,
    int startOffset,
    float x,
    float len) 
 static GlyphPainter getDefaultPainter() 
 public float getDescent(GlyphView v) 
 static FontMetrics getFontMetrics(GlyphView v) 
 static FontMetrics getFontMetrics(GlyphView v,
    Font font) 
 public float getHeight(GlyphView v) 
 public float getSpan(GlyphView v,
    int startOffset,
    int endOffset,
    TabExpander tabExpander,
    float x) 
 public Shape modelToView(GlyphView v,
    int offset,
    Bias bias,
    Shape alloc) throws BadLocationException 
 public  void paint(GlyphView v,
    Graphics g,
    Shape alloc,
    int startOffset,
    int endOffset) 
 public int viewToModel(GlyphView v,
    float x,
    float y,
    Shape alloc,
    Bias[] biasReturn)