Inline Area
This area is for all inline areas that can be placed
in a line area.
addChildArea
public void addChildArea(Area childArea)
Set the parent for the child area.
- addChildArea in interface Area
applyVariationFactor
public boolean applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink)
recursively apply the variation factor to all descendant areas
variationFactor
- the variation factor that must be applied to adjustmentslineStretch
- the total stretch of the linelineShrink
- the total shrink of the line
- true if there is an UnresolvedArea descendant
getOffset
public int getOffset()
Get the offset of this inline area.
This returns the offset of the inline area
which is relative to the before edge of the parent area.
getParentArea
public Area getParentArea()
handleIPDVariation
public void handleIPDVariation(int ipdVariation)
hasLineThrough
public boolean hasLineThrough()
- true if the inline area has a line through.
hasOverline
public boolean hasOverline()
- true if the inline area is overlined.
hasUnderline
public boolean hasUnderline()
- true if the inline area is underlined.
increaseIPD
public void increaseIPD(int ipd)
Increase the inline progression dimensions of this area.
This is used for inline parent areas that contain mulitple child areas.
ipd
- the inline progression to increase by
isBlinking
public boolean isBlinking()
- true if the inline area is blinking.
notifyIPDVariation
protected void notifyIPDVariation(int ipdVariation)
notify the parent area about the ipd variation of this area
or of a descendant area
ipdVariation
- the difference between new and old ipd
setAdjustingInfo
public void setAdjustingInfo(int stretch,
int shrink,
int adjustment)
Create a new adjustment information object
stretch
- the available space for stretchingshrink
- the available space for shrinking
setAdjustment
public void setAdjustment(int adjustment)
Modify the adjustment value in the adjustment information object
adjustment
- the new adjustment value
setOffset
public void setOffset(int offset)
Set the offset of this inline area.
This is used to set the offset of the inline area
which is relative to the before edge of the parent area.
setParentArea
public void setParentArea(Area parentArea)
parentArea
- The parentArea to set.