org.apache.pivot.wtk.skin
Class TextPaneSkinComponentNodeView
java.lang.Object
org.apache.pivot.wtk.skin.TextPaneSkinNodeView
org.apache.pivot.wtk.skin.TextPaneSkinComponentNodeView
- All Implemented Interfaces:
- ComponentNodeListener, NodeListener
class TextPaneSkinComponentNodeView
- extends TextPaneSkinNodeView
- implements ComponentNodeListener
Methods inherited from class org.apache.pivot.wtk.skin.TextPaneSkinNodeView |
getBounds, getCharacterCount, getDocumentOffset, getHeight, getLocation, getNode, getOffset, getParent, getSize, getTextPaneSkin, getWidth, getX, getY, invalidateDownTree, invalidateUpTree, isValid, layout, nodeInserted, nodesRemoved, offsetChanged, parentChanged, rangeInserted, rangeRemoved, repaint, repaint, setLocation, setParent, setSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPaneSkinComponentNodeView
public TextPaneSkinComponentNodeView(ComponentNode componentNode)
attach
protected void attach()
- Overrides:
attach
in class TextPaneSkinNodeView
detach
protected void detach()
- Overrides:
detach
in class TextPaneSkinNodeView
childLayout
protected void childLayout(int breakWidth)
- Specified by:
childLayout
in class TextPaneSkinNodeView
getPreferredSize
public Dimensions getPreferredSize(int breakWidth)
- Specified by:
getPreferredSize
in class TextPaneSkinNodeView
getBaseline
public int getBaseline()
- Specified by:
getBaseline
in class TextPaneSkinNodeView
setSkinLocation
protected void setSkinLocation(int skinX,
int skinY)
- Description copied from class:
TextPaneSkinNodeView
- Set location of the NodeView relative to the skin component.
This is needed by the ComponentViewNode to correctly position child Component's.
- Specified by:
setSkinLocation
in class TextPaneSkinNodeView
- Parameters:
skinX
- the X coordinate in the skin's frame of referenceskinY
- the Y coordinate in the skin's frame of reference
paint
public void paint(Graphics2D graphics)
- Specified by:
paint
in class TextPaneSkinNodeView
getInsertionPoint
public int getInsertionPoint(int x,
int y)
- Specified by:
getInsertionPoint
in class TextPaneSkinNodeView
getNextInsertionPoint
public int getNextInsertionPoint(int x,
int from,
TextPane.ScrollDirection direction)
- Specified by:
getNextInsertionPoint
in class TextPaneSkinNodeView
getRowAt
public int getRowAt(int offset)
- Specified by:
getRowAt
in class TextPaneSkinNodeView
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in class TextPaneSkinNodeView
getCharacterBounds
public Bounds getCharacterBounds(int offset)
- Specified by:
getCharacterBounds
in class TextPaneSkinNodeView
componentChanged
public void componentChanged(ComponentNode componentNode,
Component previousComponent)
- Specified by:
componentChanged
in interface ComponentNodeListener