|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
visad.util.SliderLabel
A label that can be attached to any slider showing the current value, and optionally, the bounds.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
(package private) Dimension |
maxSize
|
(package private) Dimension |
minSize
widget sizes |
(package private) Dimension |
prefSize
|
| 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.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SliderLabel(Slider slider)
Construct a SliderLabel from the given slider |
|
SliderLabel(Slider slider,
Color background,
Color text)
Construct a SliderLabel with the given background and text colors |
|
SliderLabel(Slider slider,
String label)
Construct a slider label with the given slider and label |
|
SliderLabel(Slider slider,
String label,
boolean rangeVisible)
Construct a slider label with the given slider, label and range visibility |
|
SliderLabel(Slider slider,
String label,
boolean rangeVisible,
Color background,
Color text)
Construct a slider label with the given slider, label and range visibility |
|
SliderLabel(Slider slider,
String label,
Color background,
Color text)
Construct a SliderLabel with the given label, background and text colors |
|
| Method Summary | |
Dimension |
getMaximumSize()
Return the maximum size of the SliderLabel |
Dimension |
getMinimumSize()
Return the minimum size of the SliderLabel |
Dimension |
getPreferredSize()
Return the preferred sise of the SliderLabel |
static void |
main(String[] argc)
for debugging purposes |
void |
paint(Graphics g)
Draw the panel |
void |
setMaximumSize(Dimension dim)
Set the preferred size of the SliderLabel |
void |
setMinimumSize(Dimension dim)
Set the preferred size of the SliderLabel |
void |
setPreferredSize(Dimension dim)
Set the preferred size of the SliderLabel |
void |
sliderChanged(SliderChangeEvent e)
Listen for slider change events |
void |
update(Graphics g)
Update the panel |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
Dimension minSize
Dimension prefSize
Dimension maxSize
| Constructor Detail |
public SliderLabel(Slider slider)
public SliderLabel(Slider slider,
Color background,
Color text)
public SliderLabel(Slider slider,
String label,
Color background,
Color text)
public SliderLabel(Slider slider,
String label)
public SliderLabel(Slider slider,
String label,
boolean rangeVisible)
public SliderLabel(Slider slider,
String label,
boolean rangeVisible,
Color background,
Color text)
| Method Detail |
public void sliderChanged(SliderChangeEvent e)
sliderChanged in interface SliderChangeListenerpublic void update(Graphics g)
public void paint(Graphics g)
public Dimension getPreferredSize()
public void setPreferredSize(Dimension dim)
public Dimension getMaximumSize()
public void setMaximumSize(Dimension dim)
public Dimension getMinimumSize()
public void setMinimumSize(Dimension dim)
public static void main(String[] argc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||