All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.motif.MotifTextUI.MotifCaret
java.lang.Object
|
+----java.awt.swing.text.DefaultCaret
|
+----java.awt.swing.motif.MotifTextUI.MotifCaret
- public static class MotifTextUI.MotifCaret
- extends DefaultCaret
- implements UIResource
The motif caret is rendered as an I beam.
MotifTextUI.MotifCaret()
-
damage(Rectangle)
- Damages the area surrounding the caret to cause
it to be repainted.
paint(Graphics)
- Renders the caret as a vertical line.
MotifTextUI.MotifCaret
public MotifTextUI.MotifCaret()
damage
protected void damage(Rectangle r)
- Damages the area surrounding the caret to cause
it to be repainted. If paint() is reimplemented,
this method should also be reimplemented.
- Parameters:
- r - the current location of the caret
- Overrides:
- damage in class DefaultCaret
- See Also:
- paint
paint
public void paint(Graphics g)
- Renders the caret as a vertical line. If this is reimplemented
the damage method should also be reimplemented as it assumes the
shape of the caret is a vertical line.
- Parameters:
- g - the graphics context
- Overrides:
- paint in class DefaultCaret
- See Also:
- damage
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature