public class Area extends AreaTreeObject implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
bidiLevel
Resolved bidirectional level for area.
|
protected int |
bpd
the area's block-progression-dimension
|
static int |
CLASS_ABSOLUTE
Absolute position class
|
static int |
CLASS_BEFORE_FLOAT
Before float class
|
static int |
CLASS_FIXED
Fixed position class
|
static int |
CLASS_FOOTNOTE
Footnote class
|
static int |
CLASS_MAX
Maximum class count
|
static int |
CLASS_NORMAL
Normal class
|
static int |
CLASS_SIDE_FLOAT
Side float class
|
protected int |
effectiveIPD |
protected int |
ipd
the area's inline-progression-dimension
|
protected static org.apache.commons.logging.Log |
log
logging instance
|
static int |
ORIENT_0
Normal orientation
|
static int |
ORIENT_180
Rotate 180 degrees
|
static int |
ORIENT_270
Rotated 270 degrees clockwise
|
static int |
ORIENT_90
Rotated 90 degrees clockwise
|
protected TreeMap<Integer,Object> |
traits
Traits for this area.
|
extensionAttachments, foreignAttributes
Constructor and Description |
---|
Area() |
Modifier and Type | Method and Description |
---|---|
void |
activateEffectiveIPD() |
void |
addChildArea(Area child)
Add a child to this area.
|
void |
addTrait(Integer traitCode,
Object prop)
Add a trait to this area.
|
Object |
clone() |
int |
getAllocBPD()
Get the allocation block progression dimension of this area.
|
int |
getAllocIPD()
Get the allocation inline progression dimension of this area.
|
int |
getAreaClass()
Get the area class of this area.
|
int |
getBidiLevel()
Get the bidirectional embedding level.
|
int |
getBorderAndPaddingWidthAfter()
Return the sum of region border- and padding-after
|
int |
getBorderAndPaddingWidthBefore()
Return the sum of region border- and padding-before
|
int |
getBorderAndPaddingWidthEnd()
Return the sum of region border- and padding-end
|
int |
getBorderAndPaddingWidthStart()
Return the sum of region border- and padding-start
|
int |
getBPD()
Get the block progression dimension of the content rectangle
for this area.
|
List<ChangeBar> |
getChangeBarList()
Returns the active change bar list.
|
int |
getEffectiveAllocIPD() |
int |
getEffectiveIPD() |
int |
getIPD()
Get the inline progression dimension of the content rectangle
for this area.
|
int |
getSpaceAfter()
Returns the space after
|
int |
getSpaceBefore()
Returns the space before
|
int |
getSpaceEnd()
Returns the space end
|
int |
getSpaceStart()
Returns the space start
|
Object |
getTrait(Integer traitCode)
Get a trait from this area.
|
boolean |
getTraitAsBoolean(Integer traitCode)
Get a boolean trait from this area.
|
int |
getTraitAsInteger(Integer traitCode)
Get a trait from this area as an integer.
|
Map<Integer,Object> |
getTraits()
Get the map of all traits on this area.
|
boolean |
hasTrait(Integer traitCode)
Checks whether a certain trait is set on this area.
|
boolean |
hasTraits() |
boolean |
isFromFootnote() |
void |
resetBidiLevel()
Reset the bidirectional embedding level to default
value (-1).
|
void |
setAreaClass(int areaClass)
Set the area class of this area.
|
void |
setBidiLevel(int bidiLevel)
Set the bidirectional embedding level.
|
void |
setBPD(int bpd)
Set the block progression dimension of the content rectangle
for this area.
|
void |
setChangeBarList(List<ChangeBar> changeBarList)
Sets the active change bar list.
|
void |
setFromFootnote(boolean fromFootnote) |
void |
setIPD(int ipd)
Set the inline progression dimension of content rectangle
for this area.
|
void |
setTraits(Map traits)
Set traits on this area, copying from an existing traits map.
|
void |
setWritingModeTraits(WritingModeTraitsGetter wmtg)
Sets the writing mode traits for this area.
|
String |
toString() |
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public static final int ORIENT_0
public static final int ORIENT_90
public static final int ORIENT_180
public static final int ORIENT_270
public static final int CLASS_NORMAL
public static final int CLASS_FIXED
public static final int CLASS_ABSOLUTE
public static final int CLASS_BEFORE_FLOAT
public static final int CLASS_FOOTNOTE
public static final int CLASS_SIDE_FLOAT
public static final int CLASS_MAX
protected int ipd
protected int bpd
protected int effectiveIPD
protected int bidiLevel
protected static final org.apache.commons.logging.Log log
public List<ChangeBar> getChangeBarList()
public void setChangeBarList(List<ChangeBar> changeBarList)
changeBarList
- The active change bar listpublic int getAreaClass()
public Object clone() throws CloneNotSupportedException
clone
in class AreaTreeObject
CloneNotSupportedException
public void setAreaClass(int areaClass)
areaClass
- the area classpublic void setIPD(int ipd)
ipd
- the new inline progression dimensionpublic int getIPD()
public void setBPD(int bpd)
bpd
- the new block progression dimensionpublic int getBPD()
public int getAllocIPD()
public int getEffectiveAllocIPD()
public int getAllocBPD()
public void setBidiLevel(int bidiLevel)
bidiLevel
- the bidirectional embedding levelpublic void resetBidiLevel()
public int getBidiLevel()
public int getBorderAndPaddingWidthBefore()
public int getBorderAndPaddingWidthAfter()
public int getBorderAndPaddingWidthStart()
public int getBorderAndPaddingWidthEnd()
public int getSpaceBefore()
public int getSpaceAfter()
public int getSpaceStart()
public int getSpaceEnd()
public void addChildArea(Area child)
child
- the child area to addpublic void addTrait(Integer traitCode, Object prop)
traitCode
- the trait keyprop
- the value of the traitpublic void setTraits(Map traits)
traits
- the map of traitspublic Map<Integer,Object> getTraits()
public boolean hasTraits()
public Object getTrait(Integer traitCode)
traitCode
- the trait keypublic boolean hasTrait(Integer traitCode)
traitCode
- the trait keypublic boolean getTraitAsBoolean(Integer traitCode)
traitCode
- the trait keypublic int getTraitAsInteger(Integer traitCode)
traitCode
- the trait keypublic void setWritingModeTraits(WritingModeTraitsGetter wmtg)
wmtg
- a WM traits getterpublic int getEffectiveIPD()
public void activateEffectiveIPD()
public boolean isFromFootnote()
public void setFromFootnote(boolean fromFootnote)
Copyright © 2025 Apache Software Foundation. All rights reserved.