Method Summary |
|
public void | addNotify() |
public Color | getBackground() |
protected Point | getCursorPoint() This returns the cursor's x/y location in Point format. |
protected int | getCursorPos() |
public int | getCursorPosFromPoint(Point p) This returns the cursor's position from a Point. |
protected int | getFirstLine() |
public Font | getFont() This returns the font of the Paragraph. |
public FontMetrics | getFontMetrics() This returns the FontMetrics of the Paragraph. |
public Color | getForeground() This returns the foreground of the Paragraph. |
protected Color | getHighlight() This returns the color of the highlight. |
protected Color | getHighlightedText() This returns the color of the highlighted text. |
public Insets | getInsets() This returns the insets of the Paragraph. |
protected Vector | getLines() This returns the lines of the Paragraph. |
protected boolean | getMarkVisible() This returns whether or not the mark (selection) is visible. |
protected int | getPositionAt(String s, int len) This takes the string and returns the cursor position given the length
in pixels. |
protected int | getPrevXOffset() This returns the previous x offset. |
protected int | getSelectionEnd() This returns the end of the selection. |
protected int | getSelectionStart() This returns the start of the selection. |
protected int | getSelectionState() This returns the selection state. |
public IScrollable | getTarget() This returns the text control. |
protected String | getText() This returns the text of the Paragraph. |
public int | getWidth() This returns the width of the Paragraph in pixels. |
protected int | getXCoord() This returns the cursor position. |
protected int | getXOffset() This returns the x offset. |
protected int | getYSpan() This returns the height of the Paragraph. |
protected boolean | insertChar(char c, boolean watchWidth) This inserts a character into the Paragraph. |
protected boolean | isAllowScroll() This returns whether or not the Paragraph class allows scrolling. |
public boolean | isAutoWrap() This returns whether or not the Paragraph class allows
auto-wrapping behavior. |
protected boolean | isCursorAtEnd() This returns whether or not the cursor position is at the end. |
protected boolean | isCursorOnFirstLine() This returns whether or not the cursor is on the first line of the text
control. |
protected boolean | isCursorOnLastLine() This returns whether or not the cursor is on the last line
of the text control. |
protected boolean | isVisible() This returns whether or not the Paragraph class is
visible. |
protected void | moveSpecial(boolean b, int w, int key) This moves the cursor within the text control. |
protected void | onBackspaceKey() This is called whenever the user hits the 'Backspace' key. |
protected void | onDeleteKey() This is called whenever the user hits the 'Delete' key. |
protected void | onDownKey() This is called whenever the user hits the down arrow key in a MultiText
control and the new cursor position has to be figured. |
protected void | onEndKey() This is called from the MultiText class when the 'End' key was pressed
and the new cursor position has to be figured out. |
protected String | onEnterKey() This is called from the MultiText class to determine
whether the 'Enter' key was pressed in the middle of
a Paragraph. |
protected void | onHomeKey() This is called from the MultiText class whenever the 'Home' key is
pressed and the new cursor position has to be figured out. |
protected void | onScrollAction() This is called whenever horizontal scrolling has to be figured out. |
protected void | onTextModified() This is called whenever there's a text modification. |
protected void | onUpKey() This is called from the MultiText class whenever the user hits
the up arrow key and the new cursor position has to be figured
out. |
protected void | render(Graphics g, int x, int y, boolean underline, boolean xo) This draws the Paragraph class given the arguments. |
protected void | setAllowScroll(boolean b) This sets the scrolling behavior of the Paragraph class. |
public void | setAutoWrap(boolean bWrap) This sets whether or not the Paragraph class will autowrap. |
public void | setBackground(Color c) This sets the background of the Paragraph. |
protected void | setCursorPos(int p) This sets the cursor position of the Paragraph. |
public void | setFont(Font f) This sets the font of the Paragraph. |
public void | setFontMetrics(FontMetrics fm) This sets the FontMetrics of the Paragraph. |
public void | setForeground(Color c) This sets the foreground color of the Paragraph. |
protected void | setHAlign(int align) This sets the horizontal alignment of the Paragraph. |
protected void | setHighlight(Color c) This sets the highlighting color. |
protected void | setHighlightedText(Color c) This sets the color of the highlighted text. |
public void | setInsets(Insets i) This sets the insets of the text control. |
protected void | setMarkVisible(boolean b) This sets whether or not the selection mark is visible. |
protected void | setPrevXOffset(int x) This sets the previous x offset. |
protected void | setSelectionEnd(int pos) This sets the selection end of the Paragraph. |
protected void | setSelectionStart(int pos) This sets the start of the Paragraph's selection. |
protected void | setSelectionState(int s) This sets the selection state of the Paragraph. |
public void | setTarget(IScrollable target) This sets the text control as the target. |
protected void | setText(String s) This sets the text of the Paragraph. |
public void | setWidth(int w) This sets the width of the Paragraph in pixels. |
protected void | setXOffset(int x) This sets the x offset of the Paragraph. |
public String | toString() This overrides Object's toString() to represent the Paragraph
in String format. |