org.apache.fop.area.inline

Class WordArea

Implemented Interfaces:
Serializable

public class WordArea
extends InlineArea

A string of characters without spaces

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.fop.area.inline.InlineArea

InlineArea.InlineAdjustingInfo

Field Summary

protected int[]
letterAdjust
An array of width for adjusting the individual letters (optional)
protected int
offset
The correction offset for the next area
protected String
word
The text for this word area

Fields inherited from class org.apache.fop.area.inline.InlineArea

adjustingInfo, offset

Fields inherited from class org.apache.fop.area.Area

BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, RL, TB, bpd, ipd, log, props

Fields inherited from class org.apache.fop.area.AreaTreeObject

foreignAttributes

Constructor Summary

WordArea(String w, int o, int[] la)
Create a word area

Method Summary

int[]
getLetterAdjustArray()
int
getOffset()
String
getWord()
void
setOffset(int o)

Methods inherited from class org.apache.fop.area.inline.InlineArea

addChildArea, applyVariationFactor, getAdjustingInfo, getOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustment, setOffset, setParentArea

Methods inherited from class org.apache.fop.area.Area

addChildArea, addTrait, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBPD, getBooleanTrait, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString

Methods inherited from class org.apache.fop.area.AreaTreeObject

getForeignAttributeValue, getForeignAttributes, setForeignAttribute, setForeignAttributes

Field Details

letterAdjust

protected int[] letterAdjust
An array of width for adjusting the individual letters (optional)

offset

protected int offset
The correction offset for the next area

word

protected String word
The text for this word area

Constructor Details

WordArea

public WordArea(String w,
                int o,
                int[] la)
Create a word area
Parameters:
w - the word string
o - the offset for the next area
la - the letter adjust array (may be null)

Method Details

getLetterAdjustArray

public int[] getLetterAdjustArray()
Returns:
the array of letter adjust widths

getOffset

public int getOffset()
Overrides:
getOffset in interface InlineArea
Returns:
Returns the offset.

getWord

public String getWord()
Returns:
Returns the word.

setOffset

public void setOffset(int o)
Overrides:
setOffset in interface InlineArea
Parameters:
o - The offset to set.

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.