|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel visad.util.SliderLabel
public class SliderLabel
A label that can be attached to any slider showing the current value, and optionally, the bounds.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 |
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 |
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 SliderChangeListener
public void update(Graphics g)
update
in class JComponent
public void paint(Graphics g)
paint
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public void setPreferredSize(Dimension dim)
setPreferredSize
in class JComponent
public Dimension getMaximumSize()
getMaximumSize
in class JComponent
public void setMaximumSize(Dimension dim)
setMaximumSize
in class JComponent
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public void setMinimumSize(Dimension dim)
setMinimumSize
in class JComponent
public static void main(String[] argc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |