|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiContainer
com.swfm.mica.layouts.MiLayout
com.swfm.mica.core.MiVisibleContainer
com.swfm.mica.widgets.MiWidget
com.swfm.mica.widgets.MiAdjuster
This abstract class serves as a base class for 'adjuster' widgets like sliders, scrollbars, meters, etc.
| Field Summary |
| Constructor Summary | |
MiAdjuster()
Constructs a new MiAdjuster. |
|
| Method Summary | |
void |
decreaseOneChunk()
Decreases the value of this adjuster widget by one chunk. |
void |
decreaseOnePage()
Decreases the value of this adjuster widget by one page. |
void |
decreaseOneUnit()
Decreases the value of this adjuster widget by one unit. |
void |
decreaseToMinimum()
Decreases the value of this adjuster widget to the maximum amount. |
int |
drag(MiEvent event)
Handles the user's dragging the associated 'thumb' of this widget in order to change the value. |
int |
drop(MiEvent event)
Handles the user's dropping the associated 'thumb' of this widget in order to stop changing the value. |
double |
getChunkIncrement()
Gets the normalized amount of the chunk increment for this widget. |
double |
getCurrentValue()
Gets the value of this adjuster widget. |
boolean |
getGenerateAbsolutePositionsOnly()
Gets whether only absolute position events/methods are sent/called to the observer or whether more specific events/methods are sent/called instead. |
double |
getMaximumValue()
Gets the maximum value of this adjuster widget. |
double |
getMinimumValue()
Gets the minimum value of this adjuster widget. |
double |
getNormalizedValue()
Gets the value of this adjuster widget. |
MiPart |
getObserver()
Sets the observer of this Adjuster widget. |
int |
getOrientationOfGeneratedMessages()
Gets the type of events/methods to send/call. |
double |
getPageIncrement()
Gets the normalized amount of the page increment for this widget. |
double |
getUnitIncrement()
Gets the normalized amount of the unit increment for this widget. |
void |
increaseOneChunk()
Increases the value of this adjuster widget by one chunk. |
void |
increaseOnePage()
Increases the value of this adjuster widget by one page. |
void |
increaseOneUnit()
Increases the value of this adjuster widget by one unit. |
void |
increaseToMaximum()
Increases the value of this adjuster widget to the maximum amount. |
void |
moveOneChunkTowardsValue(double value)
Moves the value of this adjuster widget by one chunk towards the given value. |
int |
pickup(MiEvent event)
Handles the user's picking up the associated 'thumb' of this widget with presumed intent to move the thumb in order to change the value. |
void |
setChunkIncrement(double amount)
Sets the normalized amount of the chunk increment for this widget. |
void |
setCurrentValue(double value)
Sets the value of this adjuster widget. |
void |
setGenerateAbsolutePositionsOnly(boolean flag)
Sets whether only absolute position events/methods are sent/called to the observer or whether more specific events/methods are sent/called instead. |
void |
setMaximumValue(double value)
Sets the maximum value of this adjuster widget. |
void |
setMinimumValue(double value)
Sets the minimum value of this adjuster widget. |
abstract void |
setNormalizedPositionOfThumb(double normalizedValue)
Sets the position of the associated 'thumb' of this widget and updates the normalized value. |
void |
setNormalizedValue(double value)
Sets the value of this adjuster widget. |
void |
setObserver(MiPart observer)
Sets the observer of this Adjuster widget. |
void |
setOrientationOfGeneratedMessages(int orient)
Sets the type of events/methods to send/call. |
void |
setPageIncrement(double amount)
Sets the normalized amount of the page increment for this widget. |
void |
setScrollable(MiiScrollableData scrollable)
|
void |
setUnitIncrement(double amount)
Sets the normalized amount of the unit increment for this widget. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.swfm.mica.widgets.MiiAdjuster |
adjustValueFromVector, moveOneChunkTowardsLocation, setValueFromLocation |
| Methods inherited from interface com.swfm.mica.layouts.MiiLayout |
getMinimumSize, getPreferredSize, invalidateLayout |
| Constructor Detail |
public MiAdjuster()
| Method Detail |
public void setMinimumValue(double value)
setMinimumValue in interface MiiAdjustervalue - the minimum valuesetCurrentValue(double)public double getMinimumValue()
getMinimumValue in interface MiiAdjusterpublic void setMaximumValue(double value)
setMaximumValue in interface MiiAdjustervalue - the maximum valuesetCurrentValue(double)public double getMaximumValue()
getMaximumValue in interface MiiAdjusterpublic void setCurrentValue(double value)
setCurrentValue in interface MiiAdjustervalue - the current valuesetMinimumValue(double),
setMaximumValue(double),
getCurrentValue(),
setNormalizedValue(double)public double getCurrentValue()
getCurrentValue in interface MiiAdjustersetCurrentValue(double)public void setNormalizedValue(double value)
setNormalizedValue in interface MiiAdjustervalue - the normalized valuesetCurrentValue(double)public double getNormalizedValue()
getNormalizedValue in interface MiiAdjustergetCurrentValue()public void setUnitIncrement(double amount)
setUnitIncrement in interface MiiAdjusteramount - the amount (between 0.0 and 1.0)public double getUnitIncrement()
public void setChunkIncrement(double amount)
amount - the amount (between 0.0 and 1.0)public double getChunkIncrement()
public void setPageIncrement(double amount)
amount - the amount (between 0.0 and 1.0)public double getPageIncrement()
public void increaseOneUnit()
increaseOneUnit in interface MiiAdjustersetUnitIncrement(double)public void decreaseOneUnit()
decreaseOneUnit in interface MiiAdjustersetUnitIncrement(double)public void increaseOneChunk()
increaseOneChunk in interface MiiAdjustersetUnitIncrement(double)public void decreaseOneChunk()
decreaseOneChunk in interface MiiAdjustersetUnitIncrement(double)public void moveOneChunkTowardsValue(double value)
setUnitIncrement(double)public void increaseOnePage()
increaseOnePage in interface MiiAdjustersetUnitIncrement(double)public void decreaseOnePage()
decreaseOnePage in interface MiiAdjustersetUnitIncrement(double)public void increaseToMaximum()
increaseToMaximum in interface MiiAdjusterpublic void decreaseToMinimum()
decreaseToMinimum in interface MiiAdjusterpublic void setOrientationOfGeneratedMessages(int orient)
orient - Mi_VERTICAL or Mi_HORIZONTALpublic int getOrientationOfGeneratedMessages()
public void setObserver(MiPart observer)
observer - the observerpublic void setScrollable(MiiScrollableData scrollable)
public MiPart getObserver()
public void setGenerateAbsolutePositionsOnly(boolean flag)
flag - true if only position events are
sent.public boolean getGenerateAbsolutePositionsOnly()
public int pickup(MiEvent event)
pickup in interface MiiDraggableevent - the user's event
public int drag(MiEvent event)
drag in interface MiiDraggableevent - the user's event
public int drop(MiEvent event)
drop in interface MiiDraggableevent - the user's event
public abstract void setNormalizedPositionOfThumb(double normalizedValue)
normalizedValue - the relative position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||