biz.chitec.quarterback.swing
Class BasicSimpleIndicatorUI
java.lang.Object
javax.swing.plaf.ComponentUI
biz.chitec.quarterback.swing.SimpleIndicatorUI
biz.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
|
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 |
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
BasicSimpleIndicatorUI
public BasicSimpleIndicatorUI()
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