public class CIMTextSymbol extends CIMSymbol
| Constructor and Description |
|---|
CIMTextSymbol() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMTextSymbol |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
double |
getAngle()
Gets the amount of rotation applied to the text symbol, measured in degrees, around the geometry.
|
double |
getAngleX()
Gets the amount of rotation of the text symbol around the X axis, measured in degrees, around the geometry.
|
double |
getAngleY()
Gets the amount of rotation of the text symbol around the Y axis, measured in degrees, around the geometry.
|
BillboardMode |
getBillboardMode3D()
Gets the billboard mode of the text symbol.
|
BlockProgression |
getBlockProgression()
Gets the direction in which multi-line text is stacked.
|
CIMCallout |
getCallout()
Gets the callout or background of the text with optional leader lines.
|
boolean |
getCompatibilityMode()
Gets a value indicating whether to draw the text in a fashion compatible with ArcMap.
|
java.lang.String |
getCountryISO()
Gets the ISO code for the base country of the text.
|
double |
getDepth3D()
Gets the depth of the glyph when drawn in 3D.
|
boolean |
getDrawGlyphsAsGeometry()
Gets a value indicating whether fonts that are drawn as rasters at some scales to draw as vectors instead.
|
boolean |
getDrawSoftHyphen()
Gets a value indicating whether soft hyphens should be drawn.
|
boolean |
getExtrapolateBaselines()
Gets a value indicating whether the baseline of the text geometry should be expanded in the same manner as the existing geometry if the text extends beyond the baseline.
|
double |
getFlipAngle()
Gets the angle (in degrees from vertical) at which point rotated text is flipped (mirrored) in place.
|
FontEffects |
getFontEffects()
Gets whether the text is drawn as subscript or superscript.
|
FontEncoding |
getFontEncoding()
Gets the font encoding.
|
java.lang.String |
getFontFamilyName()
Gets the font family name of the font.
|
java.lang.String |
getFontStyleName()
Gets the style name for the font family.
|
FontType |
getFontType()
Gets the type of font that the font family/style name reference.
|
CIMFontVariation[] |
getFontVariationSettings()
Gets an array of CIM font variation objects, describing a particular instance of a variable font through the font axis tags and their values.
|
double |
getGlyphRotation()
Gets an additional rotation that is applied to the individual glyphs contained in the text.
|
double |
getHaloSize()
Gets the size of the halo that extends beyond the symbol shape.
|
CIMPolygonSymbol |
getHaloSymbol()
Gets the polygon symbol that is used to draw the halo for a text symbol.
|
double |
getHeight()
Gets the size of the text in points.
|
GlyphHinting |
getHinting()
Gets if hinting from the font is used for text rendering.
|
HorizontalAlignment |
getHorizontalAlignment()
Gets the alignment type used to align the text to the geometry horizontally.
|
double |
getIndentAfter()
Gets how many points to indent the text back from the end of the baseline.
|
double |
getIndentBefore()
Gets how many points to indent the text from the beginning of the baseline.
|
double |
getIndentFirstLine()
Gets how many points to indent the text from the beginning of the baseline for the first line only.
|
boolean |
getKerning()
Gets a value indicating whether the text is drawn with metric kerning, which adjusts the spacing between individual letter forms.
|
java.lang.String |
getLanguageISO()
Gets whether the ISO code for the base language of the text.
|
double |
getLetterSpacing()
Gets the additional spacing that is added to each glyph beyond what is defined by its character box in the font.
|
double |
getLetterWidth()
Gets the width that is added to each glyph beyond what is defined by its character box in its font.
|
boolean |
getLigatures()
Gets a value indicating whether text is to be drawn with ligatures, which occur when two or more letters or portions of letters are joined to form a single glyph.
|
double |
getLineGap()
Gets the spacing between lines of text.
|
LineGapType |
getLineGapType()
Gets the type of line gap that is applied.
|
double |
getOffsetX()
Gets the X offset.
|
double |
getOffsetY()
Gets the Y offset.
|
double |
getOffsetZ()
Gets the Z offset.
|
boolean |
getOverprint()
Gets a value indicating whether or not the symbol should overprint in press printing.
|
CIMColor |
getShadowColor()
Gets the color of the shadow that is defined for the text symbol.
|
double |
getShadowOffsetX()
Gets the shadow offset from the text symbol in the horizontal direction.
|
double |
getShadowOffsetY()
Gets the shadow offset from the text symbol in the vertical direction.
|
boolean |
getSmallCaps()
Gets a value indicating whether the text should be drawn as Small Capitals, where lower case text is converted to small caps and upper case text is left as upper case.
|
boolean |
getStrikethrough()
Gets a value indicating whether to draw the text with a strike through it.
|
CIMPolygonSymbol |
getSymbol()
Gets the polygon symbol that is used to draw the glyphs of the text.
|
CIM3DSymbolProperties |
getSymbol3DProperties()
Gets the collection of properties that are applied to the text symbol only in a 3D context.
|
TextCase |
getTextCase()
Gets the letter case used to draw the text.
|
TextReadingDirection |
getTextDirection()
Gets the base text direction to draw the text.
|
boolean |
getUnderline()
Gets a value indicating whether to draw the text with an underline.
|
VerticalAlignment |
getVerticalAlignment()
Gets the vertical alignment of the text.
|
VerticalGlyphOrientation |
getVerticalGlyphOrientation()
Gets the orientation for the non-vertical text in a vertical layout.
|
double |
getWordSpacing()
Gets the additional spacing that is added to between the words of the text string.
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setAngle(double angle)
Sets the amount of rotation applied to the text symbol, measured in degrees, around the geometry.
|
void |
setAngleX(double angleX)
Sets the amount of rotation of the text symbol around the X axis, measured in degrees, around the geometry.
|
void |
setAngleY(double angleY)
Sets the amount of rotation of the text symbol around the Y axis, measured in degrees, around the geometry.
|
void |
setBillboardMode3D(BillboardMode billboardMode3D)
Sets the billboard mode of the text symbol.
|
void |
setBlockProgression(BlockProgression blockProgression)
Sets the direction in which multi-line text is stacked.
|
void |
setCallout(CIMCallout callout)
Sets the callout or background of the text with optional leader lines.
|
void |
setCompatibilityMode(boolean compatibilityMode)
Sets a value indicating whether to draw the text in a fashion compatible with ArcMap.
|
void |
setCountryISO(java.lang.String countryISO)
Sets the ISO code for the base country of the text.
|
void |
setDepth3D(double depth3D)
Sets the depth of the glyph when drawn in 3D.
|
void |
setDrawGlyphsAsGeometry(boolean drawGlyphsAsGeometry)
Sets a value indicating whether fonts that are drawn as rasters at some scales to draw as vectors instead.
|
void |
setDrawSoftHyphen(boolean drawSoftHyphen)
Sets a value indicating whether soft hyphens should be drawn.
|
void |
setExtrapolateBaselines(boolean extrapolateBaselines)
Sets a value indicating whether the baseline of the text geometry should be expanded in the same manner as the existing geometry if the text extends beyond the baseline.
|
void |
setFlipAngle(double flipAngle)
Sets the angle (in degrees from vertical) at which point rotated text is flipped (mirrored) in place.
|
void |
setFontEffects(FontEffects fontEffects)
Sets whether the text is drawn as subscript or superscript.
|
void |
setFontEncoding(FontEncoding fontEncoding)
Sets the font encoding.
|
void |
setFontFamilyName(java.lang.String fontFamilyName)
Sets the font family name of the font.
|
void |
setFontStyleName(java.lang.String fontStyleName)
Sets the style name for the font family.
|
void |
setFontType(FontType fontType)
Sets the type of font that the font family/style name reference.
|
void |
setFontVariationSettings(CIMFontVariation[] fontVariationSettings)
Sets an array of CIM font variation objects, describing a particular instance of a variable font through the font axis tags and their values.
|
void |
setGlyphRotation(double glyphRotation)
Sets an additional rotation that is applied to the individual glyphs contained in the text.
|
void |
setHaloSize(double haloSize)
Sets the size of the halo that extends beyond the symbol shape.
|
void |
setHaloSymbol(CIMPolygonSymbol haloSymbol)
Sets the polygon symbol that is used to draw the halo for a text symbol.
|
void |
setHeight(double height)
Sets the size of the text in points.
|
void |
setHinting(GlyphHinting hinting)
Sets if hinting from the font is used for text rendering.
|
void |
setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
Sets the alignment type used to align the text to the geometry horizontally.
|
void |
setIndentAfter(double indentAfter)
Sets how many points to indent the text back from the end of the baseline.
|
void |
setIndentBefore(double indentBefore)
Sets how many points to indent the text from the beginning of the baseline.
|
void |
setIndentFirstLine(double indentFirstLine)
Sets how many points to indent the text from the beginning of the baseline for the first line only.
|
void |
setKerning(boolean kerning)
Sets a value indicating whether the text is drawn with metric kerning, which adjusts the spacing between individual letter forms.
|
void |
setLanguageISO(java.lang.String languageISO)
Sets whether the ISO code for the base language of the text.
|
void |
setLetterSpacing(double letterSpacing)
Sets the additional spacing that is added to each glyph beyond what is defined by its character box in the font.
|
void |
setLetterWidth(double letterWidth)
Sets the width that is added to each glyph beyond what is defined by its character box in its font.
|
void |
setLigatures(boolean ligatures)
Sets a value indicating whether text is to be drawn with ligatures, which occur when two or more letters or portions of letters are joined to form a single glyph.
|
void |
setLineGap(double lineGap)
Sets the spacing between lines of text.
|
void |
setLineGapType(LineGapType lineGapType)
Sets the type of line gap that is applied.
|
void |
setOffsetX(double offsetX)
Sets the X offset.
|
void |
setOffsetY(double offsetY)
Sets the Y offset.
|
void |
setOffsetZ(double offsetZ)
Sets the Z offset.
|
void |
setOverprint(boolean overprint)
Sets a value indicating whether or not the symbol should overprint in press printing.
|
void |
setShadowColor(CIMColor shadowColor)
Sets the color of the shadow that is defined for the text symbol.
|
void |
setShadowOffsetX(double shadowOffsetX)
Sets the shadow offset from the text symbol in the horizontal direction.
|
void |
setShadowOffsetY(double shadowOffsetY)
Sets the shadow offset from the text symbol in the vertical direction.
|
void |
setSmallCaps(boolean smallCaps)
Sets a value indicating whether the text should be drawn as Small Capitals, where lower case text is converted to small caps and upper case text is left as upper case.
|
void |
setStrikethrough(boolean strikethrough)
Sets a value indicating whether to draw the text with a strike through it.
|
void |
setSymbol(CIMPolygonSymbol symbol)
Sets the polygon symbol that is used to draw the glyphs of the text.
|
void |
setSymbol3DProperties(CIM3DSymbolProperties symbol3DProperties)
Sets the collection of properties that are applied to the text symbol only in a 3D context.
|
void |
setTextCase(TextCase textCase)
Sets the letter case used to draw the text.
|
void |
setTextDirection(TextReadingDirection textDirection)
Sets the base text direction to draw the text.
|
void |
setUnderline(boolean underline)
Sets a value indicating whether to draw the text with an underline.
|
void |
setVerticalAlignment(VerticalAlignment verticalAlignment)
Sets the vertical alignment of the text.
|
void |
setVerticalGlyphOrientation(VerticalGlyphOrientation verticalGlyphOrientation)
Sets the orientation for the non-vertical text in a vertical layout.
|
void |
setWordSpacing(double wordSpacing)
Sets the additional spacing that is added to between the words of the text string.
|
java.lang.String |
toJSON()
Creates a JSON encoding of the object and its current state.
|
public double getAngle()
public void setAngle(double angle)
public double getAngleX()
public void setAngleX(double angleX)
public double getAngleY()
public void setAngleY(double angleY)
public BlockProgression getBlockProgression()
public void setBlockProgression(BlockProgression blockProgression)
public CIMCallout getCallout()
public void setCallout(CIMCallout callout)
public boolean getCompatibilityMode()
public void setCompatibilityMode(boolean compatibilityMode)
public java.lang.String getCountryISO()
public void setCountryISO(java.lang.String countryISO)
public double getDepth3D()
public void setDepth3D(double depth3D)
public boolean getDrawGlyphsAsGeometry()
public void setDrawGlyphsAsGeometry(boolean drawGlyphsAsGeometry)
public boolean getDrawSoftHyphen()
public void setDrawSoftHyphen(boolean drawSoftHyphen)
public boolean getExtrapolateBaselines()
public void setExtrapolateBaselines(boolean extrapolateBaselines)
public double getFlipAngle()
public void setFlipAngle(double flipAngle)
public FontEffects getFontEffects()
public void setFontEffects(FontEffects fontEffects)
public FontEncoding getFontEncoding()
public void setFontEncoding(FontEncoding fontEncoding)
public java.lang.String getFontFamilyName()
public void setFontFamilyName(java.lang.String fontFamilyName)
public java.lang.String getFontStyleName()
public void setFontStyleName(java.lang.String fontStyleName)
public FontType getFontType()
public void setFontType(FontType fontType)
public CIMFontVariation[] getFontVariationSettings()
public void setFontVariationSettings(CIMFontVariation[] fontVariationSettings)
public double getGlyphRotation()
public void setGlyphRotation(double glyphRotation)
public double getHaloSize()
public void setHaloSize(double haloSize)
public CIMPolygonSymbol getHaloSymbol()
public void setHaloSymbol(CIMPolygonSymbol haloSymbol)
public double getHeight()
public void setHeight(double height)
public GlyphHinting getHinting()
public void setHinting(GlyphHinting hinting)
public HorizontalAlignment getHorizontalAlignment()
public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
public double getIndentAfter()
public void setIndentAfter(double indentAfter)
public double getIndentBefore()
public void setIndentBefore(double indentBefore)
public double getIndentFirstLine()
public void setIndentFirstLine(double indentFirstLine)
public boolean getKerning()
public void setKerning(boolean kerning)
public java.lang.String getLanguageISO()
public void setLanguageISO(java.lang.String languageISO)
public double getLetterSpacing()
public void setLetterSpacing(double letterSpacing)
public double getLetterWidth()
public void setLetterWidth(double letterWidth)
public boolean getLigatures()
public void setLigatures(boolean ligatures)
public double getLineGap()
public void setLineGap(double lineGap)
public LineGapType getLineGapType()
public void setLineGapType(LineGapType lineGapType)
public double getOffsetX()
public void setOffsetX(double offsetX)
public double getOffsetY()
public void setOffsetY(double offsetY)
public double getOffsetZ()
public void setOffsetZ(double offsetZ)
public CIMColor getShadowColor()
public void setShadowColor(CIMColor shadowColor)
public double getShadowOffsetX()
public void setShadowOffsetX(double shadowOffsetX)
public double getShadowOffsetY()
public void setShadowOffsetY(double shadowOffsetY)
public boolean getSmallCaps()
public void setSmallCaps(boolean smallCaps)
public boolean getStrikethrough()
public void setStrikethrough(boolean strikethrough)
public CIMPolygonSymbol getSymbol()
public void setSymbol(CIMPolygonSymbol symbol)
public CIM3DSymbolProperties getSymbol3DProperties()
public void setSymbol3DProperties(CIM3DSymbolProperties symbol3DProperties)
public TextCase getTextCase()
public void setTextCase(TextCase textCase)
public TextReadingDirection getTextDirection()
public void setTextDirection(TextReadingDirection textDirection)
public boolean getUnderline()
public void setUnderline(boolean underline)
public VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(VerticalAlignment verticalAlignment)
public VerticalGlyphOrientation getVerticalGlyphOrientation()
public void setVerticalGlyphOrientation(VerticalGlyphOrientation verticalGlyphOrientation)
public double getWordSpacing()
public void setWordSpacing(double wordSpacing)
public BillboardMode getBillboardMode3D()
public void setBillboardMode3D(BillboardMode billboardMode3D)
public boolean getOverprint()
public void setOverprint(boolean overprint)
public static CIMTextSymbol fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMSymbolCIMJSONExceptionpublic void serialize(JSONObject jsonObject)