org.apache.pivot.wtk.skin
Class TextAreaSkin.TextNodeView
java.lang.Object
org.apache.pivot.wtk.skin.TextAreaSkin.NodeView
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.
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 |
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()
- 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,
FocusTraversalDirection 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