com.raelity.jvi.swing
Class ViCaretDelegate

java.lang.Object
  extended by 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


Constructor Summary
ViCaretDelegate(ViCaret caret)
           
 
Method Summary
 boolean damage(Rectangle cleanupArea, Rectangle cursorArea)
           
 ViCursor getCursor()
           
 void paint(Graphics g, JTextComponent component)
          Render the caret as specified by the cursor.
 void setCursor(ViCursor cursor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViCaretDelegate

public ViCaretDelegate(ViCaret caret)
Method Detail

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.