Package rekit.primitives
Class TextOptions
java.lang.Object
rekit.primitives.TextOptions
- All Implemented Interfaces:
Cloneable
This class combines several text options for formatting texts.
-
Constructor Summary
ConstructorsConstructorDescriptionTextOptions
(Vec alignment, int height, RGBAColor color, String font, int fontOptions) Create a TextOption container.TextOptions
(Vec alignment, int height, RGBAColor color, String font, int fontOptions, boolean usefilter) Create a TextOption container. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Get the alignment.getColor()
Get the color.getFont()
Get the font.int
Get the font-options.int
Get the height.boolean
Get the usefilter-option.setAlignmentLeft
(Vec alignment) Set alignment (anchor left).Set the color.Set the font.setFontOptions
(int fontOptions) Set the font-options.setHeight
(int height) Set the height.setUseFilter
(boolean usefilter) Set the usefilter-option.
-
Constructor Details
-
TextOptions
Create a TextOption container.- Parameters:
alignment
- the alignment (left anchor)height
- the heightcolor
- the colorfont
- the fontfontOptions
- the font-options
-
TextOptions
public TextOptions(Vec alignment, int height, RGBAColor color, String font, int fontOptions, boolean usefilter) Create a TextOption container.- Parameters:
alignment
- the alignment (left anchor)height
- the heightcolor
- the colorfont
- the fontfontOptions
- the font-optionsusefilter
- indicates whether a filter shall used
-
-
Method Details
-
getAlignment
Get the alignment.- Returns:
- the alignment
-
setAlignmentLeft
Set alignment (anchor left).- Parameters:
alignment
- the alignment- Returns:
- the modified text-options (this)
-
getHeight
public int getHeight()Get the height.- Returns:
- the height
-
getColor
Get the color.- Returns:
- the color
-
setColor
Set the color.- Parameters:
color
- the color- Returns:
- the modified text-options (this)
-
setHeight
Set the height.- Parameters:
height
- the height- Returns:
- the modified text-options (this)
-
getFont
Get the font.- Returns:
- the font
-
setFont
Set the font.- Parameters:
font
- the font- Returns:
- the modified text-options (this)
-
getFontOptions
public int getFontOptions()Get the font-options.- Returns:
- the font-options
-
setFontOptions
Set the font-options.- Parameters:
fontOptions
- the font-options- Returns:
- the modified text-options (this)
-
getUseFilter
public boolean getUseFilter()Get the usefilter-option.- Returns:
- the usefilter-option
-
setUseFilter
Set the usefilter-option.- Parameters:
usefilter
- the usefilter-option- Returns:
- the modified text-options (this)
-
clone
-