org.apache.pivot.wtk.skin
Class TextPaneSkinSpanView

java.lang.Object
  extended by org.apache.pivot.wtk.skin.TextPaneSkinNodeView
      extended by org.apache.pivot.wtk.skin.TextPaneSkinElementView
          extended by org.apache.pivot.wtk.skin.TextPaneSkinSpanView
All Implemented Interfaces:
Iterable<TextPaneSkinNodeView>, Sequence<TextPaneSkinNodeView>, ElementListener, NodeListener

 class TextPaneSkinSpanView
extends TextPaneSkinElementView

Span node view.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree<T>
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.text.ElementListener
ElementListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.text.NodeListener
NodeListener.Adapter
 
Constructor Summary
TextPaneSkinSpanView(TextSpan span)
           
 
Method Summary
protected  void attach()
           
protected  void childLayout(int breakWidth)
           
 int getCharacterCount()
           
 int getInsertionPoint(int x, int y)
           
 TextPaneSkinTextNodeView getNext()
          Used by TextPaneSkinParagraphView when it breaks child nodes into multiple views.
 int getNextInsertionPoint(int x, int from, TextPane.ScrollDirection direction)
           
 Dimensions getPreferredSize(int breakWidth)
           
 int getRowAt(int offset)
           
 int getRowCount()
           
protected  void setSkinLocation(int skinX, int skinY)
          Set location of the NodeView relative to the skin component.
 
Methods inherited from class org.apache.pivot.wtk.skin.TextPaneSkinElementView
add, backgroundColorChanged, detach, fontChanged, foregroundColorChanged, get, getBaseline, getCharacterBounds, getLength, indexOf, insert, invalidateDownTree, iterator, nodeInserted, nodesRemoved, paint, paintChild, remove, remove, strikethroughChanged, underlineChanged, update
 
Methods inherited from class org.apache.pivot.wtk.skin.TextPaneSkinNodeView
getBounds, getDocumentOffset, getHeight, getLocation, getNode, getOffset, getParent, getSize, getTextPaneSkin, getWidth, getX, getY, 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
 

Constructor Detail

TextPaneSkinSpanView

public TextPaneSkinSpanView(TextSpan span)
Method Detail

attach

protected void attach()
Overrides:
attach in class TextPaneSkinElementView

childLayout

protected void childLayout(int breakWidth)
Specified by:
childLayout in class TextPaneSkinNodeView

getPreferredSize

public Dimensions getPreferredSize(int breakWidth)
Specified by:
getPreferredSize in class TextPaneSkinNodeView

getCharacterCount

public int getCharacterCount()
Overrides:
getCharacterCount in class TextPaneSkinNodeView

getNext

public TextPaneSkinTextNodeView getNext()
Used by TextPaneSkinParagraphView when it breaks child nodes into multiple views.


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

getRowCount

public int getRowCount()
Specified by:
getRowCount in class TextPaneSkinNodeView

getRowAt

public int getRowAt(int offset)
Specified by:
getRowAt 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.

Overrides:
setSkinLocation in class TextPaneSkinElementView
Parameters:
skinX - the X coordinate in the skin's frame of reference
skinY - the Y coordinate in the skin's frame of reference