pivot.wtk.skin
Class TextAreaSkin.ParagraphView

java.lang.Object
  extended by pivot.wtk.skin.TextAreaSkin.NodeView
      extended by pivot.wtk.skin.TextAreaSkin.ElementView
          extended by pivot.wtk.skin.TextAreaSkin.ParagraphView
All Implemented Interfaces:
java.lang.Iterable<TextAreaSkin.NodeView>, Sequence<TextAreaSkin.NodeView>, ElementListener, NodeListener, Visual
Enclosing class:
TextAreaSkin

public class TextAreaSkin.ParagraphView
extends TextAreaSkin.ElementView


Nested Class Summary
 
Nested classes/interfaces inherited from interface pivot.collections.Sequence
Sequence.Search, Sequence.Sort, Sequence.Tree
 
Constructor Summary
TextAreaSkin.ParagraphView(Paragraph paragraph)
           
 
Method Summary
 int getCharacterAt(int x, int y)
           
 Bounds getCharacterBounds(int offset)
           
 TextAreaSkin.NodeView getNext()
           
 void invalidate()
           
 void paint(java.awt.Graphics2D graphics)
          Paints the visual.
 void validate()
           
 
Methods inherited from class pivot.wtk.skin.TextAreaSkin.ElementView
add, attach, detach, get, getLength, getOffset, indexOf, insert, iterator, nodeInserted, nodesRemoved, remove, remove, update
 
Methods inherited from class pivot.wtk.skin.TextAreaSkin.NodeView
getBounds, getBounds, getBreakWidth, getHeight, getHeight, getLocation, getNode, getParent, getSize, getSize, getWidth, getX, getY, isValid, offsetChanged, parentChanged, rangeInserted, rangeRemoved, repaint, repaint, setBreakWidth, setLocation, setParent, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaSkin.ParagraphView

public TextAreaSkin.ParagraphView(Paragraph paragraph)
Method Detail

invalidate

public void invalidate()
Overrides:
invalidate in class TextAreaSkin.NodeView

validate

public void validate()
Overrides:
validate in class TextAreaSkin.NodeView

paint

public void paint(java.awt.Graphics2D graphics)
Description copied from interface: Visual
Paints the visual.

Specified by:
paint in interface Visual
Overrides:
paint in class TextAreaSkin.ElementView
Parameters:
graphics - The graphics context in which to paint the visual.

getNext

public TextAreaSkin.NodeView getNext()
Specified by:
getNext in class TextAreaSkin.NodeView

getCharacterAt

public int getCharacterAt(int x,
                          int y)
Overrides:
getCharacterAt in class TextAreaSkin.ElementView

getCharacterBounds

public Bounds getCharacterBounds(int offset)
Overrides:
getCharacterBounds in class TextAreaSkin.ElementView