Class Text
- All Implemented Interfaces:
IMapObjectText
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Gets the horizontal alignment of the text.getColor()Gets the text color.getFont()Gets the font used to render the text.intgetText()Gets the text string.Gets the vertical alignment of the text.booleanisBold()Returns whether the text is rendered bold.booleanisItalic()Returns whether the text is rendered italic.booleanReturns whether the text is rendered with strike-through.booleanReturns whether the text is rendered with an underline.booleanReturns whether the text is rendered with kerning enabled.booleanwrap()Returns whether the text wraps within the bounds of its map object.
-
Constructor Details
-
Text
public Text() -
Text
-
-
Method Details
-
getText
Description copied from interface:IMapObjectTextGets the text string.- Specified by:
getTextin interfaceIMapObjectText- Returns:
- the text
-
getFont
Description copied from interface:IMapObjectTextGets the font used to render the text.- Specified by:
getFontin interfaceIMapObjectText- Returns:
- the font
-
getFontName
-
getPixelSize
public int getPixelSize() -
wrap
public boolean wrap()Description copied from interface:IMapObjectTextReturns whether the text wraps within the bounds of its map object.- Specified by:
wrapin interfaceIMapObjectText- Returns:
trueif word wrapping is enabled
-
getColor
Description copied from interface:IMapObjectTextGets the text color.- Specified by:
getColorin interfaceIMapObjectText- Returns:
- the color
-
isBold
public boolean isBold()Description copied from interface:IMapObjectTextReturns whether the text is rendered bold.- Specified by:
isBoldin interfaceIMapObjectText- Returns:
trueif bold
-
isItalic
public boolean isItalic()Description copied from interface:IMapObjectTextReturns whether the text is rendered italic.- Specified by:
isItalicin interfaceIMapObjectText- Returns:
trueif italic
-
isUnderlined
public boolean isUnderlined()Description copied from interface:IMapObjectTextReturns whether the text is rendered with an underline.- Specified by:
isUnderlinedin interfaceIMapObjectText- Returns:
trueif underlined
-
isStrikeout
public boolean isStrikeout()Description copied from interface:IMapObjectTextReturns whether the text is rendered with strike-through.- Specified by:
isStrikeoutin interfaceIMapObjectText- Returns:
trueif strike-through is applied
-
useKerning
public boolean useKerning()Description copied from interface:IMapObjectTextReturns whether the text is rendered with kerning enabled.- Specified by:
useKerningin interfaceIMapObjectText- Returns:
trueif kerning is applied
-
getAlign
Description copied from interface:IMapObjectTextGets the horizontal alignment of the text.- Specified by:
getAlignin interfaceIMapObjectText- Returns:
- the horizontal alignment
-
getValign
Description copied from interface:IMapObjectTextGets the vertical alignment of the text.- Specified by:
getValignin interfaceIMapObjectText- Returns:
- the vertical alignment
-