|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--kiwi.ui.KPanel | +--kiwi.ui.Thermometer
This class represents a combination progress meter / busy slider.
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Thermometer()
Construct a new Thermometer with a default foreground color
(a dark blue). |
|
Thermometer(Color color)
Construct a new Thermometer with the given foreground color. |
Method Summary | |
Dimension |
getMinimumSize()
Get the minimum size of the component. |
Dimension |
getPreferredSize()
Get the preferred size of the component. |
void |
paint(Graphics gc)
Paint the component. |
void |
setPercent(int percent)
Set a percentage on the meter. |
void |
setSize(int w,
int h)
Set the size of the component. |
void |
start()
Start the busy slider. |
void |
stop()
Stop the busy slider. |
Methods inherited from class kiwi.ui.KPanel |
getComponentByName,
paintComponent,
setOpaque,
setTexture |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Thermometer()
Thermometer
with a default foreground color
(a dark blue).public Thermometer(Color color)
Thermometer
with the given foreground color.color
- The foreground color.Method Detail |
public void setPercent(int percent)
percent
- The new percentage value. If the value is out of range,
it is clipped.public void setSize(int w, int h)
public Dimension getPreferredSize()
public Dimension getMinimumSize()
public void paint(Graphics gc)
public void start()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |