Package org.ka2ddo.yaac.gui.drawlayer
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
ConstructorDescriptionSaveableFontSizer
(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 TypeMethodDescriptionfloat
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
-
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 scalemultiplier
- multipler of how big the font should beminPointSize
- minimum size for fontmaxPointSize
- 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 FontSizerbaseScale
- OpenMap Projection scalemultiplier
- multipler of how big the font should beminPointSize
- minimum size for fontmaxPointSize
- 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
-