org.apache.pivot.wtk.skin
Class TextAreaSkinParagraphView
java.lang.Object
org.apache.pivot.wtk.skin.TextAreaSkinParagraphView
- All Implemented Interfaces:
- TextArea.ParagraphListener
class TextAreaSkinParagraphView
- extends Object
- implements TextArea.ParagraphListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextAreaSkinParagraphView
public TextAreaSkinParagraphView(TextAreaSkin textAreaSkin,
TextArea.Paragraph paragraph)
getParagraph
public TextArea.Paragraph getParagraph()
getX
public int getX()
setX
public void setX(int x)
getY
public int getY()
setY
public void setY(int y)
getRowOffset
public int getRowOffset()
setRowOffset
public void setRowOffset(int rowOffset)
getWidth
public int getWidth()
getHeight
public int getHeight()
getBreakWidth
public int getBreakWidth()
setBreakWidth
public void setBreakWidth(int breakWidth)
paint
public void paint(Graphics2D graphics)
invalidate
public void invalidate()
validate
public void validate()
getInsertionPoint
public int getInsertionPoint(int xArgument,
int yArgument)
getNextInsertionPoint
public int getNextInsertionPoint(int xArgument,
int from,
TextArea.ScrollDirection direction)
getRowAt
public int getRowAt(int index)
getRowOffset
public int getRowOffset(int index)
getRowLength
public int getRowLength(int index)
getRowCount
public int getRowCount()
getCharacterBounds
public Bounds getCharacterBounds(int index)
textInserted
public void textInserted(TextArea.Paragraph paragraphArgument,
int index,
int count)
- Description copied from interface:
TextArea.ParagraphListener
- Called when text has been inserted into a paragraph.
- Specified by:
textInserted
in interface TextArea.ParagraphListener
- Parameters:
paragraphArgument
- The source of the event.index
- The index at which the text was inserted.count
- The number of characters that were inserted.
textRemoved
public void textRemoved(TextArea.Paragraph paragraphArgument,
int index,
int count)
- Description copied from interface:
TextArea.ParagraphListener
- Called when characters have been removed from a paragraph.
- Specified by:
textRemoved
in interface TextArea.ParagraphListener
- Parameters:
paragraphArgument
- The source of the event.index
- The index from which the text was removed.count
- The number of characters that were removed.