org.apache.pivot.wtk.text
Class Block

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.Block
All Implemented Interfaces:
Iterable<Node>, Sequence<Node>
Direct Known Subclasses:
Document, List, Paragraph

public abstract class Block
extends Element

Abstract base class for block elements.

TODO Add margin, and line spacing properties.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree<T>
 
Constructor Summary
Block()
           
Block(Block blockElement, boolean recursive)
           
 
Method Summary
 ListenerList<BlockListener> getBlockListeners()
           
 HorizontalAlignment getHorizontalAlignment()
           
 void setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
           
 
Methods inherited from class org.apache.pivot.wtk.text.Element
add, dumpOffsets, duplicate, get, getBackgroundColor, getCharacterAt, getCharacterCount, getDescendantAt, getElementListeners, getFont, getForegroundColor, getLength, getNodeAt, getPathAt, getRange, indexOf, insert, 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

Block

public Block()

Block

public Block(Block blockElement,
             boolean recursive)
Method Detail

getHorizontalAlignment

public HorizontalAlignment getHorizontalAlignment()

setHorizontalAlignment

public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment)

getBlockListeners

public ListenerList<BlockListener> getBlockListeners()