|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.wordpress.tipsforjava.swing.LinePainter
public class LinePainter extends Object
Track the movement of the Caret by painting a background line at the current caret position.
| Field Summary | |
|---|---|
private Color |
color
|
private JTextComponent |
component
|
private Rectangle |
lastView
|
| Constructor Summary | |
LinePainter(JTextComponent component)
|
|
LinePainter(JTextComponent component, Color color)
|
|
| Method Summary | |
|---|---|
void
|
caretUpdate(CaretEvent e)
|
void
|
mouseClicked(MouseEvent e)
|
void
|
mouseDragged(MouseEvent e)
|
void
|
mouseEntered(MouseEvent e)
|
void
|
mouseExited(MouseEvent e)
|
void
|
mouseMoved(MouseEvent e)
|
void
|
mousePressed(MouseEvent e)
|
void
|
mouseReleased(MouseEvent e)
|
void
|
paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)
|
private void
|
resetHighlight()
|
void
|
setColor(Color color)
|
void
|
setLighter(Color color)
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private Color color
private JTextComponent component
private Rectangle lastView
| Constructor Detail |
|---|
public LinePainter(JTextComponent component)
public LinePainter(JTextComponent component, Color color)
| Method Detail |
|---|
public void caretUpdate(CaretEvent e)
public void mouseClicked(MouseEvent e)
public void mouseDragged(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mouseMoved(MouseEvent e)
public void mousePressed(MouseEvent e)
public void mouseReleased(MouseEvent e)
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)
private void resetHighlight()
public void setColor(Color color)
public void setLighter(Color color)
Groovy Documentation