public class TextStyle extends BaseStyle
Describes PUB text style
Constructor and Description |
---|
TextStyle()
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
calculateTextSize()
Calculates text size in points
|
int |
getColorIndex()
Gets index of color in Document.Colors array
|
int |
getFontIndex()
Gets index of font name in Document.FontNames array
|
int |
getLocale()
Locale identifier
|
int |
getRawTextSize()
Size of text in PUB metrics(in EMUs)
|
double |
getScaleValue()
Value of scale
|
byte |
getSuperscriptType()
Type of superscript
|
byte |
getUnderlineType()
Underline type for text
|
boolean |
isAllCapsMode()
Is all caps mode enabled
|
boolean |
isBold()
Is text bold
|
boolean |
isEmboss()
Is text embossed
|
boolean |
isEngrave()
Is text engraved
|
boolean |
isItalic()
Is text italic
|
boolean |
isOutline()
Is text outlined
|
boolean |
isShadow()
Is text shadowed
|
boolean |
isSmallCapsMode()
Is small caps mode enabled
|
void |
setColorIndex(int value)
Sets index of color in Document.Colors array
|
void |
setFontIndex(int value)
Sets index of font name in Document.FontNames array
|
void |
setIsAllCapsMode(boolean value)
Enables/disables all caps mode for text
|
void |
setIsBold(boolean value)
Sets is text bold
|
void |
setIsEmboss(boolean value)
Sets is text embossed
|
void |
setIsEngrave(boolean value)
Sets is text engraved
|
void |
setIsItalic(boolean value)
Sets is text italic
|
void |
setIsOutline(boolean value)
Sets is text outlined
|
void |
setIsShadow(boolean value)
Sets is text shadowed
|
void |
setIsSmallCapsMode(boolean value)
Enables/disables small caps mode for text
|
void |
setLocale(int value)
Sets locale identifier
|
void |
setRawTextSize(int value)
Sets size of text in PUB metrics(in EMUs)
|
void |
setScaleValue(double value)
Sets value of scale
|
void |
setSuperscriptType(byte value)
Sets type of superscript
|
void |
setUnderlineType(byte value)
Sets underline type for text
|
addIdentifierProcessed, getIdentifiersSetted, isEmpty
public final boolean isBold()
Is text bold
public final void setIsBold(boolean value)
Sets is text bold
value
- Is bold valuepublic final boolean isItalic()
Is text italic
public final void setIsItalic(boolean value)
Sets is text italic
value
- Is italic valuepublic final byte getUnderlineType()
Underline type for text
UnderlineType
public final void setUnderlineType(byte value)
Sets underline type for text
value
- Value of underline typepublic final boolean isOutline()
Is text outlined
public final void setIsOutline(boolean value)
Sets is text outlined
value
- Is text outlined valuepublic final boolean isShadow()
Is text shadowed
public final void setIsShadow(boolean value)
Sets is text shadowed
value
- Is text shadowed valuepublic final boolean isSmallCapsMode()
Is small caps mode enabled
public final void setIsSmallCapsMode(boolean value)
Enables/disables small caps mode for text
value
- Is small caps mode enabledpublic final boolean isAllCapsMode()
Is all caps mode enabled
public final void setIsAllCapsMode(boolean value)
Enables/disables all caps mode for text
value
- Is all caps mode enabledpublic final boolean isEmboss()
Is text embossed
public final void setIsEmboss(boolean value)
Sets is text embossed
value
- Is text embossed valuepublic final boolean isEngrave()
Is text engraved
public final void setIsEngrave(boolean value)
Sets is text engraved
value
- Is text engraved valuepublic final int getRawTextSize()
Size of text in PUB metrics(in EMUs)
public final void setRawTextSize(int value)
Sets size of text in PUB metrics(in EMUs)
value
- Value of text size in EMUspublic final double calculateTextSize()
Calculates text size in points
public final int getColorIndex()
Gets index of color in Document.Colors array
public final void setColorIndex(int value)
Sets index of color in Document.Colors array
value
- Value of color indexpublic final int getFontIndex()
Gets index of font name in Document.FontNames array
public final void setFontIndex(int value)
Sets index of font name in Document.FontNames array
value
- Value of font indexpublic final byte getSuperscriptType()
Type of superscript
SuperscriptType
public final void setSuperscriptType(byte value)
Sets type of superscript
value
- Value of superscript typepublic final double getScaleValue()
Value of scale
public final void setScaleValue(double value)
Sets value of scale
value
- Value of scalepublic final int getLocale()
Locale identifier
public final void setLocale(int value)
Sets locale identifier
value
- Locale identifier