Package noaa.coastwatch.gui.visual
Class VisualFont
java.lang.Object
noaa.coastwatch.gui.visual.AbstractVisualObject
noaa.coastwatch.gui.visual.VisualFont
- All Implemented Interfaces:
ComponentProducer
,VisualObject
The
VisualFont
class represents a font as a
button with the name of the font. When the button is
pressed, a FontChooser
appears that allows the user
to select a new font.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
VALUE_PROPERTY
-
Constructor Summary
ConstructorDescriptionVisualFont
(Font font) Creates a new visual font object using the specified font. -
Method Summary
Modifier and TypeMethodDescriptionGets the button used to represent the font.static String
getFontDescription
(Font font) Gets a font description.getValue()
Gets the font value.static void
Tests this class.Methods inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, setRestrictions, showChooser
-
Constructor Details
-
VisualFont
Creates a new visual font object using the specified font.
-
-
Method Details
-
getComponent
Gets the button used to represent the font. -
getFontDescription
Gets a font description. -
getValue
Gets the font value.- Returns:
- the value that this visual object currently holds.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.
-