org.apache.fop.area.inline
public class TextArea extends AbstractTextArea
AbstractTextArea.TextAdjustingInfoInlineArea.InlineAdjustingInfoautoSize, inlinesadjustingInfo, offsetbpd, 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, TBforeignAttributes| Constructor and Description |
|---|
TextArea()
Create a text inline area
|
TextArea(int stretch,
int shrink,
int adj)
Constructor with extra parameters:
create a TextAdjustingInfo object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSpace(char space,
int offset,
boolean adjustable)
Create and add a SpaceArea child to this TextArea
|
void |
addWord(java.lang.String word,
int offset)
Create and add a WordArea child to this TextArea.
|
void |
addWord(java.lang.String word,
int offset,
int[] letterAdjust)
Create and add a WordArea child to this TextArea.
|
java.lang.String |
getText()
Get the whole text string.
|
void |
removeText()
Remove the old text
|
applyVariationFactor, getBaselineOffset, getTextLetterSpaceAdjust, getTextWordSpaceAdjust, setBaselineOffset, setSpaceDifference, setTextLetterSpaceAdjust, setTextWordSpaceAdjustaddChildArea, getChildAreasgetAdjustingInfo, getOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustment, setOffset, setParentAreaaddTrait, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBooleanTrait, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toStringgetForeignAttributes, getForeignAttributeValue, setForeignAttribute, setForeignAttributespublic TextArea()
public TextArea(int stretch,
int shrink,
int adj)
stretch - the available stretch of the textshrink - the available shrink of the textadj - the current total adjustmentpublic void removeText()
public void addWord(java.lang.String word,
int offset)
word - the word stringoffset - the offset for the next areapublic void addWord(java.lang.String word,
int offset,
int[] letterAdjust)
word - the word stringoffset - the offset for the next areapublic void addSpace(char space,
int offset,
boolean adjustable)
space - the space characteroffset - the offset for the next areaadjustable - is this space adjustable?public java.lang.String getText()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.