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()
           
 int getCharacterAt(int x, int y)
           
 Bounds getCharacterBounds(int offset)
           
 TextAreaSkin.NodeView getNext()
           
 int getOffset()
           
 void invalidate()
           
 void paint(Graphics2D graphics)
          Paints the visual.
 String toString()
           
 void validate()
           
 
Methods inherited from class org.apache.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, 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()
Specified by:
getOffset in class TextAreaSkin.NodeView

getNext

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

getCharacterAt

public int getCharacterAt(int x,
                          int y)
Specified by:
getCharacterAt 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