QJCC homepage

biz.chitec.quarterback.swing
Class BasicSimpleIndicatorUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended bybiz.chitec.quarterback.swing.SimpleIndicatorUI
          extended bybiz.chitec.quarterback.swing.BasicSimpleIndicatorUI

public class BasicSimpleIndicatorUI
extends SimpleIndicatorUI

UI delegate for simple indicator. Depending on the enabled state, the delegate draws itself in the disabledcolor or in the enabledcolor. Those colors are served by the UIDefaults, so normally the MyMetalTheme should be used as it serves these color.

Version:
$Id: 47692a0e758770b635bd91457db5684d5a36bfdc $
Author:
Dirk Hillbrecht/chitec 2001 Distributed under the terms of the GNU LGPL.

Field Summary
(package private)  java.awt.Color dcol
           
(package private)  java.awt.Color ecol
           
private static java.awt.Dimension maxdim
           
private static java.awt.Dimension mindim
           
(package private)  javax.swing.JComponent mycomponent
           
private static java.awt.Dimension prefdim
           
 
Constructor Summary
BasicSimpleIndicatorUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
          return maximum size
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
          return minimum size
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          return preferred size
 void installUI(javax.swing.JComponent c)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          paint myself
 void uninstallUI(javax.swing.JComponent c)
           
 
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

mindim

private static final java.awt.Dimension mindim

prefdim

private static final java.awt.Dimension prefdim

maxdim

private static final java.awt.Dimension maxdim

ecol

java.awt.Color ecol

dcol

java.awt.Color dcol

mycomponent

javax.swing.JComponent mycomponent
Constructor Detail

BasicSimpleIndicatorUI

public BasicSimpleIndicatorUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)

uninstallUI

public void uninstallUI(javax.swing.JComponent c)

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
return minimum size


getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
return preferred size


getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
return maximum size


paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
paint myself


QJCC homepage