public class TextRegion extends TextDispStr
DEFAULT_STREAM
LEVEL_CORRECT_SPACING, LEVEL_NORMAL, LEVEL_V6
Constructor and Description |
---|
TextRegion()
Default constructor.
|
TextRegion(String sSource)
Constructor with source text string.
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(TextRegion oSource)
Assign this text region's content from the given text region.
|
boolean |
enforceSize()
Query whether the stream enforces text region size at data entry time.
|
void |
enforceSize(boolean bNewEnforce)
Change the value of the EnforceSize flag.
|
boolean |
equals(Object object)
Compare text regions for equality.
|
UnitSpan |
getMaxHeight()
Return the maximum height of the text region.
|
UnitSpan |
getMaxWidth()
Return the maximum width of the text region.
|
UnitSpan |
getMinHeight()
Return the minimum height of the text region.
|
UnitSpan |
getMinWidth()
Return the minimum width of the text region.
|
int |
hashCode() |
boolean |
notEqual(TextRegion oCompare)
Compare text streams for inequality.
|
void |
setJustifyExtents(UnitSpan oJustifyWidth,
UnitSpan oJustifyHeight)
Set the justfiy extents of the text region.
|
void |
setJustifyHeight(UnitSpan oJustifyHeight)
Set the justfiy height of the text region.
|
void |
setJustifyWidth(UnitSpan oJustifyWidth)
Set the justfiy width of the text region.
|
void |
setMaxHeight(UnitSpan oNewHeight)
Set the maximum height of the text region.
|
void |
setMaxWidth(UnitSpan oNewWidth)
Set the maximum width of the text region.
|
void |
setMinHeight(UnitSpan oNewHeight)
Set the minimum height of the text region.
|
void |
setMinWidth(UnitSpan oNewWidth)
Set the minimum width of the text region.
|
allowOverflow, allowOverflow, combCells, combCells, enforceJustifyHeight, enforceJustifyWidth, extent, justifyHeight, justifyHPoint, justifyVPoint, justifyWidth, maxHeight, maxWidth, minHeight, minWidth, notEqual, onLoadFrame, runtimeExtent, unlimitedHeight, unlimitedWidth
appendFrame, appendFrame, appendFrameRef, appendFrameRef, createDisplay, defaultDirection, defaultDirection, forceFrame, forceFrame, getContext, getFrame, getFrameCount, insertFrame, insertFrameRef, onFrameRemoved, onNewFrame, onRemoveFrame, removeFrame, removeFrame, setContext, setFrame, setFrameCount, setFrameRef
allowNewLines, allowNewLines, anyNewLines, append, append, append, append, append, append, cascadeLegacyLevel, coalesceMarker, contiguousText, copyFrom, currentSize, debug, display, enumEmbed, enumField, enumMarker, find, find, findRangeMarkerOver, fontService, fontService, gfxSource, gfxSource, isDescendentOf, isDescendentOf, legacyPositioning, markup, markup, markup, markup, markup, maxSize, maxSize, notEqual, position, posnCount, posnInsert, posnInsert, posnInsertPara, posnNext, posnNextAttr, posnNextChar, posnNextEmbed, posnNextField, posnNextType, posnNextType, posnPrev, posnPrevAttr, posnPrevChar, posnPrevEmbed, posnPrevField, posnPrevType, posnPrevType, posnUpdateStreamLoc, rangeEnumMarker, rangeMarker, rangeMarkerInternal, removeMarker, setText, spaceLeft, splitMarker, suppressFormat, text, text, updateNotification
getLegacyLevel, hasCorrectPositioning, hasLegacyPositioning, hasNormalPositioning, setLegacyLevel
public TextRegion()
The text stream contains no content and has no pool/mapping assocotiation. The minimum and maximum width and height are all defaulted to one inch.
public TextRegion(String sSource)
Create a text stream whose initial content is copied from the given string. The minimum and maximum width and height are all defaulted to one inch. The text stream initially has no attribute pool association. The display is not automatically created.
sSource
- - String whose contents are to be copied to the text
stream.public UnitSpan getMinWidth()
This provides the same information as the virtual MinWidth() method in the base class, TextDispStr.
public void setMinWidth(UnitSpan oNewWidth)
This method allows the caller to change the minimum width of the text region, possibly triggering a redisplay.
oNewWidth
- - New minimum width of the text region. For
information on special values, please see the base class
(TextDispStr) documentation.public UnitSpan getMinHeight()
This provides the same information as the virtual Minheight() method in the base class, TextDispStr.
public void setMinHeight(UnitSpan oNewHeight)
This method allows the caller to change the minimum height of the text region, possibly triggering a redisplay.
oNewHeight
- - New minimum height of the text region. For
information on special values, please see the base class
(TextDispStr) documentation.public UnitSpan getMaxWidth()
This provides the same information as the virtual MaxWidth() method in the base class, TextDispStr.
public void setMaxWidth(UnitSpan oNewWidth)
This method allows the caller to change the maximum width of the text region, possibly triggering a redisplay.
oNewWidth
- - New maximum width of the text region. For
information on special values, please see the base class
(TextDispStr) documentation.public UnitSpan getMaxHeight()
This provides the same information as the virtual Maxheight() method in the base class, TextDispStr.
public void setMaxHeight(UnitSpan oNewHeight)
This method allows the caller to change the maximum height of the text region, possibly triggering a redisplay.
oNewHeight
- - New maximum height of the text region. For
information on special values, please see the base class
(TextDispStr) documentation.public void setJustifyHeight(UnitSpan oJustifyHeight)
This method sets the height to use during justification calculations
public void setJustifyWidth(UnitSpan oJustifyWidth)
This method sets the height to use during justification calculations
public void setJustifyExtents(UnitSpan oJustifyWidth, UnitSpan oJustifyHeight)
This method sets the height to use during justification calculations
public boolean enforceSize()
public void enforceSize(boolean bNewEnforce)
bNewEnforce
- - TRUE causes the text region to respect its
maximum size; FALSE allows the text content to exceed the maximum
size of the region. Note that the constructor defaults this to TRUE.public void copyFrom(TextRegion oSource)
Replace this stream's content with a copy of the content of the given stream. The graphic source information is not copied. In other words, fonts will be re-mapped in this stream's font service and attributes will be re-pooled in any attribute pool associated with this stream. The minimum and maximum width and height of the source stream are also copied. The display pointer is not copied, as each stream has its own display; nor is a display automatically created.
oSource
- - Stream containing source content to copy.public boolean equals(Object object)
Compare this stream against the one passed on the parameter oCompare for equality. The graphics sources of the streams are not compared. To be equal, the streams' content must match in all aspects: raw text, attributes, embedded field content, and so on. The display does not participate in the comparison. In addition, the text regions' minimum and maximum width and height must match.
equals
in class TextDispStr
object
- - Stream to compare againstpublic int hashCode()
hashCode
in class TextDispStr
public boolean notEqual(TextRegion oCompare)
Compare this stream against the one passed on the parameter oCompare for inequality. The graphics sources of the streams are not compared. This is the exact opposite of the equality comparison. The display does not participate in the comparison.
oCompare
- - Stream to compare againstCopyright © 2010 - 2020 Adobe. All Rights Reserved