org.apache.pivot.wtk.text
Class Span

java.lang.Object
  extended by org.apache.pivot.wtk.text.Node
      extended by org.apache.pivot.wtk.text.Element
          extended by org.apache.pivot.wtk.text.TextSpan
              extended by org.apache.pivot.wtk.text.Span
All Implemented Interfaces:
Iterable<Node>, Sequence<Node>

Deprecated. class has been renamed to TextSpan

@Deprecated
public class Span
extends TextSpan

Element representing an inline range of styled characters.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree<T>
 
Constructor Summary
Span()
          Deprecated.  
Span(Span span, boolean recursive)
          Deprecated.  
 
Method Summary
 Span duplicate(boolean recursive)
          Deprecated. Creates a copy of this node.
 Span getRange(int offset, int characterCount)
          Deprecated. Returns a range from the node.
 
Methods inherited from class org.apache.pivot.wtk.text.TextSpan
add, insert
 
Methods inherited from class org.apache.pivot.wtk.text.Element
add, dumpOffsets, get, getBackgroundColor, getCharacterAt, getCharacterCount, getDescendantAt, getElementListeners, getFont, getForegroundColor, getLength, getNodeAt, getPathAt, indexOf, insertRange, isStrikethrough, isUnderline, iterator, rangeInserted, rangeRemoved, remove, remove, removeRange, setBackgroundColor, setBackgroundColor, setFont, setFont, setForegroundColor, setForegroundColor, setStrikethrough, setUnderline, update
 
Methods inherited from class org.apache.pivot.wtk.text.Node
getDocumentOffset, getDocumentSpan, getNodeListeners, getOffset, getParent, nodeInserted, nodesRemoved, replaceRange, setOffset, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Span

public Span()
Deprecated. 

Span

public Span(Span span,
            boolean recursive)
Deprecated. 
Method Detail

duplicate

public Span duplicate(boolean recursive)
Deprecated. 
Description copied from class: Node
Creates a copy of this node.

Overrides:
duplicate in class TextSpan

getRange

public Span getRange(int offset,
                     int characterCount)
Deprecated. 
Description copied from class: Node
Returns a range from the node.

Overrides:
getRange in class TextSpan
Returns:
A node containing a copy of the node structure spanning the given range, relative to this node.