| java.lang.Object com.ibm.richtext.textpanel.FakeComponent com.ibm.richtext.textpanel.TextComponent
Method Summary | |
void | addNotify() | synchronized void | drawText(Graphics g, Rectangle damagedRect, boolean selectionVisible, TextOffset selStart, TextOffset selEnd, Color hiliteColor) | TextOffset | findNewInsertionOffset(TextOffset result, TextOffset initialOffset, TextOffset previousOffset, short direction) | public void | focusGained(FocusEvent event) | public void | focusLost(FocusEvent event) | public Behavior | getBehavior() | Rectangle | getBoundingRect(TextOffset offset1, TextOffset offset2) | public Rectangle | getBounds() | Rectangle | getCaretRect(TextOffset offset) | StyledTextClipboard | getClipboard() | AttributeMap | getDefaultValues() | int | getFormatWidth() | Graphics | getGraphics() | Component | getHost() | MText | getModifiableText() | public Rectangle | getScrollSize() | MConstText | getText() | public void | keyPressed(KeyEvent event) | public void | keyReleased(KeyEvent event) | public void | keyTyped(KeyEvent event) | int | lineContaining(TextOffset offset) | int | lineRangeLimit(int lineNumber) | int | lineRangeLow(int lineNumber) | public void | mouseClicked(MouseEvent event) | public void | mouseDragged(MouseEvent event) | public void | mouseEntered(MouseEvent event) | public void | mouseExited(MouseEvent event) | public void | mouseMoved(MouseEvent event) | public void | mousePressed(MouseEvent event) | public void | mouseReleased(MouseEvent event) | public synchronized void | paint(Graphics g) | boolean | paragraphIsLeftToRight(int offset) Return true if the paragraph at the given offset is left-to-right. | TextOffset | pointToTextOffset(TextOffset result, int x, int y, TextOffset anchor, boolean infiniteMode) | synchronized void | reformatAndDrawText(int reformatStart, int reformatLength, TextOffset selStart, TextOffset selEnd, Rectangle additionalUpdateRect, Color hiliteColor) | void | requestFocus() | public void | scrollTo(int x, int y) | void | scrollToShow(Rectangle showRect) | void | scrollToShow(int showX, int showY) | public void | setBehavior(Behavior b) | void | setHost(Component component) | void | stopBackgroundFormatting() | public boolean | textControlEventOccurred(Behavior.EventType event, Object what) |
DEFAULT_INSET | final public static int DEFAULT_INSET(Code) | | |
WINDOW_WIDTH | final public static int WINDOW_WIDTH(Code) | | |
TextComponent | public TextComponent(MText text, AttributeMap defaultValues, boolean wraps, int wrapWidth, int insetAmount, StyledTextClipboard clipboard, boolean scrolls, Scroller scroller, PanelEventBroadcaster listener)(Code) | | Create a new TextComponent.
Parameters: text - the text model. This model will be used forthe life of the component, even if setText is called Parameters: wraps - if true, the text is wrapped to the specifiedwrapping width. If false, the text wraps only at paragraph breaks. Parameters: wrapWidth - ignored if wraps is false. Text wraps to this widthunless the width is WINDOW_WIDTH, in which case text wraps to widthof this component. Should not be negative (unless it is WINDOW_WIDTH). Parameters: insetAmount - the size of the margins around the text Parameters: clipboard - the clipboard to use for cut/copy/paste operations.If null, the component will use its own clipboard. |
addNotify | void addNotify()(Code) | | |
getFormatWidth | int getFormatWidth()(Code) | | |
lineRangeLimit | int lineRangeLimit(int lineNumber)(Code) | | |
lineRangeLow | int lineRangeLow(int lineNumber)(Code) | | |
paragraphIsLeftToRight | boolean paragraphIsLeftToRight(int offset)(Code) | | Return true if the paragraph at the given offset is left-to-right.
Parameters: offset - an offset in the text true if the paragraph at the given offset is left-to-right |
requestFocus | void requestFocus()(Code) | | |
scrollTo | public void scrollTo(int x, int y)(Code) | | |
scrollToShow | void scrollToShow(int showX, int showY)(Code) | | |
stopBackgroundFormatting | void stopBackgroundFormatting()(Code) | | |
|
|