T
- The pixel typepublic class GeneralFontStyle<T> extends FontStyle<T>
FontStyle.FontStyleAttribute, FontStyle.HorizontalAlignment, FontStyle.VerticalAlignment
angle, ANGLE, colour, COLOUR, font, FONT, FONT_SIZE, fontSize, HORIZONTAL_ALIGNMENT, horizontalAlignment, italic, ITALIC, VERTICAL_ALIGNMENT, verticalAlignment
Constructor and Description |
---|
GeneralFontStyle(GeneralFont font,
ImageRenderer<T,?> renderer)
Create a new font style that will be drawn solid.
|
GeneralFontStyle(GeneralFont font,
ImageRenderer<T,?> renderer,
boolean outline)
Create a new GeneralFontStyle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOutline()
Returns whether this font is to be drawn in outline or not
|
void |
setOutline(boolean outline)
Set whether this font should be drawn in outline or not.
|
getAngle, getColour, getFont, getFontSize, getHorizontalAlignment, getRenderer, getVerticalAlignment, isItalic, parseAttributes, parseAttributes, setAngle, setColour, setFont, setFontSize, setHorizontalAlignment, setItalic, setVerticalAlignment
public GeneralFontStyle(GeneralFont font, ImageRenderer<T,?> renderer)
font
- The font to userenderer
- The renderer to draw withpublic GeneralFontStyle(GeneralFont font, ImageRenderer<T,?> renderer, boolean outline)
font
- The font to use (must be a GeneralFont
)renderer
- The renderer to draw withoutline
- Whether to draw in outline or notpublic void setOutline(boolean outline)
outline
- Whether to draw in outline or notpublic boolean isOutline()