Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.LayeredHighlighter.LayerPainter javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
public static class DefaultHighlighter.DefaultHighlightPainter extends LayeredHighlighter.LayerPainter
Simple highlight painter that fills a highlighted area with a solid color.
Constructor and Description |
---|
DefaultHighlighter.DefaultHighlightPainter(Color c)
Constructs a new highlight painter. |
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Returns the color of the highlight. |
void |
paint(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c)
Paints a highlight. |
Shape |
paintLayer(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c,
View view)
Paints a portion of a highlight. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHighlighter.DefaultHighlightPainter(Color c)
c
is null,
the JTextComponent will be queried for its selection color.
c
- the color for the highlightMethod Detail |
---|
public Color getColor()
public void paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)
g
- the graphics contextoffs0
- the starting model offset >= 0offs1
- the ending model offset >= offs1bounds
- the bounding box for the highlightc
- the editorpublic Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
paintLayer
in class LayeredHighlighter.LayerPainter
g
- the graphics contextoffs0
- the starting model offset >= 0offs1
- the ending model offset >= offs1bounds
- the bounding box of the view, which is not
necessarily the region to paint.c
- the editorview
- View painting for
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.