Class SaveableFontSizer

java.lang.Object
com.bbn.openmap.omGraphics.FontSizer
org.ka2ddo.yaac.gui.drawlayer.SaveableFontSizer
All Implemented Interfaces:
Serializable

public class SaveableFontSizer extends com.bbn.openmap.omGraphics.FontSizer
See Also:
  • Field Summary

    Fields inherited from class com.bbn.openmap.omGraphics.FontSizer

    baseScale, curScale, font, lastFont, lastScale, maxPointSize, minPointSize, multiplier
  • Constructor Summary

    Constructors
    Constructor
    Description
    SaveableFontSizer(float baseScale, int multiplier, int minPointSize, int maxPointSize)
    Create a SaveableFontSizer from the specified font parameters.
    SaveableFontSizer(com.bbn.openmap.omGraphics.FontSizer source)
    Clone a SaveableFontSizer from another FontSizer.
    SaveableFontSizer(Font font, float baseScale, int multiplier, int minPointSize, int maxPointSize)
    Create a SaveableFontSizer from the specified font parameters, associated with the specified AWT Font object.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Get the OpenMap scaling value used for this FontSizer.

    Methods inherited from class com.bbn.openmap.omGraphics.FontSizer

    getFont, getFont, getMultiplier, getScaledFont, restore, setFont, setMultiplier

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SaveableFontSizer

      public SaveableFontSizer(float baseScale, int multiplier, int minPointSize, int maxPointSize)
      Create a SaveableFontSizer from the specified font parameters.
      Parameters:
      baseScale - OpenMap Projection scale
      multiplier - multipler of how big the font should be
      minPointSize - minimum size for font
      maxPointSize - maximum size for font
    • SaveableFontSizer

      public SaveableFontSizer(Font font, float baseScale, int multiplier, int minPointSize, int maxPointSize)
      Create a SaveableFontSizer from the specified font parameters, associated with the specified AWT Font object.
      Parameters:
      font - Font to associate with the FontSizer
      baseScale - OpenMap Projection scale
      multiplier - multipler of how big the font should be
      minPointSize - minimum size for font
      maxPointSize - maximum size for font
    • SaveableFontSizer

      public SaveableFontSizer(com.bbn.openmap.omGraphics.FontSizer source)
      Clone a SaveableFontSizer from another FontSizer.
      Parameters:
      source - FontSizer to use as a source
  • Method Details

    • getBaseScale

      public float getBaseScale()
      Get the OpenMap scaling value used for this FontSizer.
      Returns:
      OpenMap Projection scale