All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.event.TextPositionEvent
java.lang.Object
|
+----java.util.EventObject
|
+----java.awt.AWTEvent
|
+----jp.kyasu.awt.event.TextPositionEvent
- public class TextPositionEvent
- extends AWTEvent
The TextPosition event that is originated from a TextEditView
object to TextPositionListener
s.
- Version:
- 13 Apr 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- TextEditView, TextPositionListener
-
TEXT_POSITION_CHANGED
- The text position changed event.
-
TEXT_POSITION_FIRST
- Marks the first integer id for the range of text position event ids.
-
TEXT_POSITION_LAST
- Marks the last integer id for the range of text position event ids.
-
TextPositionEvent(Object, int, TextPositionInfo, TextPositionInfo)
- Constructs a TextPositionEvent object with the specified source, id,
beginning position, and ending position.
-
getSelectionBegin()
- Returns the beginning position information of the selection.
-
getSelectionBeginIndex()
- Returns the beginning position index of the selection.
-
getSelectionBeginLineIndex()
- Returns the beginning position line index of the selection.
-
getSelectionEnd()
- Returns the ending position information of the selection.
-
getSelectionEndIndex()
- Returns the ending position index of the selection.
-
getSelectionEndLineIndex()
- Returns the ending position line index of the selection.
-
paramString()
-
-
selectionIsCaret()
- Returns true if the selection is caret, i.e., null selection.
TEXT_POSITION_FIRST
public static final int TEXT_POSITION_FIRST
- Marks the first integer id for the range of text position event ids.
TEXT_POSITION_LAST
public static final int TEXT_POSITION_LAST
- Marks the last integer id for the range of text position event ids.
TEXT_POSITION_CHANGED
public static final int TEXT_POSITION_CHANGED
- The text position changed event.
TextPositionEvent
public TextPositionEvent(Object source,
int id,
TextPositionInfo begin,
TextPositionInfo end)
- Constructs a TextPositionEvent object with the specified source, id,
beginning position, and ending position.
- Parameters:
- source - the object where the event originated.
- id - the event type.
- begin - the beginning position of the selection, inclusive.
- end - the ending position of the selection, exclusive.
getSelectionBegin
public TextPositionInfo getSelectionBegin()
- Returns the beginning position information of the selection.
getSelectionEnd
public TextPositionInfo getSelectionEnd()
- Returns the ending position information of the selection.
getSelectionBeginIndex
public int getSelectionBeginIndex()
- Returns the beginning position index of the selection.
getSelectionEndIndex
public int getSelectionEndIndex()
- Returns the ending position index of the selection.
getSelectionBeginLineIndex
public int getSelectionBeginLineIndex()
- Returns the beginning position line index of the selection.
getSelectionEndLineIndex
public int getSelectionEndLineIndex()
- Returns the ending position line index of the selection.
selectionIsCaret
public boolean selectionIsCaret()
- Returns true if the selection is caret, i.e., null selection.
paramString
public String paramString()
- Overrides:
- paramString in class AWTEvent
All Packages Class Hierarchy This Package Previous Next Index