public interface FontSelectionModel
Font.Font| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener listener)
Adds
listener as a listener to changes in the model. |
Font |
getSelectedFont()
Returns the selected
Font which should be
non-null. |
String |
getSelectedFontFamily()
Returns the family name of the selected font
|
String |
getSelectedFontName()
Returns the name of the selected font
|
int |
getSelectedFontSize()
Returns the size of the selected font
|
void |
removeChangeListener(ChangeListener listener)
Removes
listener as a listener to changes in the model. |
void |
setSelectedFont(Font font)
Sets the selected font to
font. |
Font getSelectedFont()
Font which should be
non-null.FontsetSelectedFont(java.awt.Font)String getSelectedFontName()
String getSelectedFontFamily()
int getSelectedFontSize()
void setSelectedFont(Font font)
font.
Note that setting the font to null
is undefined and may have unpredictable results.
This method fires a state changed event if it sets the
current font to a new non-null font.font - the new FontgetSelectedFont(),
addChangeListener(javax.swing.event.ChangeListener)void addChangeListener(ChangeListener listener)
listener as a listener to changes in the model.listener - the ChangeListener to be addedvoid removeChangeListener(ChangeListener listener)
listener as a listener to changes in the model.listener - the ChangeListener to be removedCopyright © 2016–2022 drjekyll.org. All rights reserved.