public class TextDrawInfo extends Object
The number of properties available for the rendering of text has been growing as more features are added to AXTE. This class caches all of those properties. Instead ofusing forever growing parameter lists, the client creates an instance of this class, populates on the properties relevant to its usage, and then calls the appropriate rendering method.
Currently, the following properties are supported. All are optional, except for the graphics environment.
TextSelection) object, describing a range of selected text along
with foreground and background colours, that may require different
rendering from the rest of the text. Default is the null pointer,
indicating there is no primary selection in effect. Note that, in
bidirectional text, selections may not be visually contiguous.
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID_DEFAULT_AUGMENTED_SIZE
Use the computed size of the text object.
|
static int |
INVALID_DEFAULT_DECLARED_SIZE
Use the declared size of the text object.
|
static int |
INVALID_DEFAULT_RUNTIME_EXTENT
Use the text display's runtime extent.
|
| Constructor and Description |
|---|
TextDrawInfo(GFXEnv oGfxEnv)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
GFXEnv |
getGfxEnv()
Retrieve the graphic environment.
|
Rect |
getInvalid()
Retrieve the invalidation rectangle.
|
int |
getInvalidDefault()
Retrieve the default invalidation rectangle setting.
|
Rect |
getPage()
Retrieve the page rectangle.
|
TextSelection |
getPrimary()
Retrieve the primary selection.
|
TextSelection |
getSecondary()
Retrieve the secondary selection.
|
boolean |
getTruncate()
Retrieve the truncate flag.
|
void |
setInvalid(Rect oInvalid)
Set the invalidation rectangle.
|
void |
setInvalidDefault(int eInvalidDefault)
Set the default invalidation rectangle setting.
|
void |
setPage(Rect oPage)
Set the page rectangle.
|
void |
setPrimary(TextSelection poPrimary)
Set the primary selection.
|
void |
setSecondary(TextSelection poSecondary)
Set the secondary selection.
|
void |
setTruncate(boolean bTruncate)
Set the truncate flag.
|
public static final int INVALID_DEFAULT_RUNTIME_EXTENT
public static final int INVALID_DEFAULT_DECLARED_SIZE
public static final int INVALID_DEFAULT_AUGMENTED_SIZE
public TextDrawInfo(GFXEnv oGfxEnv)
oGfxEnv - - Graphic environment to use for rendering.public GFXEnv getGfxEnv()
public Rect getInvalid()
public void setInvalid(Rect oInvalid)
oInvalid - - Invalidation rectangle. For more information,
please see above.public Rect getPage()
public void setPage(Rect oPage)
oPage - - Page rectangle. For more information, please see
above.public TextSelection getPrimary()
public void setPrimary(TextSelection poPrimary)
poPrimary - - Primary selection. For more information, please
see above.public TextSelection getSecondary()
public void setSecondary(TextSelection poSecondary)
poSecondary - - Secondary selection. For more information,
please see above.public int getInvalidDefault()
public void setInvalidDefault(int eInvalidDefault)
eInvalidDefault - - Default invalidation rectangle setting. For
more information, please see above.public boolean getTruncate()
public void setTruncate(boolean bTruncate)
bTruncate - - Truncate flag. For more information, please see
above.Copyright © 2010 - 2020 Adobe. All Rights Reserved