Package com.luciad.view.gxy
Class TLcdGXYPainterFontStyle
java.lang.Object
com.luciad.view.gxy.TLcdGXYPainterColorStyle
com.luciad.view.gxy.TLcdGXYPainterFontStyle
- All Implemented Interfaces:
ILcdCloneable
,ILcdGXYPainterStyle
,Serializable
,Cloneable
public class TLcdGXYPainterFontStyle
extends TLcdGXYPainterColorStyle
implements ILcdGXYPainterStyle
This
ILcdGXYPainterStyle
applies a given font, and either a
color or a selectionColor.- Since:
- 7.2
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new TLcdGXYPainterFontStyle without font or colors.TLcdGXYPainterFontStyle
(Font aFont) Creates a new TLcdGXYPainterFontStyle with a given font.TLcdGXYPainterFontStyle
(Font aFont, Color aDefaultColor) Creates a new TLcdGXYPainterFontStyle with a given font and default color.TLcdGXYPainterFontStyle
(Font aFont, Color aDefaultColor, Color aSelectionColor) Creates a new TLcdGXYPainterFontStyle with a given font, default color, and selection color. -
Method Summary
Modifier and TypeMethodDescriptiongetFont()
Returns the font that is used in this the painter style.void
Sets the font to be used in this the painter style.void
setupGraphics
(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext) CallsaGraphics.setColor(getSelectionColor)
if(aMode & <code>ILcdGXYPainter.SELECTED</code>) != 0
and getSelectionColor returns a nonnull
value,aGraphics.setColor(getDefaultColor)
otherwise.Methods inherited from class com.luciad.view.gxy.TLcdGXYPainterColorStyle
clone, getDefaultColor, getSelectionColor, setDefaultColor, setSelectionColor
-
Constructor Details
-
TLcdGXYPainterFontStyle
public TLcdGXYPainterFontStyle()Creates a new TLcdGXYPainterFontStyle without font or colors. -
TLcdGXYPainterFontStyle
Creates a new TLcdGXYPainterFontStyle with a given font. -
TLcdGXYPainterFontStyle
Creates a new TLcdGXYPainterFontStyle with a given font and default color. -
TLcdGXYPainterFontStyle
Creates a new TLcdGXYPainterFontStyle with a given font, default color, and selection color.
-
-
Method Details
-
setFont
Sets the font to be used in this the painter style. -
getFont
Returns the font that is used in this the painter style. -
setupGraphics
public void setupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext) Description copied from class:TLcdGXYPainterColorStyle
CallsaGraphics.setColor(getSelectionColor)
if(aMode & <code>ILcdGXYPainter.SELECTED</code>) != 0
and getSelectionColor returns a nonnull
value,aGraphics.setColor(getDefaultColor)
otherwise.- Specified by:
setupGraphics
in interfaceILcdGXYPainterStyle
- Overrides:
setupGraphics
in classTLcdGXYPainterColorStyle
- Parameters:
aGraphics
- theGraphics
to set up.aObject
- theObject
to paint.aMode
- the painting mode to consider (defined inILcdGXYPainter
).aGXYContext
- theILcdGXYContext
to consider.- See Also:
-