All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.text.TextCaret
java.lang.Object
|
+----jp.kyasu.awt.text.TextCaret
- public class TextCaret
- extends Object
- implements ActionListener, Serializable
The TextCaret
class implements a caret showing in the
TextEditView
object.
- Version:
- 16 Dec 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- TextEditView
-
BAR_CARET
- The caret style constant for the bar caret.
-
BLINK_INTERVAL
- The default interval of blinking.
-
DEFAULT_CARET_COLOR
- The default caret color.
-
DEFAULT_CARET_STYLE
- The default caret style.
-
DEFAULT_DO_BLINK
- The default flag that determines to blink the caret.
-
HAT_CARET
- The caret style constant for the hat caret.
-
TextCaret()
- Constructs a text caret with the default style and the default
flag determining to do blink.
-
TextCaret(boolean)
- Constructs a text caret with the default style and the specified
flag determining to do blink.
-
TextCaret(int)
- Constructs a text caret with the specified style and the default
flag determining to do blink.
-
TextCaret(int, boolean)
- Constructs a text caret with the specified style and flag determining
to do blink.
-
actionPerformed(ActionEvent)
- Invoked when a timer action occurs.
-
doBlink()
- Tests if this caret does blinking.
-
getStyle()
- Returns the style of this caret.
-
hideCaret(Graphics, Point, TextPositionInfo, Color)
- Hides this caret with the specified graphics, offset, text position,
and color.
-
isBlinking()
- Tests if this caret is blinking.
-
showCaret(Graphics, Point, TextPositionInfo, Color)
- Shows this caret with the specified graphics, offset, text position,
and color.
-
start()
- Starts the blinking.
-
stop()
- Stops the blinking.
BAR_CARET
public static final int BAR_CARET
- The caret style constant for the bar caret.
HAT_CARET
public static final int HAT_CARET
- The caret style constant for the hat caret.
DEFAULT_CARET_STYLE
public static final int DEFAULT_CARET_STYLE
- The default caret style.
DEFAULT_CARET_COLOR
public static final Color DEFAULT_CARET_COLOR
- The default caret color.
DEFAULT_DO_BLINK
public static final boolean DEFAULT_DO_BLINK
- The default flag that determines to blink the caret.
BLINK_INTERVAL
public static final int BLINK_INTERVAL
- The default interval of blinking.
TextCaret
public TextCaret()
- Constructs a text caret with the default style and the default
flag determining to do blink.
TextCaret
public TextCaret(int style)
- Constructs a text caret with the specified style and the default
flag determining to do blink.
- Parameters:
- style - the caret style.
TextCaret
public TextCaret(boolean doBlink)
- Constructs a text caret with the default style and the specified
flag determining to do blink.
- Parameters:
- doBlink - the flag determining to do blink.
TextCaret
public TextCaret(int style,
boolean doBlink)
- Constructs a text caret with the specified style and flag determining
to do blink.
- Parameters:
- style - the caret style.
- doBlink - the flag determining to do blink.
doBlink
public boolean doBlink()
- Tests if this caret does blinking.
getStyle
public int getStyle()
- Returns the style of this caret.
actionPerformed
public void actionPerformed(ActionEvent e)
- Invoked when a timer action occurs.
start
public synchronized void start()
- Starts the blinking.
stop
public synchronized void stop()
- Stops the blinking.
isBlinking
public synchronized boolean isBlinking()
- Tests if this caret is blinking.
showCaret
public synchronized void showCaret(Graphics g,
Point offset,
TextPositionInfo posInfo,
Color caretColor)
- Shows this caret with the specified graphics, offset, text position,
and color.
- Parameters:
- g - the graphics object.
- offset - the offset of the graphics object.
- posInfo - the text position to show the caret.
- caretColor - the caret color.
hideCaret
public synchronized void hideCaret(Graphics g,
Point offset,
TextPositionInfo posInfo,
Color caretColor)
- Hides this caret with the specified graphics, offset, text position,
and color.
- Parameters:
- g - the graphics object.
- offset - the offset of the graphics object.
- posInfo - the text position to hide the caret.
- caretColor - the caret color.
All Packages Class Hierarchy This Package Previous Next Index