public class BlockParent extends Area
Modifier and Type | Field and Description |
---|---|
protected List<Area> |
children
The children of this block parent area.
|
protected int |
xOffset
The x offset position of this block parent.
|
protected int |
yOffset
The y offset position of this block parent.
|
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
Constructor and Description |
---|
BlockParent() |
Modifier and Type | Method and Description |
---|---|
void |
activateEffectiveIPD() |
void |
addBlock(Block block)
Add the block area to this block parent.
|
void |
addChildArea(Area childArea)
Add a child to this area.
|
List |
getChildAreas()
Get the list of child areas for this block area.
|
int |
getEffectiveIPD() |
int |
getXOffset()
Get the X offset of this block parent area.
|
int |
getYOffset()
Get the Y offset of this block parent area.
|
boolean |
isEmpty()
Check whether there are child areas.
|
void |
setXOffset(int off)
Set the X offset of this block parent area.
|
void |
setYOffset(int off)
Set the Y offset of this block parent 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, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
protected int xOffset
protected int yOffset
public void addChildArea(Area childArea)
addChildArea
in class Area
childArea
- the child area to addpublic void addBlock(Block block)
block
- the child block area to addpublic List getChildAreas()
public boolean isEmpty()
public void setXOffset(int off)
off
- the x offset of the block parent areapublic void setYOffset(int off)
off
- the y offset of the block parent areapublic int getXOffset()
public int getYOffset()
public int getEffectiveIPD()
getEffectiveIPD
in class Area
public void activateEffectiveIPD()
activateEffectiveIPD
in class Area
Copyright © 2025 Apache Software Foundation. All rights reserved.