Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv FontData | |
| pack-priv RGB |
| Access | Constructor and Description |
|---|---|
| public | FontDialog(Shell
a shell which will be the parent of the new instance parent)Constructs a new instance of this class given only its parent. |
| public | FontDialog(Shell
a shell which will be the parent of the new instance parent, int the style of dialog to construct style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the dialog's effects selection controls
are visible and false otherwiseReturns |
| public FontData | Returns: the FontData for the selected font, or null
Deprecated
use #getFontList ()
Returns a FontData object describing the font that was
selected in the dialog, or null if none is available.
|
| public FontData[] | Returns: the FontData for the selected font, or nullReturns a FontData set describing the font that was selected in the dialog, or null if none is available. |
| public RGB | Returns: the RGB value for the selected color, or nullReturns an RGB describing the color that was selected in the dialog, or null if none is available. |
| public FontData | Returns: a FontData object describing the font that was selected, or null if the dialog was cancelled or an error occurredMakes the dialog visible and brings it to the front of the display. |
| public void | setEffectsVisible(boolean
whether or not the dialog will show the effects selection controls visible)Sets the effects selection controls in the dialog visible if the
argument is |
| public void | setFontData(FontData
the FontData to use initially, or null fontData)
Deprecated
use #setFontList (FontData [])
Sets a FontData object describing the font to be
selected by default in the dialog, or null to let
the platform choose one.
|
| public void | setFontList(FontData[]
the set of FontData objects to use initially, or null
to let the platform select a default when open() is called fontData)Sets the set of FontData objects describing the font to be selected by default in the dialog, or null to let the platform choose one. |
| public void |
| fontData | back to summary |
|---|---|
| pack-priv FontData fontData | |
| rgb | back to summary |
|---|---|
| pack-priv RGB rgb | |
| FontDialog | back to summary |
|---|---|
| public FontDialog(Shell parent) Constructs a new instance of this class given only its parent.
| |
| FontDialog | back to summary |
|---|---|
| public FontDialog(Shell parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| getEffectsVisible | back to summary |
|---|---|
| public boolean getEffectsVisible() Returns If the platform's font dialog does not have any effects selection controls, then this method always returns false.
| |
| getFontData | back to summary |
|---|---|
| public FontData getFontData()
Deprecated use #getFontList () Returns a FontData object describing the font that was selected in the dialog, or null if none is available.
| |
| getFontList | back to summary |
|---|---|
| public FontData[] getFontList() Returns a FontData set describing the font that was selected in the dialog, or null if none is available.
| |
| getRGB | back to summary |
|---|---|
| public RGB getRGB() Returns an RGB describing the color that was selected in the dialog, or null if none is available.
| |
| open | back to summary |
|---|---|
| public FontData open() Makes the dialog visible and brings it to the front of the display.
| |
| setEffectsVisible | back to summary |
|---|---|
| public void setEffectsVisible(boolean visible) Sets the effects selection controls in the dialog visible if the
argument is By default the effects selection controls are displayed if the platform font dialog supports effects selection.
| |
| setFontData | back to summary |
|---|---|
| public void setFontData(FontData fontData)
Deprecated use #setFontList (FontData []) Sets a FontData object describing the font to be selected by default in the dialog, or null to let the platform choose one.
| |
| setFontList | back to summary |
|---|---|
| public void setFontList(FontData[] fontData) Sets the set of FontData objects describing the font to be selected by default in the dialog, or null to let the platform choose one.
| |
| setRGB | back to summary |
|---|---|
| public void setRGB(RGB rgb) Sets the RGB describing the color to be selected by default in the dialog, or null to let the platform choose one.
| |