public class InlineArea extends Area
Modifier and Type | Class and Description |
---|---|
protected class |
InlineArea.InlineAdjustingInfo
this class stores information about potential adjustments
that can be used in order to re-compute adjustments when a
page-number or a page-number-citation is resolved
|
Modifier and Type | Field and Description |
---|---|
protected InlineArea.InlineAdjustingInfo |
adjustingInfo
The adjustment information object
|
protected int |
offset
offset position from before edge of parent area
|
bpd, BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, props, RL, TB
extensionAttachments, foreignAttributes
Constructor and Description |
---|
InlineArea() |
Modifier and Type | Method and Description |
---|---|
void |
addChildArea(Area childArea)
Set the parent for the child area.
|
boolean |
applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink)
recursively apply the variation factor to all descendant areas
|
InlineArea.InlineAdjustingInfo |
getAdjustingInfo() |
int |
getOffset()
Get the offset of this inline area.
|
Area |
getParentArea() |
void |
handleIPDVariation(int ipdVariation) |
boolean |
hasLineThrough() |
boolean |
hasOverline() |
boolean |
hasUnderline() |
void |
increaseIPD(int ipd)
Increase the inline progression dimensions of this area.
|
boolean |
isBlinking() |
protected void |
notifyIPDVariation(int ipdVariation)
notify the parent area about the ipd variation of this area
or of a descendant area
|
void |
setAdjustingInfo(int stretch,
int shrink,
int adjustment)
Create a new adjustment information object
|
void |
setAdjustment(int adjustment)
Modify the adjustment value in the adjustment information object
|
void |
setOffset(int offset)
Set the offset of this inline area.
|
void |
setParentArea(Area parentArea) |
addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
protected int offset
protected InlineArea.InlineAdjustingInfo adjustingInfo
public InlineArea.InlineAdjustingInfo getAdjustingInfo()
public void setAdjustingInfo(int stretch, int shrink, int adjustment)
stretch
- the available space for stretchingshrink
- the available space for shrinkingadjustment
- space adjustment typepublic void setAdjustment(int adjustment)
adjustment
- the new adjustment valuepublic void increaseIPD(int ipd)
ipd
- the inline progression to increase bypublic void setOffset(int offset)
offset
- the offsetpublic int getOffset()
public void setParentArea(Area parentArea)
parentArea
- The parentArea to set.public Area getParentArea()
public void addChildArea(Area childArea)
addChildArea
in class Area
childArea
- the child area to addpublic boolean hasUnderline()
public boolean hasOverline()
public boolean hasLineThrough()
public boolean isBlinking()
public boolean applyVariationFactor(double variationFactor, int lineStretch, int lineShrink)
variationFactor
- the variation factor that must be applied to adjustmentslineStretch
- the total stretch of the linelineShrink
- the total shrink of the linepublic void handleIPDVariation(int ipdVariation)
protected void notifyIPDVariation(int ipdVariation)
ipdVariation
- the difference between new and old ipdCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.