Package org.apache.fop.area
Class Block
java.lang.Object
org.apache.fop.area.AreaTreeObject
org.apache.fop.area.Area
org.apache.fop.area.BlockParent
org.apache.fop.area.Block
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
BlockViewport,SideFloat
This is the block area class.
It holds child block areas such as other blocks or lines.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRelative to the block parent but not effecting the stacking Used for block-container, tables and lists.protected booleanif true, allow BPD updatestatic final intRelative to a viewport/page but not effecting the stacking Used for block-container.static final intPlaced relative to the flow position.static final intNormally stacked with other blocks.Fields inherited from class org.apache.fop.area.BlockParent
children, xOffset, yOffsetFields inherited from class org.apache.fop.area.Area
bidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, effectiveIPD, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traitsFields inherited from class org.apache.fop.area.AreaTreeObject
extensionAttachments, foreignAttributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidAdd the block to this block area.voidAdd the block to this block area.voidaddLineArea(LineArea line) Add the line area to this block area.intintReturns the language information for the FO that generated this area.Returns the location in the source XML of the FO that generated this area.intGet the positioning of this area.intbooleanIndicates whether this block is stacked, rather than absolutely positioned.voidSets the language information coming from the FO that generated this area.voidsetLocation(String location) Sets the location in the source XML of the FO that generated this area.voidsetPositioning(int pos) Set the positioning of this area.Methods inherited from class org.apache.fop.area.BlockParent
addChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffsetMethods inherited from class org.apache.fop.area.Area
addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getChangeBarList, getEffectiveAllocIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, isFromFootnote, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setFromFootnote, setIPD, setTraits, setWritingModeTraits, toStringMethods inherited from class org.apache.fop.area.AreaTreeObject
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
-
Field Details
-
STACK
public static final int STACKNormally stacked with other blocks.- See Also:
-
RELATIVE
public static final int RELATIVEPlaced relative to the flow position. This effects the flow placement of stacking normally.- See Also:
-
ABSOLUTE
public static final int ABSOLUTERelative to the block parent but not effecting the stacking Used for block-container, tables and lists.- See Also:
-
FIXED
public static final int FIXEDRelative to a viewport/page but not effecting the stacking Used for block-container.- See Also:
-
allowBPDUpdate
protected transient boolean allowBPDUpdateif true, allow BPD update
-
-
Constructor Details
-
Block
public Block()
-
-
Method Details
-
addBlock
Add the block to this block area.- Overrides:
addBlockin classBlockParent- Parameters:
block- the block area to add
-
addBlock
Add the block to this block area.- Parameters:
block- the block area to addautoHeight- increase the height of the block.
-
addLineArea
Add the line area to this block area.- Parameters:
line- the line area to add
-
setPositioning
public void setPositioning(int pos) Set the positioning of this area.- Parameters:
pos- the positioning to use when rendering this area
-
getPositioning
public int getPositioning()Get the positioning of this area.- Returns:
- the positioning to use when rendering this area
-
isStacked
public boolean isStacked()Indicates whether this block is stacked, rather than absolutely positioned.- Returns:
- true if it is stacked
-
getStartIndent
public int getStartIndent()- Returns:
- the start-indent trait
-
getEndIndent
public int getEndIndent()- Returns:
- the end-indent trait
-
setLocale
Sets the language information coming from the FO that generated this area. -
getLocale
Returns the language information for the FO that generated this area. -
setLocation
Sets the location in the source XML of the FO that generated this area.- Parameters:
location- the line and column location
-
getLocation
Returns the location in the source XML of the FO that generated this area.- Returns:
- the line and column location,
nullif that information is not available
-
getEffectiveIPD
public int getEffectiveIPD()- Overrides:
getEffectiveIPDin classBlockParent
-
activateEffectiveIPD
public void activateEffectiveIPD()- Overrides:
activateEffectiveIPDin classBlockParent
-