org.apache.pivot.wtk.text
Class Span
java.lang.Object
org.apache.pivot.wtk.text.Node
org.apache.pivot.wtk.text.Element
org.apache.pivot.wtk.text.TextSpan
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.
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.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Span
public Span()
- Deprecated.
Span
public Span(Span span,
boolean recursive)
- Deprecated.
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.