public class BlockContainer extends FlowObjectWithElements implements BlockElement
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
BlockContainer() |
Modifier and Type | Method and Description |
---|---|
BlockContainer |
add(BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO.
|
BlockContainer |
add(int idx,
BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO.
|
AbsolutePosition |
getAbsolutePosition()
Gets the absolute position of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
Border |
getBorder()
Gets the border of this fo.
|
Values.Break |
getBreakAfter()
Gets the break after this formatting object.
|
Values.Break |
getBreakBefore()
Gets the break before this formatting object.
|
Values.DisplayAlignment |
getDisplayAlign()
Gets the display-alignment.
|
Measure |
getHeight() |
Padding |
getPadding()
Gets the padding of this fo.
|
Measure |
getWidth() |
Values.WritingMode |
getWritingMode()
Gets the writing mode of this formatting object.
|
int |
getZIndex() |
boolean |
hasBorder()
Returns true if at least one border attribute is set.
|
void |
setAbsolutePosition(AbsolutePosition pos)
Sets the absolute position of this fo.
|
void |
setAbsolutePosition(Measure left,
Measure top)
Sets the absolute position for this block container.
|
void |
setAbsolutePosition(Measure left,
Measure top,
AbsolutePosition.PositionType type)
Sets the absolute position for this block container.
|
void |
setBackground(Background bg)
Sets the background of this fo.
|
void |
setBorder(Border border)
Sets the border of this fo.
|
void |
setBreakAfter(Values.Break type)
Sets the break before this formatting object.
|
void |
setBreakBefore(Values.Break type)
Sets the break before this formatting object.
|
void |
setDisplayAlign(Values.DisplayAlignment align)
Sets the display-alignment.
|
void |
setHeight(Measure height) |
void |
setPadding(Padding padding)
Sets the padding of this fo.
|
void |
setSize(Measure width,
Measure height)
Sets the size of this block container.
|
void |
setWidth(Measure height) |
void |
setWritingMode(Values.WritingMode mode)
Sets the writing mode for this formatting object.
|
void |
setZIndex(int index) |
add, add, add, add, addAllImpl, addAllUnsafe, addAllUnsafe, addElement, addElement, addElements, addElements, addUnsafe, addUnsafe, clone, firstElement, getElements, isEmpty, lastElement, remove, remove, removeAll, removeElement, removeElement, removeLast, replaceElement, setElement
cloned, clonedList, createUniqueID, doGetAttribute, doSetAttribute, elementCount, get, getAccessibility, getAttributeMap, getDefinedAttributes, getDocument, getFont, getID, getLanguage, getLogger, getMargin, getMeasureValue, getObjectValue, getObjectValue, getObjectValue, getObjectValue, getOrphans, getParentFO, getRelativePosition, getWidows, hasID, hasPadding, isHyphenation, setAccessibility, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setFont, setHyphenation, setID, setLanguage, setLanguage, setMargin, setOrphans, setRelativePosition, setWidows
getDefaultMapType, setDefaultMapType
addAttributeChangeListener, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, getAttrAsBoolean, getAttrAsInteger, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getContentText, getDefinedAttributes, getElements, getElements, getElements, getFirstElement, getIndex, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getParent, getParent, getParent, getParentOrThis, getQName, getRoot, hasEqualAttrs, indexOf, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeChangeListener, addElement, addElement, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, fireSaxEvents, firstElement, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getDefinedAttributes, getElements, getElements, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getQName, getRoot, indexOf, isEmpty, lastElement, removeAttributeChangeListener, removeElement, removeElement, replaceElement, setAttribute, setAttributes, setElement, setNamespace
clone, getParent, setParent, writeTo
public BlockContainer add(BlockElement element)
element
- FormattingObject.public BlockContainer add(int idx, BlockElement element)
idx
- Index.element
- FormattingObject.public Padding getPadding()
getPadding
in class FormattingObject
public void setPadding(Padding padding)
setPadding
in class FormattingObject
padding
- Padding.public boolean hasBorder()
hasBorder
in class FormattingObject
public Border getBorder()
getBorder
in class FormattingObject
public void setBorder(Border border)
setBorder
in class FormattingObject
border
- Border.public Background getBackground()
getBackground
in class FormattingObject
public void setBackground(Background bg)
setBackground
in class FormattingObject
bg
- Background.public AbsolutePosition getAbsolutePosition()
getAbsolutePosition
in class FormattingObject
public void setAbsolutePosition(AbsolutePosition pos)
setAbsolutePosition
in class FormattingObject
pos
- AbsolutePosition.public void setAbsolutePosition(Measure left, Measure top)
left
- Left position (Attribute left).top
- Top position (Attribute top).public void setAbsolutePosition(Measure left, Measure top, AbsolutePosition.PositionType type)
left
- Left position (Attribute left).top
- Top position (Attribute top).type
- Type of absolute position.public void setSize(Measure width, Measure height)
width
- Width of block container.height
- Height of block container.public void setDisplayAlign(Values.DisplayAlignment align)
align
- Alignment.public Values.DisplayAlignment getDisplayAlign()
public int getZIndex()
public void setZIndex(int index)
public void setBreakBefore(Values.Break type)
type
- Type of break. (see Values.BREAK_*)public Values.Break getBreakBefore()
public void setBreakAfter(Values.Break type)
type
- Type of break. (see Values.BREAK_*)public Values.Break getBreakAfter()
public Values.WritingMode getWritingMode()
public void setWritingMode(Values.WritingMode mode)
mode
- Writing mode.public void setHeight(Measure height)
public Measure getHeight()
public void setWidth(Measure height)
public Measure getWidth()
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.