API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. Caret View Source
Author(s)
Timothy Prinzing
Since
Version
1.32 07/11/06
Serial
Hierarchy
 Caret
Subinterfaces
Description
public interface Caret
  A place within a document view that represents where things can be inserted into the document model.
See also:   
Methods
Hide/Show inherited methods
public void addChangeListener (ChangeListener l)
  Adds a listener to track whenever the caret position has been changed.
public void deinstall (JTextComponent c)
  Called when the UI is being removed from the interface of a JTextComponent.
public int getBlinkRate ()
  Gets the blink rate of the caret.
public int getDot ()
  Fetches the current position of the caret.
public Point getMagicCaretPosition ()
  Gets the current caret visual location.
public int getMark ()
  Fetches the current position of the mark.
public void install (JTextComponent c)
  Called when the UI is being installed into the interface of a JTextComponent.
public boolean isSelectionVisible ()
  Determines if the selection is currently visible.
public boolean isVisible ()
  Determines if the caret is currently visible.
public void moveDot (int dot)
  Moves the caret position (dot) to some other position, leaving behind the mark.
public void paint (Graphics g)
  Renders the caret.
public void removeChangeListener (ChangeListener l)
  Removes a listener that was tracking caret position changes.
public void setBlinkRate (int rate)
  Sets the blink rate of the caret.
public void setDot (int dot)
  Sets the caret position to some position.
public void setMagicCaretPosition (Point p)
  Set the current caret visual location.
public void setSelectionVisible (boolean v)
  Sets the visibility of the selection
public void setVisible (boolean v)
  Sets the visibility of the caret.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar