org.das2.util.FontChooser

Redo the font selector, which was an odd JComponent I found on-line years ago, which isn't difficult to implement. This code may be used freely.

FontChooser( )

Creates new form FontChooser


defaultFontCheck


getCurrentFont

getCurrentFont( ) → java.awt.Font

Returns:

java.awt.Font

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getExampleText

getExampleText( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setCurrentFont

setCurrentFont( java.awt.Font f ) → void

Parameters

f - a Font

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setExampleText

setExampleText( String text ) → void

Parameters

text - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setFontCheck

setFontCheck( org.das2.util.FontChooser.FontCheck c ) → void

allows an arbitrary string to be indicated for any font. For example, in Autoplot, we look to see if the font can be embedded.

Parameters

c - a FontChooser.FontCheck

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]