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
ConstructorsConstructorDescriptionCreates 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.voidSets the font to be used in this the painter style.voidsetupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext) CallsaGraphics.setColor(getSelectionColor)if(aMode & <code>ILcdGXYPainter.SELECTED</code>) != 0and getSelectionColor returns a nonnullvalue,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:TLcdGXYPainterColorStyleCallsaGraphics.setColor(getSelectionColor)if(aMode & <code>ILcdGXYPainter.SELECTED</code>) != 0and getSelectionColor returns a nonnullvalue,aGraphics.setColor(getDefaultColor)otherwise.- Specified by:
setupGraphicsin interfaceILcdGXYPainterStyle- Overrides:
setupGraphicsin classTLcdGXYPainterColorStyle- Parameters:
aGraphics- theGraphicsto set up.aObject- theObjectto paint.aMode- the painting mode to consider (defined inILcdGXYPainter).aGXYContext- theILcdGXYContextto consider.- See Also:
-