org.apache.pivot.wtk.skin
Class TextAreaSkin.TextNodeView

java.lang.Object
  extended by org.apache.pivot.wtk.skin.TextAreaSkin.NodeView
      extended by org.apache.pivot.wtk.skin.TextAreaSkin.TextNodeView
All Implemented Interfaces:
NodeListener, TextNodeListener, Visual
Enclosing class:
TextAreaSkin

public class TextAreaSkin.TextNodeView
extends TextAreaSkin.NodeView
implements TextNodeListener

Text node view.


Constructor Summary
TextAreaSkin.TextNodeView(TextNode textNode)
           
TextAreaSkin.TextNodeView(TextNode textNode, int start)
           
 
Method Summary
protected  void attach()
           
 void charactersInserted(TextNode textNode, int index, int count)
          Called when characters have been inserted into a text node.
 void charactersRemoved(TextNode textNode, int index, String characters)
          Called when characters have been removed from a text node.
protected  void detach()
           
 Bounds getCharacterBounds(int offset)
           
 int getCharacterCount()
           
 int getInsertionPoint(int x, int y)
           
 TextAreaSkin.NodeView getNext()
           
 int getNextInsertionPoint(int x, int from, Direction direction)
           
 int getOffset()
           
 int getRowCount()
           
 int getRowIndex(int offset)
           
 void invalidate()
           
 void paint(Graphics2D graphics)
          Paints the visual.
 String toString()
           
 void validate()
           
 
Methods inherited from class org.apache.pivot.wtk.skin.TextAreaSkin.NodeView
getBaseline, getBounds, getBreakWidth, getDocumentOffset, getHeight, getLocation, getNode, getParent, 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, wait, wait, wait
 

Constructor Detail

TextAreaSkin.TextNodeView

public TextAreaSkin.TextNodeView(TextNode textNode)

TextAreaSkin.TextNodeView

public TextAreaSkin.TextNodeView(TextNode textNode,
                                 int start)
Method Detail

attach

protected void attach()
Overrides:
attach in class TextAreaSkin.NodeView

detach

protected void detach()
Overrides:
detach in class TextAreaSkin.NodeView

invalidate

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

validate

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

paint

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

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

getOffset

public int getOffset()
Overrides:
getOffset in class TextAreaSkin.NodeView

getCharacterCount

public int getCharacterCount()
Overrides:
getCharacterCount in class TextAreaSkin.NodeView

getNext

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

getInsertionPoint

public int getInsertionPoint(int x,
                             int y)
Specified by:
getInsertionPoint in class TextAreaSkin.NodeView

getNextInsertionPoint

public int getNextInsertionPoint(int x,
                                 int from,
                                 Direction direction)
Specified by:
getNextInsertionPoint in class TextAreaSkin.NodeView

getRowIndex

public int getRowIndex(int offset)
Specified by:
getRowIndex in class TextAreaSkin.NodeView

getRowCount

public int getRowCount()
Specified by:
getRowCount in class TextAreaSkin.NodeView

getCharacterBounds

public Bounds getCharacterBounds(int offset)
Specified by:
getCharacterBounds in class TextAreaSkin.NodeView

charactersInserted

public void charactersInserted(TextNode textNode,
                               int index,
                               int count)
Description copied from interface: TextNodeListener
Called when characters have been inserted into a text node.

Specified by:
charactersInserted in interface TextNodeListener

charactersRemoved

public void charactersRemoved(TextNode textNode,
                              int index,
                              String characters)
Description copied from interface: TextNodeListener
Called when characters have been removed from a text node.

Specified by:
charactersRemoved in interface TextNodeListener

toString

public String toString()
Overrides:
toString in class Object