org.apache.pivot.wtk.skin
Class TextAreaSkinParagraphView

java.lang.Object
  extended by org.apache.pivot.wtk.skin.TextAreaSkinParagraphView
All Implemented Interfaces:
TextArea.ParagraphListener

 class TextAreaSkinParagraphView
extends Object
implements TextArea.ParagraphListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextArea.ParagraphListener
TextArea.ParagraphListener.Adapter
 
Constructor Summary
TextAreaSkinParagraphView(TextAreaSkin textAreaSkin, TextArea.Paragraph paragraph)
           
 
Method Summary
 int getBreakWidth()
           
 Bounds getCharacterBounds(int index)
           
 int getHeight()
           
 int getInsertionPoint(int xArgument, int yArgument)
           
 int getNextInsertionPoint(int xArgument, int from, TextArea.ScrollDirection direction)
           
 TextArea.Paragraph getParagraph()
           
 int getRowAt(int index)
           
 int getRowCount()
           
 int getRowLength(int index)
           
 int getRowOffset()
           
 int getRowOffset(int index)
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 void invalidate()
           
 void paint(Graphics2D graphics)
           
 void setBreakWidth(int breakWidth)
           
 void setRowOffset(int rowOffset)
           
 void setX(int x)
           
 void setY(int y)
           
 void textInserted(TextArea.Paragraph paragraphArgument, int index, int count)
          Called when text has been inserted into a paragraph.
 void textRemoved(TextArea.Paragraph paragraphArgument, int index, int count)
          Called when characters have been removed from a paragraph.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaSkinParagraphView

public TextAreaSkinParagraphView(TextAreaSkin textAreaSkin,
                                 TextArea.Paragraph paragraph)
Method Detail

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.