|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.LayeredHighlighter.LayerPainter
edu.rice.cs.drjava.ui.ReverseHighlighter.DefaultUnderlineHighlightPainter
public static class ReverseHighlighter.DefaultUnderlineHighlightPainter
Simple highlight painter that underlines text.
| Constructor Summary | |
|---|---|
ReverseHighlighter.DefaultUnderlineHighlightPainter(Color c,
int t)
Constructs a new highlight painter. |
|
| Method Summary | |
|---|---|
Color |
getColor()
|
int |
getThickness()
|
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 ReverseHighlighter.DefaultUnderlineHighlightPainter(Color c,
int t)
c - the color for the highlightt - the thickness in pixels| Method Detail |
|---|
public Color getColor()
public int getThickness()
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 editor
public Shape paintLayer(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c,
View view)
paintLayer in class LayeredHighlighter.LayerPainterg - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||