|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BSlider
public class BSlider
Displays a track with a little frob somewhere along its length that allows a user to select a smoothly varying value between two bounds.
| Field Summary | |
|---|---|
protected BIcon[] |
_frobs
|
protected BoundedRangeModel |
_model
|
protected int |
_orient
|
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Fields inherited from interface com.jmex.bui.BConstants |
|---|
BOTTOM, CENTER, DEFAULT_SIZE, DEFAULT_SPACING, GLOW, HORIZONTAL, LEFT, NORMAL, OUTLINE, OVERLAPPING, PLAIN, RIGHT, SHADOW, TOP, VERTICAL |
| Constructor Summary | |
|---|---|
BSlider(int orient,
BoundedRangeModel model)
Creates a slider with the specified orientation and range model. |
|
BSlider(int orient,
int min,
int max,
int value)
Creates a slider with the specified orientation, range and value. |
|
| Method Summary | |
|---|---|
protected Dimension |
computePreferredSize(int whint,
int hhint)
Computes and returns a preferred size for this component. |
protected void |
configureStyle(BStyleSheet style)
Instructs this component to fetch its style configuration from the supplied style sheet. |
boolean |
dispatchEvent(BEvent event)
Instructs this component to process the supplied event. |
protected String |
getDefaultStyleClass()
Returns the default stylesheet class to be used for all instances of this component. |
protected BIcon |
getFrob()
|
BoundedRangeModel |
getModel()
Returns a reference to the slider's range model. |
protected void |
renderComponent(Renderer renderer)
Renders any custom bits for this component. |
protected void |
updateValue(int mx,
int my)
|
protected void |
wasAdded()
This method is called when we are added to a hierarchy that is connected to a top-level window (at which point we can rely on having a look and feel and can set ourselves up). |
protected void |
wasRemoved()
This method is called when we are removed from a hierarchy that is connected to a top-level window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _orient
protected BoundedRangeModel _model
protected BIcon[] _frobs
| Constructor Detail |
|---|
public BSlider(int orient,
int min,
int max,
int value)
orient - either BConstants.HORIZONTAL or BConstants.VERTICAL.
public BSlider(int orient,
BoundedRangeModel model)
orient - either BConstants.HORIZONTAL or BConstants.VERTICAL.| Method Detail |
|---|
public BoundedRangeModel getModel()
protected String getDefaultStyleClass()
BComponent
getDefaultStyleClass in class BComponentprotected void configureStyle(BStyleSheet style)
BComponent
configureStyle in class BComponentprotected void wasAdded()
BComponent
wasAdded in class BComponentprotected void wasRemoved()
BComponentBComponent.wasAdded(), this is a fine place
to do so.
wasRemoved in class BComponent
protected Dimension computePreferredSize(int whint,
int hhint)
BComponent
computePreferredSize in class BComponentpublic boolean dispatchEvent(BEvent event)
BComponentsuper.dispatchEvent for events that they did not "consume".
dispatchEvent in class BComponentprotected void renderComponent(Renderer renderer)
BComponent
renderComponent in class BComponent
protected void updateValue(int mx,
int my)
protected BIcon getFrob()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||