| java.lang.Object com.ibm.richtext.textpanel.Behavior com.ibm.richtext.textpanel.TextSelection
Method Summary | |
protected void | advanceToNextBoundary(TextOffset offset) | protected void | advanceToPreviousBoundary(TextOffset offset) | protected void | drawSelection(Graphics g, boolean visible) draws or erases the current selection
Draws or erases the highlight region or insertion caret for the current selection
range. | protected void | drawSelectionRange(Graphics g, TextOffset start, TextOffset limit, boolean visible) draws or erases a selection highlight at the specfied positions
Draws or erases a selection highlight or insertion caret corresponding to
the specified selecion range
Parameters: g - The graphics environment to draw into. | boolean | enabled() | public boolean | focusGained(FocusEvent e) | public boolean | focusLost(FocusEvent e) | protected TextOffset | getAnchor() | public TextOffset | getEnd() | public Color | getHighlightColor() | public TextRange | getSelectionRange() | public TextOffset | getStart() | public static boolean | keyAffectsSelection(KeyEvent e) Return true if the given key event can affect the selection
range. | public boolean | keyPressed(KeyEvent e) | public boolean | mousePressed(MouseEvent e) | public boolean | mouseReleased(MouseEvent e) | void | mouseReleased(boolean zeroLengthChange) | public boolean | paint(Graphics g, Rectangle drawRect) | static boolean | rangeIsZeroLength(TextOffset start, TextOffset limit, TextOffset anchor) | public void | removeFromOwner() | public void | restartCaretBlinking(boolean caretIsVisible) Resume blinking the caret, if the selection is an insertion point. | public void | run() | public void | scrollToShowSelection() | public void | scrollToShowSelectionEnd() | public void | setHighlightColor(Color newColor) | public void | setSelRangeAndDraw(TextOffset newStart, TextOffset newLimit, TextOffset newAnchor) | public void | setSelectionRange(TextOffset newStart, TextOffset newLimit, TextOffset newAnchor) | public void | stopCaretBlinking() | public boolean | textControlEventOccurred(Behavior.EventType event, Object what) |
advanceToNextBoundary | protected void advanceToNextBoundary(TextOffset offset)(Code) | | |
advanceToPreviousBoundary | protected void advanceToPreviousBoundary(TextOffset offset)(Code) | | |
drawSelection | protected void drawSelection(Graphics g, boolean visible)(Code) | | draws or erases the current selection
Draws or erases the highlight region or insertion caret for the current selection
range.
Parameters: g - The graphics environment to draw into Parameters: visible - If true, draw the selection; if false, erase it |
drawSelectionRange | protected void drawSelectionRange(Graphics g, TextOffset start, TextOffset limit, boolean visible)(Code) | | draws or erases a selection highlight at the specfied positions
Draws or erases a selection highlight or insertion caret corresponding to
the specified selecion range
Parameters: g - The graphics environment to draw into. If null, this method does nothing. Parameters: start - The beginning of the range to highlight Parameters: limit - The end of the range to highlight Parameters: visible - If true, draw; if false, erase |
enabled | boolean enabled()(Code) | | |
getHighlightColor | public Color getHighlightColor()(Code) | | |
keyAffectsSelection | public static boolean keyAffectsSelection(KeyEvent e)(Code) | | Return true if the given key event can affect the selection
range.
|
mouseReleased | void mouseReleased(boolean zeroLengthChange)(Code) | | |
paint | public boolean paint(Graphics g, Rectangle drawRect)(Code) | | draws the selection
Provided, of course, that the selection is visible, the adorner is enabled,
and we're calling it to adorn the view it actually belongs to
Parameters: g - The graphics environment to draw into true if we actually drew |
removeFromOwner | public void removeFromOwner()(Code) | | |
restartCaretBlinking | public void restartCaretBlinking(boolean caretIsVisible)(Code) | | Resume blinking the caret, if the selection is an insertion point.
Parameters: caretIsVisible - true if the caret is displayed when this is called.This method relies on the client to display (or not display) the caret. |
scrollToShowSelection | public void scrollToShowSelection()(Code) | | scrolls the view to reveal the live end of the selection
(i.e., the end that moves if you use the arrow keys with the shift key down)
|
scrollToShowSelectionEnd | public void scrollToShowSelectionEnd()(Code) | | scrolls the view to reveal the live end of the selection
(i.e., the end that moves if you use the arrow keys with the shift key down)
|
setHighlightColor | public void setHighlightColor(Color newColor)(Code) | | |
stopCaretBlinking | public void stopCaretBlinking()(Code) | | |
|
|