org.apache.fop.area.inline
Class TextArea
- Serializable
A text inline 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 |
TextArea() - Create a text inline area
|
TextArea(int stretch, int shrink, int adj) - Constructor with extra parameters:
create a TextAdjustingInfo object
|
void | addSpace(char space, int offset, boolean adjustable) - Create and add a SpaceArea child to this TextArea
|
void | addWord(String word, int offset) - Create and add a WordArea child to this TextArea.
|
void | addWord(String word, int offset, int[] letterAdjust) - Create and add a WordArea child to this TextArea.
|
String | getText() - Get the whole text string.
|
void | removeText() - Remove the old text
|
addChildArea , applyVariationFactor , getAdjustingInfo , getOffset , getParentArea , handleIPDVariation , hasLineThrough , hasOverline , hasUnderline , increaseIPD , isBlinking , notifyIPDVariation , setAdjustingInfo , setAdjustment , setOffset , setParentArea |
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 |
TextArea
public TextArea()
Create a text inline area
TextArea
public TextArea(int stretch,
int shrink,
int adj)
Constructor with extra parameters:
create a TextAdjustingInfo object
stretch
- the available stretch of the textshrink
- the available shrink of the textadj
- the current total adjustment
addSpace
public void addSpace(char space,
int offset,
boolean adjustable)
Create and add a SpaceArea child to this TextArea
space
- the space characteroffset
- the offset for the next areaadjustable
- is this space adjustable?
addWord
public void addWord(String word,
int offset)
Create and add a WordArea child to this TextArea.
word
- the word stringoffset
- the offset for the next area
addWord
public void addWord(String word,
int offset,
int[] letterAdjust)
Create and add a WordArea child to this TextArea.
word
- the word stringoffset
- the offset for the next area
getText
public String getText()
Get the whole text string.
Renderers whose space adjustment handling is not affected
by multi-byte characters can use this method to render the
whole TextArea at once; the other renderers (for example
PDFRenderer) have to implement renderWord(WordArea) and
renderSpace(SpaceArea) in order to correctly place each
text fragment.
removeText
public void removeText()
Remove the old text
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.