public class EmptyCaret
extends java.lang.Object
implements javax.swing.text.Caret
Modifier and Type | Field and Description |
---|---|
static javax.swing.text.Caret |
INSTANCE |
Constructor and Description |
---|
EmptyCaret() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l) |
void |
deinstall(javax.swing.text.JTextComponent c) |
int |
getBlinkRate() |
int |
getDot() |
java.awt.Point |
getMagicCaretPosition() |
int |
getMark() |
void |
install(javax.swing.text.JTextComponent c) |
boolean |
isSelectionVisible() |
boolean |
isVisible() |
void |
moveDot(int dot) |
void |
paint(java.awt.Graphics g) |
void |
removeChangeListener(javax.swing.event.ChangeListener l) |
void |
setBlinkRate(int rate) |
void |
setDot(int dot) |
void |
setMagicCaretPosition(java.awt.Point p) |
void |
setSelectionVisible(boolean v) |
void |
setVisible(boolean v) |
public void install(javax.swing.text.JTextComponent c)
install
in interface javax.swing.text.Caret
public void deinstall(javax.swing.text.JTextComponent c)
deinstall
in interface javax.swing.text.Caret
public void paint(java.awt.Graphics g)
paint
in interface javax.swing.text.Caret
public void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener
in interface javax.swing.text.Caret
public void removeChangeListener(javax.swing.event.ChangeListener l)
removeChangeListener
in interface javax.swing.text.Caret
public boolean isVisible()
isVisible
in interface javax.swing.text.Caret
public void setVisible(boolean v)
setVisible
in interface javax.swing.text.Caret
public boolean isSelectionVisible()
isSelectionVisible
in interface javax.swing.text.Caret
public void setSelectionVisible(boolean v)
setSelectionVisible
in interface javax.swing.text.Caret
public void setMagicCaretPosition(java.awt.Point p)
setMagicCaretPosition
in interface javax.swing.text.Caret
public java.awt.Point getMagicCaretPosition()
getMagicCaretPosition
in interface javax.swing.text.Caret
public void setBlinkRate(int rate)
setBlinkRate
in interface javax.swing.text.Caret
public int getBlinkRate()
getBlinkRate
in interface javax.swing.text.Caret
public int getDot()
getDot
in interface javax.swing.text.Caret
public int getMark()
getMark
in interface javax.swing.text.Caret
public void setDot(int dot)
setDot
in interface javax.swing.text.Caret
public void moveDot(int dot)
moveDot
in interface javax.swing.text.Caret