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 GtkSeparatorUI  view GtkSeparatorUI download GtkSeparatorUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.SeparatorUI
          extended byjavax.swing.plaf.basic.BasicSeparatorUI
              extended byorg.gtk.java.swing.plaf.gtk.GtkSeparatorUI
Direct Known Subclasses:
GtkPopupMenuSeparatorUI

public class GtkSeparatorUI
extends javax.swing.plaf.basic.BasicSeparatorUI

Version:
1.16 08/28/98

Field Summary
protected static java.awt.Color lightShadow
           
protected static java.awt.Color mediumShadow
           
 
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
 
Constructor Summary
GtkSeparatorUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates a new UI delegate for the given JComponent.
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
          This method returns the maximum size of the JComponent.
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
          This method returns the minimum size of the JComponent.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          This method returns the preferred size of the JComponent.
protected  void installDefaults(javax.swing.JSeparator s)
          This method installs the defaults that are given by the Basic Look and Feel.
protected  void installListeners(javax.swing.JSeparator s)
          This method installs any listeners that need to be attached to the JSeparator or any of its components.
 void installUI(javax.swing.JComponent c)
          This method installs the UI for the given JComponent.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          The separator is made of two lines.
protected  void uninstallDefaults(javax.swing.JSeparator s)
          This method removes the defaults that were given by the Basic Look and Feel.
protected  void uninstallListeners(javax.swing.JSeparator s)
          This method uninstalls any listeners that were installed during the install UI process.
 void uninstallUI(javax.swing.JComponent c)
          Uninstalls the UI for the given JComponent.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mediumShadow

protected static java.awt.Color mediumShadow

lightShadow

protected static java.awt.Color lightShadow
Constructor Detail

GtkSeparatorUI

public GtkSeparatorUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
Creates a new UI delegate for the given JComponent.


installUI

public void installUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method installs the UI for the given JComponent. This can include installing defaults, listeners, and initializing any instance data.


uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
Uninstalls the UI for the given JComponent. This method reverses what was done when installing the UI on the JComponent.


installDefaults

protected void installDefaults(javax.swing.JSeparator s)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method installs the defaults that are given by the Basic Look and Feel.


uninstallDefaults

protected void uninstallDefaults(javax.swing.JSeparator s)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method removes the defaults that were given by the Basic Look and Feel.


installListeners

protected void installListeners(javax.swing.JSeparator s)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method installs any listeners that need to be attached to the JSeparator or any of its components.


uninstallListeners

protected void uninstallListeners(javax.swing.JSeparator s)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method uninstalls any listeners that were installed during the install UI process.


paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
The separator is made of two lines. The top line will be the shadow color (or left line if it's vertical). The bottom or right line will be the highlight color. The two lines will be centered inside the bounds box. If the separator is horizontal, then it will be vertically centered, or if it's vertical, it will be horizontally centered.


getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method returns the preferred size of the JComponent.


getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method returns the minimum size of the JComponent.


getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.basic.BasicSeparatorUI
This method returns the maximum size of the JComponent.