public class TextArea extends AbstractTextArea
AbstractTextArea.TextAdjustingInfo
InlineArea.InlineAdjustingInfo
autoSize, inlines, minChildOffset
adjustingInfo, blockProgressionOffset
bidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traits
extensionAttachments, foreignAttributes
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 ipd,
boolean adjustable,
int blockProgressionOffset,
int level)
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 level)
Create and add a WordArea child to this TextArea.
|
void |
addWord(java.lang.String word,
int ipd,
int[] letterAdjust,
int[] levels,
int[][] gposAdjustments,
int blockProgressionOffset)
Create and add a WordArea child to this TextArea.
|
java.lang.String |
getText()
Get the whole text string.
|
void |
removeText()
Remove the old text
|
java.lang.String |
toString() |
applyVariationFactor, getBaselineOffset, getTextLetterSpaceAdjust, getTextWordSpaceAdjust, setBaselineOffset, setSpaceDifference, setTextLetterSpaceAdjust, setTextWordSpaceAdjust
addChildArea, collectInlineRuns, getChildAreas, resetChildrenLevel
getAdjustingInfo, getBlockProgressionOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isAncestor, isAncestorOrSelf, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustment, setBlockProgressionOffset, setParentArea
addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setIPD, setTraits, setWritingModeTraits
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public 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 level)
word
- the word stringoffset
- the offset for the next arealevel
- bidirectional level that applies to entire wordpublic void addWord(java.lang.String word, int ipd, int[] letterAdjust, int[] levels, int[][] gposAdjustments, int blockProgressionOffset)
word
- the word stringipd
- the word's ipdletterAdjust
- the letter adjustment array (may be null)levels
- array of resolved bidirectional levels of word characters,
or null if default levelgposAdjustments
- array of general position adjustments or null if none applyblockProgressionOffset
- the offset for the next areapublic void addSpace(char space, int ipd, boolean adjustable, int blockProgressionOffset, int level)
space
- the space characteripd
- the space's ipdblockProgressionOffset
- the offset for the next areaadjustable
- is this space adjustable?level
- resolved bidirection level of space characterpublic java.lang.String getText()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.