com.raelity.jvi.swing
Class ViCaretDelegate
java.lang.Object
com.raelity.jvi.swing.ViCaretDelegate
public class ViCaretDelegate
- extends Object
This handles the VI behavior of a caret, drawing the caret is
the big deal.
// NEEDSWORK: cache the current font metric, listen to font property changes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViCaretDelegate
public ViCaretDelegate(ViCaret caret)
setCursor
public void setCursor(ViCursor cursor)
getCursor
public ViCursor getCursor()
damage
public boolean damage(Rectangle cleanupArea,
Rectangle cursorArea)
paint
public void paint(Graphics g,
JTextComponent component)
- Render the caret as specified by the cursor.