org.gnu.gnome
Class FontPicker

java.lang.Object
  extended byorg.gnu.glib.GObject
      extended byorg.gnu.gtk.GtkObject
          extended byorg.gnu.gtk.Widget
              extended byorg.gnu.gtk.Container
                  extended byorg.gnu.gtk.Bin
                      extended byorg.gnu.gtk.Button
                          extended byorg.gnu.gnome.FontPicker

public class FontPicker
extends org.gnu.gtk.Button

The FontPicker widget is a button that, when selected, presents a window that enables the user to select from among the many available fonts.


Constructor Summary
FontPicker()
          Deprecated. Creates a new font picker.
FontPicker(org.gnu.glib.Handle handle)
          Deprecated. Construct a FontPicker using a handle to a native resource.
 
Method Summary
 void addListener(FontPickerListener listener)
          Deprecated. Register an object to handle FontPicker events.
 void enableFontPreview(boolean enable, int size)
          Deprecated. Enables/Disables thre rendering of the font's name in its font.
 void enableSize(boolean showSize)
          Deprecated. Enable/Disable the display of font sizes.
 java.lang.Class getEventListenerClass(java.lang.String signal)
          Deprecated.  
 org.gnu.glib.EventType getEventType(java.lang.String signal)
          Deprecated.  
 java.lang.String getFontName()
          Deprecated. Get the name of the selected font.
 FontPickerMode getMode()
          Deprecated. Get the mode.
 java.lang.String getPreviewText()
          Deprecated. Get the text showen in the preview.
 java.lang.String getTitle()
          Deprecated. Get the title of the dialog.
static org.gnu.glib.Type getType()
          Deprecated. Retrieve the runtime type used by the GLib library.
 org.gnu.gtk.Widget getUserWidget()
          Deprecated. Get the user defined widget.
 void removeListener(FontPickerListener listener)
          Deprecated. Removes a listener
 void setFontName(java.lang.String fontName)
          Deprecated. Set the name of the font to be selected.
 void setMode(FontPickerMode mode)
          Deprecated. Set the mode.
 void setPreviewText(java.lang.String text)
          Deprecated. Set the text to show in the preview.
 void setTitle(java.lang.String title)
          Deprecated. Set the title of the dialog.
 void setUserWidget(org.gnu.gtk.Widget widget)
          Deprecated. Set the user defined widget.
 
Methods inherited from class org.gnu.gtk.Button
addListener, click, enter, getFocusOnClick, getImage, getLabel, getRelief, getUseStock, getUseUnderline, getXAlignment, getYAlignment, leave, press, release, removeListener, setAlignment, setFocusOnClick, setImage, setLabel, setRelief, setUseStock, setUseUnderline
 
Methods inherited from class org.gnu.gtk.Bin
getChild
 
Methods inherited from class org.gnu.gtk.Container
add, addListener, getBorderWidth, getChildren, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode
 
Methods inherited from class org.gnu.gtk.Widget
activate, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, destroy, draw, drawArea, drawArea, finish, getAccessible, getColormap, getContext, getData, getDisplay, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight
 
Methods inherited from class org.gnu.gtk.GtkObject
sink
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, equals, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getNullHandle, getPixbufProperty, getProperty, getStringProperty, hashCode, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontPicker

public FontPicker()
Deprecated. 
Creates a new font picker.


FontPicker

public FontPicker(org.gnu.glib.Handle handle)
Deprecated. 
Construct a FontPicker using a handle to a native resource.

Method Detail

enableFontPreview

public void enableFontPreview(boolean enable,
                              int size)
Deprecated. 
Enables/Disables thre rendering of the font's name in its font.

Parameters:
enable - True if the font name should be rendered in its font. False otherwise.
size - The font size to use when rendering the font names.

enableSize

public void enableSize(boolean showSize)
Deprecated. 
Enable/Disable the display of font sizes.

Parameters:
showSize - True if font sizes should be shown. False otherwise.

getFontName

public java.lang.String getFontName()
Deprecated. 
Get the name of the selected font.

Returns:
The name of the selected font.

getMode

public FontPickerMode getMode()
Deprecated. 
Get the mode.

Returns:
The mode.

getPreviewText

public java.lang.String getPreviewText()
Deprecated. 
Get the text showen in the preview.

Returns:
The text in the preview.

getTitle

public java.lang.String getTitle()
Deprecated. 
Get the title of the dialog.

Returns:
The title.

getUserWidget

public org.gnu.gtk.Widget getUserWidget()
Deprecated. 
Get the user defined widget. For use with USER_WIDGET mode.

Returns:
The widget.
See Also:
getMode(), setMode(FontPickerMode)

setFontName

public void setFontName(java.lang.String fontName)
Deprecated. 
Set the name of the font to be selected. (Select the specified font)

Parameters:
fontName - The name of the font to select.

setMode

public void setMode(FontPickerMode mode)
Deprecated. 
Set the mode.

Parameters:
mode - The mode.

setPreviewText

public void setPreviewText(java.lang.String text)
Deprecated. 
Set the text to show in the preview.

Parameters:
text - The text to preview.

setTitle

public void setTitle(java.lang.String title)
Deprecated. 
Set the title of the dialog.

Parameters:
title - The title.

setUserWidget

public void setUserWidget(org.gnu.gtk.Widget widget)
Deprecated. 
Set the user defined widget. For use with USER_WIDGET mode.

Parameters:
widget - The widget.
See Also:
getMode(), setMode(FontPickerMode)

getType

public static org.gnu.glib.Type getType()
Deprecated. 
Retrieve the runtime type used by the GLib library.


addListener

public void addListener(FontPickerListener listener)
Deprecated. 
Register an object to handle FontPicker events.

See Also:
FontPickerListener

removeListener

public void removeListener(FontPickerListener listener)
Deprecated. 
Removes a listener

See Also:
addListener(FontPickerListener)

getEventListenerClass

public java.lang.Class getEventListenerClass(java.lang.String signal)
Deprecated. 

getEventType

public org.gnu.glib.EventType getEventType(java.lang.String signal)
Deprecated.