public class GFXTextAttr extends GFXAttr
| Modifier and Type | Field and Description |
|---|---|
static GFXTextAttr |
defaultTextAttr |
static int |
LINETHROUGH_ALL |
static int |
LINETHROUGH_DOUBLE |
static int |
LINETHROUGH_NONE |
static int |
LINETHROUGH_SINGLE |
static int |
LINETHROUGH_STYLE |
static int |
LINETHROUGH_TYPE
enumeration LineThroughCode.
|
static int |
LINETHROUGH_UNKNOWN |
static int |
LINETHROUGH_WORD |
static int |
OVER_ALL |
static int |
OVER_DOUBLE |
static int |
OVER_NONE |
static int |
OVER_SINGLE |
static int |
OVER_STYLE |
static int |
OVER_TYPE
enumeration OverCode.
|
static int |
OVER_UNKNOWN |
static int |
OVER_WORD |
static int |
STRIKEOUT_DOUBLE |
static int |
STRIKEOUT_NONE |
static int |
STRIKEOUT_SINGLE |
static int |
STRIKEOUT_UNKNOWN
enumeration StrikeoutCode.
|
static int |
UNDER_ALL |
static int |
UNDER_DOUBLE |
static int |
UNDER_NONE |
static int |
UNDER_SINGLE |
static int |
UNDER_STYLE |
static int |
UNDER_TYPE
enumeration UnderCode.
|
static int |
UNDER_UNKNOWN |
static int |
UNDER_WORD |
DEFAULT_SHADESCALE, STYLE_CROSS, STYLE_DASH, STYLE_DIAG_CROSS, STYLE_DIAG_LEFT, STYLE_DIAG_RIGHT, STYLE_DOT, STYLE_DOT_DASH, STYLE_DOT_DOT_DASH, STYLE_HORZ, STYLE_NONE, STYLE_SOLID, STYLE_UNKNOWN, STYLE_VERT| Constructor and Description |
|---|
GFXTextAttr()
Default constructor.
|
GFXTextAttr(GFXTextAttr oSource)
Copy constructor.
|
GFXTextAttr(int nNewUnderline,
int nNewStyle,
int lNewShade,
GFXColour oNewColour,
GFXColour oNewColourBg)
Constructor.
|
GFXTextAttr(int nNewUnderline,
int nNewStyle,
int lNewShade,
GFXColour oNewColour,
GFXColour oNewColourBg,
int nNewStrikeout,
int nNewOverline)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(GFXTextAttr oSource)
Assigment operator.
|
static GFXTextAttr |
defaultText()
Get a default Text Attribute.
|
boolean |
equals(Object object)
Equality comparison operator.
|
boolean |
equivalent(GFXTextAttr oCompare)
Equality comparison.
|
static GFXDecorationInfo |
extractDecoration(int nDecoration)
Extract text decoration into usable values.
|
int |
hashCode() |
boolean |
notEqual(Object oCompare)
Non equality comparison operator.
|
int |
overline()
Get the overline value for this attribute.
|
void |
overline(int nNewOverline)
Set the overline value for this attribute.
|
int |
strikeout()
Get the strikeout value for this attribute.
|
void |
strikeout(int nNewStrikeout)
Set the strikeout value for this attribute.
|
GFXTextContext |
textContext()
Return the text context associated with this graphic text attribute
object.
|
void |
textContext(GFXTextContext poTextContext)
Set a new text context for this attribute object.
|
int |
underline()
Get the underline value for this attribute.
|
void |
underline(int nNewUnderline)
Set the underline value for this attribute.
|
colour, colour, colourBg, colourBg, copyFrom, defaultShadeScale, equivalent, graphicContext, graphicContext, shade, shade, shadeColour, shadeScale, shadeScale, style, stylepublic static final int UNDER_TYPE
Low four bits are type (unknown, none, all or word). High four bits are style (single, double, strikeout). Combined by using bit-wise OR.
public static final int UNDER_UNKNOWN
public static final int UNDER_NONE
public static final int UNDER_ALL
public static final int UNDER_WORD
public static final int UNDER_STYLE
public static final int UNDER_SINGLE
public static final int UNDER_DOUBLE
public static final int LINETHROUGH_TYPE
Low four bits are type (unknown, none, all or word). High four bits are style (single, double, strikeout). Combined by using bit-wise OR.
public static final int LINETHROUGH_UNKNOWN
public static final int LINETHROUGH_NONE
public static final int LINETHROUGH_ALL
public static final int LINETHROUGH_WORD
public static final int LINETHROUGH_STYLE
public static final int LINETHROUGH_SINGLE
public static final int LINETHROUGH_DOUBLE
public static final int OVER_TYPE
Low four bits are type (unknown, none, all or word). High four bits are style (single, double, strikeout). Combined by using bit-wise OR.
public static final int OVER_UNKNOWN
public static final int OVER_NONE
public static final int OVER_ALL
public static final int OVER_WORD
public static final int OVER_STYLE
public static final int OVER_SINGLE
public static final int OVER_DOUBLE
public static final int STRIKEOUT_UNKNOWN
Legacy enumeration for inconsistent strikeout handling
public static final int STRIKEOUT_NONE
public static final int STRIKEOUT_SINGLE
public static final int STRIKEOUT_DOUBLE
public static final GFXTextAttr defaultTextAttr
public GFXTextAttr()
Populates the graphic attribute with the following settings:
Underline = none
Overline = none
Strikeout = none
public GFXTextAttr(GFXTextAttr oSource)
Creates a new Text attribute with the same settings as the source attribute.
oSource - Text attribute to copypublic GFXTextAttr(int nNewUnderline,
int nNewStyle,
int lNewShade,
GFXColour oNewColour,
GFXColour oNewColourBg)
Creates a new Text attribute with the specified settings.
nNewUnderline - The underline setting for this attributenNewStyle - The style setting for this attributelNewShade - The shade setting for this attributeoNewColour - The foreground colour to be usedoNewColourBg - The background colour to be usedpublic GFXTextAttr(int nNewUnderline,
int nNewStyle,
int lNewShade,
GFXColour oNewColour,
GFXColour oNewColourBg,
int nNewStrikeout,
int nNewOverline)
Creates a new Text attribute with the specified settings.
nNewUnderline - The underline setting for this attributenNewStyle - The style setting for this attributelNewShade - The shade setting for this attributeoNewColour - The foreground colour to be usedoNewColourBg - The background colour to be usednNewStrikeout - The strikeout setting for this attributenNewOverline - The overline setting for this attributepublic static GFXTextAttr defaultText()
This will return a Text Attribute with the following settings:
Underline = none
Style = solid
Shade scale = maximum
Foreground colour = black
Background colour = white
public int underline()
public void underline(int nNewUnderline)
nNewUnderline - New underline valuepublic int overline()
public void overline(int nNewOverline)
nNewOverline - New overline valuepublic int strikeout()
public void strikeout(int nNewStrikeout)
nNewStrikeout - New strikeout valuepublic GFXTextContext textContext()
public void textContext(GFXTextContext poTextContext)
poTextContext - - New text context to associate with this graphic
text attribute object.public boolean equivalent(GFXTextAttr oCompare)
Compares on an attribute value basis. Two attributes are considered equal if their values compare for equality.
oCompare - Attribute object to compare against.public boolean equals(Object object)
Compares on an attribute value basis. Two attributes are considered equal if their values compare for equality.
public boolean notEqual(Object oCompare)
Compares on an attribute value basis. Two attributes are only considered equal if their values compare for equality.
oCompare - Attribute object to compare against.public void copyFrom(GFXTextAttr oSource)
Replace all attribute settings with those from the source object.
oSource - Source attribute object to copy.public static GFXDecorationInfo extractDecoration(int nDecoration)
Given an underline, line-through or overline value, extract the two component values from it for further processing.
nDecoration - Input text decoration value.Copyright © 2010 - 2020 Adobe. All Rights Reserved