org.jfree.report.structure
public class Section extends Element
Constructor Summary | |
---|---|
Section()
Constructs a new band (initially empty). |
Method Summary | |
---|---|
void | addNode(Node element)
Adds a report element to the band.
|
void | addNode(int position, Node element)
Adds a report element to the band. |
void | addNodes(Collection elements)
Adds a collection of elements to the band.
|
void | addOperationAfter(FlowControlOperation op) |
void | addOperationBefore(FlowControlOperation op) |
Object | clone() |
Element | findFirstChild(String uri, String tagName) |
Element | getElementByName(String name)
Returns the first element in the list that is known by the given name.
|
Node | getNode(int index)
Returns the element stored add the given index.
|
Node[] | getNodeArray()
Returns an array of the elements in the band. |
int | getNodeCount()
Returns the number of elements in this band.
|
List | getNodes()
Returns all child-elements of this band as immutable list.
|
FlowControlOperation[] | getOperationAfter() |
FlowControlOperation[] | getOperationBefore() |
boolean | isRepeat() |
void | removeNode(Node e)
Removes an element from the band.
|
void | setOperationAfter(FlowControlOperation[] ops) |
void | setOperationBefore(FlowControlOperation[] before) |
void | setRepeat(boolean repeat) |
String | toString()
Returns a string representation of the band and all the elements it
contains, useful mainly for debugging purposes.
|
Parameters: element the element that should be added
Throws: NullPointerException if the given element is null IllegalArgumentException if the position is invalid, either negative or greater than the number of elements in this band or if the given element is a parent of this element.
Parameters: position the position where to insert the element element the element that should be added
Throws: NullPointerException if the given element is null IllegalArgumentException if the position is invalid, either negative or greater than the number of elements in this band or if the given element is a parent of this element.
Parameters: elements the element collection.
Throws: NullPointerException if one of the given elements is null IllegalArgumentException if one of the given element is a parent of this element.
Parameters: name the element name.
Returns: the first element with the specified name, or null
if
there is no such element.
Throws: NullPointerException if the given name is null.
Parameters: index the element position within this band
Returns: the element
Throws: IndexOutOfBoundsException if the index is invalid.
Returns: the elements.
Returns: the number of elements of this band.
Deprecated: use getElementArray()
instead.
Returns: an immutable list of all registered elements for this band.
Parameters: e the element to be removed.
Throws: NullPointerException if the given element is null.
Returns: a string representation of this band.