BlockViewport
, SideFloat
public class Block extends BlockParent
Modifier and Type | Field | Description |
---|---|---|
static int |
ABSOLUTE |
Relative to the block parent but not effecting the stacking
Used for block-container, tables and lists.
|
protected boolean |
allowBPDUpdate |
if true, allow BPD update
|
static int |
FIXED |
Relative to a viewport/page but not effecting the stacking
Used for block-container.
|
static int |
RELATIVE |
Placed relative to the flow position.
|
static int |
STACK |
Normally stacked with other blocks.
|
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, traits
extensionAttachments, foreignAttributes
children, xOffset, yOffset
Constructor | Description |
---|---|
Block() |
Modifier and Type | Method | Description |
---|---|---|
void |
activateEffectiveIPD() |
|
void |
addBlock(Block block) |
Add the block to this block area.
|
void |
addBlock(Block block,
boolean autoHeight) |
Add the block to this block area.
|
void |
addLineArea(LineArea line) |
Add the line area to this block area.
|
int |
getEffectiveIPD() |
|
int |
getEndIndent() |
|
java.util.Locale |
getLocale() |
Returns the language information for the FO that generated this area.
|
java.lang.String |
getLocation() |
Returns the location in the source XML of the FO that generated this area.
|
int |
getPositioning() |
Get the positioning of this area.
|
int |
getStartIndent() |
|
boolean |
isStacked() |
Indicates whether this block is stacked, rather than absolutely positioned.
|
void |
setLocale(java.util.Locale locale) |
Sets the language information coming from the FO that generated this area.
|
void |
setLocation(java.lang.String location) |
Sets the location in the source XML of the FO that generated this area.
|
void |
setPositioning(int pos) |
Set the positioning of this area.
|
addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getEffectiveAllocIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setIPD, setTraits, setWritingModeTraits, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
addChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffset
public static final int STACK
public static final int RELATIVE
public static final int ABSOLUTE
public static final int FIXED
protected transient boolean allowBPDUpdate
public void addBlock(Block block)
addBlock
in class BlockParent
block
- the block area to addpublic void addBlock(Block block, boolean autoHeight)
block
- the block area to addautoHeight
- increase the height of the block.public void addLineArea(LineArea line)
line
- the line area to addpublic void setPositioning(int pos)
pos
- the positioning to use when rendering this areapublic int getPositioning()
public boolean isStacked()
public int getStartIndent()
public int getEndIndent()
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
public void setLocation(java.lang.String location)
public java.lang.String getLocation()
null
if that information is not availablepublic int getEffectiveIPD()
getEffectiveIPD
in class BlockParent
public void activateEffectiveIPD()
activateEffectiveIPD
in class BlockParent
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.