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 Details

    • TLcdGXYPainterFontStyle

      public TLcdGXYPainterFontStyle()
      Creates a new TLcdGXYPainterFontStyle without font or colors.
    • TLcdGXYPainterFontStyle

      public TLcdGXYPainterFontStyle(Font aFont)
      Creates a new TLcdGXYPainterFontStyle with a given font.
    • TLcdGXYPainterFontStyle

      public TLcdGXYPainterFontStyle(Font aFont, Color aDefaultColor)
      Creates a new TLcdGXYPainterFontStyle with a given font and default color.
    • TLcdGXYPainterFontStyle

      public TLcdGXYPainterFontStyle(Font aFont, Color aDefaultColor, Color aSelectionColor)
      Creates a new TLcdGXYPainterFontStyle with a given font, default color, and selection color.
  • Method Details

    • setFont

      public void setFont(Font aFont)
      Sets the font to be used in this the painter style.
    • getFont

      public Font 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
      Calls aGraphics.setColor(getSelectionColor) if (aMode & <code>ILcdGXYPainter.SELECTED</code>) != 0 and getSelectionColor returns a non null value, aGraphics.setColor(getDefaultColor) otherwise.
      Specified by:
      setupGraphics in interface ILcdGXYPainterStyle
      Overrides:
      setupGraphics in class TLcdGXYPainterColorStyle
      Parameters:
      aGraphics - the Graphics to set up.
      aObject - the Object to paint.
      aMode - the painting mode to consider (defined in ILcdGXYPainter).
      aGXYContext - the ILcdGXYContext to consider.
      See Also: