Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gtk.java.swing.plaf.gtk
Class GtkToggleButtonUI  view GtkToggleButtonUI download GtkToggleButtonUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ButtonUI
          extended byjavax.swing.plaf.basic.BasicButtonUI
              extended byjavax.swing.plaf.basic.BasicToggleButtonUI
                  extended byorg.gtk.java.swing.plaf.gtk.GtkToggleButtonUI

public class GtkToggleButtonUI
extends javax.swing.plaf.basic.BasicToggleButtonUI


Field Summary
private  boolean defaults_initialized
           
private static GtkToggleButtonUI gtkToggleButtonUI
           
protected  java.awt.Color highlight
           
protected  java.awt.Color selectColor
           
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset, listener
 
Constructor Summary
GtkToggleButtonUI()
           
 
Method Summary
protected  javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
          Creates and returns a new instance of javax.swing.plaf.basic.BasicButtonListener.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
          Factory method to create an instance of BasicButtonUI for a given javax.swing.JComponent, which should be an javax.swing.AbstractButton.
protected  void fillContentArea(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Color fillColor)
           
protected  java.awt.Color getSelectColor()
           
 void installDefaults(javax.swing.AbstractButton b)
          Installs the default settings.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paint the component, which is an javax.swing.AbstractButton, according to its current state.
protected  void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton b)
          Paints the background area of an javax.swing.AbstractButton in the pressed state.
protected  void uninstallDefaults(javax.swing.AbstractButton b)
          Removes the defaults added by installDefaults(AbstractButton) 55 .
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getPropertyPrefix, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getDefaultTextIconGap, getPreferredSize, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gtkToggleButtonUI

private static final GtkToggleButtonUI gtkToggleButtonUI

selectColor

protected java.awt.Color selectColor

highlight

protected java.awt.Color highlight

defaults_initialized

private boolean defaults_initialized
Constructor Detail

GtkToggleButtonUI

public GtkToggleButtonUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
Description copied from class: javax.swing.plaf.basic.BasicButtonUI
Factory method to create an instance of BasicButtonUI for a given javax.swing.JComponent, which should be an javax.swing.AbstractButton.


createButtonListener

protected javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
Description copied from class: javax.swing.plaf.basic.BasicButtonUI
Creates and returns a new instance of javax.swing.plaf.basic.BasicButtonListener. This method provides a hook to make it easy for subclasses to install a different listener.


installDefaults

public void installDefaults(javax.swing.AbstractButton b)
Description copied from class: javax.swing.plaf.basic.BasicButtonUI
Installs the default settings.


uninstallDefaults

protected void uninstallDefaults(javax.swing.AbstractButton b)
Description copied from class: javax.swing.plaf.basic.BasicButtonUI
Removes the defaults added by BasicButtonUI.installDefaults(AbstractButton)>BasicButtonUI.installDefaults(AbstractButton) 55 .


getSelectColor

protected java.awt.Color getSelectColor()

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicToggleButtonUI
Paint the component, which is an javax.swing.AbstractButton, according to its current state.


paintButtonPressed

protected void paintButtonPressed(java.awt.Graphics g,
                                  javax.swing.AbstractButton b)
Description copied from class: javax.swing.plaf.basic.BasicButtonUI
Paints the background area of an javax.swing.AbstractButton in the pressed state. This means filling the supplied area with a darker than normal background.


fillContentArea

protected void fillContentArea(java.awt.Graphics g,
                               javax.swing.AbstractButton b,
                               java.awt.Color fillColor)