pivot.wtk.skin
Class TextAreaSkin.TextNodeView
java.lang.Object
pivot.wtk.skin.TextAreaSkin.NodeView
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.
- Author:
- gbrown
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 |
TextAreaSkin.TextNodeView
public TextAreaSkin.TextNodeView(TextNode textNode)
TextAreaSkin.TextNodeView
public TextAreaSkin.TextNodeView(TextNode textNode,
int start)
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