|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISliderData
Interface for data shared between Slider and
SliderWindow.
| Field Summary | |
|---|---|
static int |
COMPRESSED
Slider is shown as a Button with a Title and an Icon. |
static int |
DONT_SHOW_FIRST_OR_LAST_TICK
Don't show the starting or ending tick marks. |
static int |
JUSTIFY_BOTTOM
Draw the indicator against the bottom of the indicator frame. |
static int |
JUSTIFY_CENTER
Draw the indicator centered in the frame. |
static int |
JUSTIFY_TOP
Draw the indicator against the top of the indicator frame. |
static int |
LEFT_TO_RIGHT
Slider indicator moves from left to right. |
static int |
RIGHT_TO_LEFT
Slider indicator moves from right to left. |
static int |
SHOW_FIRST_AND_LAST_TICK
Show both the starting and ending ticks. |
static int |
SHOW_FIRST_TICK
Show the starting tick but not the ending tick. |
static int |
SHOW_LAST_TICK
Show the ending tick, but not the starting tick. |
static int |
TICK_MARKS_AUTO
Show tick marks (scale) on indicator when the range of values exceeds a threshold. |
static int |
TICK_MARKS_OFF
Never show tick marks (scale) on indicator. |
static int |
TICK_MARKS_ON
Always show tick marks (scale) on indicator. |
static int |
UNCOMPRESSED
Slider is shown as a Button with a Title and an inactive slider control. |
static int |
WINDOW_ONLY
Slider is shown as a Window with a Title and an active Slider control. |
| Method Summary | |
|---|---|
Bitmap[] |
getBitmaps()
Get the array of bitmaps associated with the Slider value. |
String |
getDescription()
Get the description text for the Slider. |
int |
getDirection()
Get the direction for the indicator. |
boolean |
getHasFrame()
Gets the display of the standard frame for the slider. |
boolean |
getHasInnerFrame()
Gets the display of the inner frame for the slider. |
boolean |
getHasThumb()
Gets the display of the thumb. |
int |
getHasTickMarks()
Gets whether tick marks are displayed on the indicator. |
boolean |
getIndicateSingleValue()
Gets how values should be indicated on the Slider. |
int |
getIndicatorJustification()
Gets the justification of the indicator. |
int |
getIndicatorMargin()
Gets the margin between the frame and the indicator. |
String |
getLeftLabel()
Get the left label for the Slider. |
int |
getMaxValue()
Get the maximum value for the Slider. |
int |
getMinValue()
Get the minimum value for the Slider. |
String |
getRightLabel()
Get the right label for the Slider. |
int |
getShowEndTicks()
Gets whether start and end tick marks are shown on the indicator. |
int |
getSliderPortionWidth()
Get the width in pixels of the indicator portion of the Slider. |
int |
getSliderType()
Get the type of the Slider. |
String |
getTitle()
Get the title associated with the Slider. |
int |
getValue()
Get the value for the Slider. |
void |
setBitmaps(Bitmap[] inBitmaps)
Specify an array of bitmaps associated with the Slider value. |
void |
setDescription(String text)
Specify a description to be displayed beneath the Slider title and indicator. |
void |
setDirection(int direction)
Sets the direction for the indicator. |
void |
setHasFrame(boolean hasFrame)
Sets the display of the standard frame for the slider. |
void |
setHasInnerFrame(boolean hasInnerFrame)
Sets the display of the inner frame for the slider. |
void |
setHasThumb(boolean hasThumb)
Sets the display of the thumb at the end of the indicator. |
void |
setHasTickMarks(int tickMarks)
Sets the display of tick marks on the slider. |
void |
setIndicateSingleValue(boolean indicateSingleValue)
Sets how values should be indicated on the Slider. |
void |
setIndicatorJustification(int indicatorJustification)
Sets the justification of the indicator. |
void |
setIndicatorMargin(int indicatorMargin)
Sets the margin between the frame and the indicator. |
void |
setLabels(String leftLabel,
String rightLabel)
Specify text labels to appear to the right and left of the Slider indicator. |
void |
setMaxValue(int inMaxValue)
Set the maximum value for the Slider. |
void |
setMinValue(int inMinValue)
Set the minimum value for the Slider. |
void |
setShowEndTicks(int showEndTicks)
Sets the display of start and ending tick marks on the slider. |
void |
setSliderPortionWidth(int inWidth)
Set the width in pixels of the indicator portion of the Slider. |
void |
setSliderType(int type)
Set the type of the Slider. |
void |
setTitle(String inTitle)
Set the title associated with the Slider. |
void |
setValue(int inValue)
Set the value for the Slider. |
| Field Detail |
|---|
static final int COMPRESSED
static final int UNCOMPRESSED
static final int WINDOW_ONLY
static final int LEFT_TO_RIGHT
static final int RIGHT_TO_LEFT
static final int TICK_MARKS_AUTO
static final int TICK_MARKS_ON
static final int TICK_MARKS_OFF
static final int DONT_SHOW_FIRST_OR_LAST_TICK
static final int SHOW_FIRST_TICK
static final int SHOW_LAST_TICK
static final int SHOW_FIRST_AND_LAST_TICK
static final int JUSTIFY_TOP
static final int JUSTIFY_CENTER
static final int JUSTIFY_BOTTOM
| Method Detail |
|---|
void setTitle(String inTitle)
inTitle - String representing the title.void setValue(int inValue)
inValue - int specifying the new value.void setMinValue(int inMinValue)
inMinValue - int specifying the minimum value.void setMaxValue(int inMaxValue)
inMaxValue - int specifying the max value.void setSliderPortionWidth(int inWidth)
inWidth - int specifiying width in pixels of the indicator portion.void setSliderType(int type)
type - int speficying the type. Valid values are
UNCOMPRESSED, COMPRESSED, WINDOW_ONLY.void setBitmaps(Bitmap[] inBitmaps)
inBitmaps - bitmap[] specifying the bitmap to be used for each value (max - min) of the Slider.void setDescription(String text)
COMPRESSED.
text - String specifying the description.
void setLabels(String leftLabel,
String rightLabel)
leftLabel - null-ok; String specifying label to appear between Slider title and indicator.rightLabel - null-ok; String specifying label to appears to the right of Slider indicator.void setDirection(int direction)
direction - int specifying the direction. Valid values are
LEFT_TO_RIGHT and RIGHT_TO_LEFT.void setHasTickMarks(int tickMarks)
tickMarks - int specifying how to display tick marks. Valid values are
TICK_MARKS_AUTO, TICK_MARKS_ON and TICK_MARKS_OFF.void setShowEndTicks(int showEndTicks)
showEndTicks - int specifying whether to show start and end tick marks. Valid values are
DONT_SHOW_FIRST_OR_LAST_TICK, SHOW_FIRST_TICK,
SHOW_LAST_TICK and SHOW_FIRST_AND_LAST_TICK.void setHasFrame(boolean hasFrame)
hasFrame - true if you want the frame.void setHasInnerFrame(boolean hasInnerFrame)
hasInnerFrame - true if you want the inner frame.void setHasThumb(boolean hasThumb)
hasThumb - true if you want the thumb.void setIndicatorMargin(int indicatorMargin)
indicatorMargin - int specifying the margin in pixels.void setIndicatorJustification(int indicatorJustification)
indicatorJustification - int specifying desired justification. Valid values are
JUSTIFY_TOP, JUSTIFY_BOTTOM and JUSTIFY_CENTERvoid setIndicateSingleValue(boolean indicateSingleValue)
indicateSingleValue - true if Slider should only indicate a single value.String getTitle()
int getValue()
int getMinValue()
int getMaxValue()
int getSliderPortionWidth()
int getSliderType()
UNCOMPRESSED, COMPRESSED, WINDOW_ONLY.Bitmap[] getBitmaps()
String getDescription()
COMPRESSED.
String getLeftLabel()
String getRightLabel()
int getDirection()
LEFT_TO_RIGHT and RIGHT_TO_LEFT.int getHasTickMarks()
TICK_MARKS_AUTO, TICK_MARKS_ON and TICK_MARKS_OFF.int getShowEndTicks()
DONT_SHOW_FIRST_OR_LAST_TICK, SHOW_FIRST_TICK,
SHOW_LAST_TICK and SHOW_FIRST_AND_LAST_TICK.boolean getHasFrame()
boolean getHasInnerFrame()
boolean getHasThumb()
int getIndicatorMargin()
int getIndicatorJustification()
JUSTIFY_TOP, JUSTIFY_BOTTOM and JUSTIFY_CENTERboolean getIndicateSingleValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||