com.swfm.mica.widgets
Class MiAdjuster

java.lang.Object
  extended bycom.swfm.mica.core.MiPart
      extended bycom.swfm.mica.core.MiContainer
          extended bycom.swfm.mica.layouts.MiLayout
              extended bycom.swfm.mica.core.MiVisibleContainer
                  extended bycom.swfm.mica.widgets.MiWidget
                      extended bycom.swfm.mica.widgets.MiAdjuster
All Implemented Interfaces:
MiiActionTypes, MiiAdjuster, MiiAttributeTypes, MiiCopyable, MiiDragAndDropParticipant, MiiDraggable, MiiEventTypes, MiiLayout, MiiNames, MiiPropertyTypes, MiiTypes
Direct Known Subclasses:
MiSlider

public abstract class MiAdjuster
extends MiWidget
implements MiiAdjuster, MiiDraggable

This abstract class serves as a base class for 'adjuster' widgets like sliders, scrollbars, meters, etc.

Version:
%I% %G%
Author:
Michael L. Davis

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 com.swfm.mica.widgets.MiWidget
copy, doExport, getContents, getEnterKeyFocusAttributes, getEnterKeyFocusBackgroundColor, getEnterKeyFocusBorderLook, getEnterKeyFocusColor, getEnterKeyFocusStatusHelp, getInSensitiveAttributes, getInSensitiveBackgroundColor, getInSensitiveBorderLook, getInSensitiveColor, getInSensitiveStatusHelp, getKeyboardFocusAttributes, getKeyboardFocusBackgroundColor, getKeyboardFocusBorderLook, getKeyboardFocusColor, getKeyboardFocusStatusHelp, getMouseFocusAttributes, getMouseFocusBackgroundColor, getMouseFocusBorderLook, getMouseFocusColor, getMouseFocusStatusHelp, getNormalAttributes, getNormalBackgroundColor, getNormalBorderLook, getNormalColor, getNormalStatusHelp, getPropertyDescriptions, getPropertyValue, getRadioStateEnforcer, getSelectedAttributes, getSelectedBackgroundColor, getSelectedBorderLook, getSelectedColor, getSelectedStatusHelp, getToolkit, getValue, getWidgetAttributes, isAutoAttributesEnabled, isDesignTime, select, setAttributes, setAutoAttributesEnabled, setContents, setCurrentBackgroundColor, setCurrentColor, setEnterKeyFocus, setEnterKeyFocusAttributes, setEnterKeyFocusBackgroundColor, setEnterKeyFocusBorderLook, setEnterKeyFocusColor, setEnterKeyFocusStatusHelpMessage, setInSensitiveAttributes, setInSensitiveBackgroundColor, setInSensitiveBorderLook, setInSensitiveColor, setInSensitiveStatusHelpMessage, setKeyboardFocus, setKeyboardFocusAttributes, setKeyboardFocusBackgroundColor, setKeyboardFocusBorderLook, setKeyboardFocusColor, setKeyboardFocusStatusHelpMessage, setMouseFocus, setMouseFocusAttributes, setMouseFocusBackgroundColor, setMouseFocusBorderLook, setMouseFocusColor, setMouseFocusStatusHelpMessage, setNormalAttributes, setNormalBackgroundColor, setNormalBorderLook, setNormalColor, setNormalStatusHelpMessage, setPropertyValue, setPropertyValues, setRadioStateEnforcer, setSelectedAttributes, setSelectedBackgroundColor, setSelectedBorderLook, setSelectedColor, setSelectedStatusHelpMessage, setSensitive, setValue, setWidgetAttributes, setWidgetAttributes
 
Methods inherited from class com.swfm.mica.core.MiVisibleContainer
calcMinimumSize, calcPreferredSize, getContainerLayoutSpec, getDisplaysFocusBorder, getInnerBounds, getIntersectionWithLine, getOKToDrawOutsideInnerBounds, getShadowShape, getShape, getTotalMargins, getVisibleContainerAutomaticLayoutEnabled, invalidateArea, isShapeShrinkToFitEnabled, pick, setContainerLayoutSpec, setDisplaysFocusBorder, setMargins, setOKToDrawOutsideInnerBounds, setShape, setShape, setShapeShrinkToFitEnabled, setVisibleContainerAutomaticLayoutEnabled
 
Methods inherited from class com.swfm.mica.layouts.MiLayout
determinesPreferredAndMinimumSizes, getAlleyHSpacing, getAlleyMargins, getAlleyVSpacing, getCellMargins, getCellMargins, getElementHJustification, getElementHSizing, getElementVJustification, getElementVSizing, getInsetMargins, getInsetMargins, getLastElementJustification, getTarget, getUniqueElementIndex, getUniqueElementSizing, isEnabled, isIndependantOfTargetPosition, isScalingOfPartsWhenBoundsChangesHandledDuringLayout, layoutParts, makeCopy, setAlleyHSpacing, setAlleySpacing, setAlleyVSpacing, setCellMargins, setCellMargins, setElementHJustification, setElementHSizing, setElementJustification, setElementSizing, setElementVJustification, setElementVSizing, setEnabled, setInsetMargins, setInsetMargins, setLastElementJustification, setScalingOfPartsWhenBoundsChangesHandledDuringLayout, setTarget, setUniqueElementIndex, setUniqueElementSizing, toString
 
Methods inherited from class com.swfm.mica.core.MiContainer
appendPart, containsPart, deepCopy, doImport, getIndexOfPart, getKeepConnectionsBelowNodes, getNumberOfParts, getPart, getPart, getSupportedImportFormats, hasEventHandlers, hasValidCachedEventHandlerInfo, insertPart, invalidateCachedEventHandlerInfo, isContainerOf, isContainerOf, isContainerOfWithAttachments, pickDeepListContents, pickObject, removeAllParts, removePart, removePart, setKeepConnectionsBelowNodes, setPart, translate
 
Methods inherited from class com.swfm.mica.core.MiPart
_reCalcBounds, _render, _replaceBounds, _setContainer, _setDrawManager, _setValidatingLayout, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendAttachment, appendAttachment, appendCommandHandler, appendCommandHandler, appendCommandHandler, appendConnection, appendContainer, appendEventHandler, appendItem, appendPoint, appendPoint, applyCustomLookAndFeel, containsItem, containsOpaqueRectangles, copy, deleteAllConnections, deleteAllParts, deleteSelf, dispatchAction, dispatchAction, dispatchAction, dispatchActionRequest, dispatchActionRequest, dispatchActionRequest, dispatchEvent, draw, drawNow, drawNow, flip, flip, freeAccessLock, get1DShapeStrokeBackgroundColor, get1DShapeStrokesFilled, getAccessLock, getActionHandler, getActionsGenerated, getActionsLocallyGenerated, getActionsRequestedFromParts, getAfterRenderer, getAlphaCompositeRenderMode, getAnnotationPointManager, getAssociatedParts, getAttachment, getAttachment, getAttachmentMargins, getAttachments, getAttributeLockMask, getAttributePublicMask, getAttributes, getAttributeValue, getBackgroundColor, getBackgroundImage, getBackgroundRenderer, getBackgroundTile, getBalloonHelp, getBeforeRenderer, getBlackColor, getBorderHiliteColor, getBorderHiliteWidth, getBorderLook, getBorderRenderer, getBounds, getBounds, getCenter, getCenter, getCenterOfRotation, getCenterX, getCenterY, getColor, getConnection, getConnectionPointManager, getContainer, getContainerRequestedActions, getContainingEditor, getContainingWindow, getContextCursor, getContextMenu, getContextMenu, getControlPointManager, getCustomLookAndFeels, getCustomLookAndFeels, getDarkColor, getDeepConnection, getDeepConnection, getDeepConnections, getDeeplyInvalidateAreas, getDefaultAttributes, getDialogHelp, getDoubleBuffer, getDragAndDropBehavior, getDrawBounds, getDrawManager, getEventHandler, getEventHandler, getEventHandlerWithClass, getEventHandlingDisabledByContainer, getEventHandlingEnabled, getFlipped, getFont, getFontHorizontalJustification, getFontPointSize, getFontVerticalJustification, getHasBorderHilite, getHasShadow, getHeight, getID, getIncomingInvalidLayoutNotificationsEnabled, getIndexOfItem, getInnerBounds, getInvalidAreaNotificationsEnabled, getInvalidLayoutNotificationsEnabled, getItem, getItem, getKeyFocusTraversalGroup, getLayout, getLayoutManipulator, getLightColor, getLineEndSize, getLineEndsRenderer, getLineEndsSizeFnOfLineWidth, getLineEndStyle, getLineStartSize, getLineStartStyle, getLineStyle, getLineWidth, getLocallyRequestedEventTypes, getManipulator, getMargins, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumPickAreaSize, getMinimumSize, getMinimumWidth, getName, getNumberOfActionHandlers, getNumberOfAttachments, getNumberOfConnections, getNumberOfContainers, getNumberOfDeepConnections, getNumberOfEventHandlers, getNumberOfItems, getNumberOfPoints, getNumberOfResources, getOutgoingInvalidLayoutNotificationsEnabled, getPoint, getPoint, getPointEntryAngle, getPointExitAngle, getPointX, getPointY, getPreferredSize, getPrototypeManipulator, getRelativeLocation, getResource, getResourceName, getRootWindow, getRotation, getSelectionGraphics, getShadowColor, getShadowDirection, getShadowLength, getShadowRenderer, getShadowStyle, getSize, getSnapPointManager, getStatusHelp, getSupportedExportFormats, getThisOrPartHasInvalidArea, getToolHintHelp, getTotalNumberOfPartsCreated, getTransform, getTransparency, getValidatingLayout, getVisibilityAnimator, getWhiteColor, getWidth, getWriteMode, getXmax, getXmin, getXorColor, getYmax, getYmin, hasAttachment, hasAttribute, hasEnterKeyFocus, hasEventHandler, hasFixedAspectRatio, hasFixedHeight, hasFixedWidth, hasKeyboardFocus, hasMouseFocus, hasOverriddenMinimumSize, hasOverriddenPreferredSize, hasProperty, hasTotallyInvalidArea, hasValidLayout, insertActionHandler, insertActionHandler, insertActionHandler, insertConnection, insertContainer, insertEventHandler, insertItem, insertPoint, insertPoint, invalidateArea, invalidateLayout, isAcceptingEnterKeyFocus, isAcceptingKeyboardFocus, isAcceptingMouseFocus, isAcceptingTabKeys, isActionDispatchingEnabled, isConnectable, isConnectedTo, isCopyable, isCopyableAsPartOfCopyable, isDeletable, isDoubleBuffered, isDragAndDropSource, isDragAndDropTarget, isFilled, isFontBold, isFontItalic, isFontUnderlined, isHidden, isMovable, isOpaqueRectangle, isPickable, isPickableWhenTransparent, isPrintable, isSavable, isSelectable, isSelected, isSensitive, isShowing, isSnappable, isUngroupable, isValidConnectionDestination, isValidConnectionSource, isVisible, makeImageFromArea, makeLayoutManipulator, makeManipulator, optimizedInvalidateArea, optimizedInvalidateDrawBoundsArea, overrideAttributes, overrideEventHandlingDisabledByContainer, packLayout, pickDeepList, preRenderToDoubleBuffer, refreshBounds, refreshLookAndFeel, refreshLookAndFeel, removeActionHandler, removeActionHandler, removeActionHandlers, removeAllActionHandlers, removeAllAttachments, removeAllConnections, removeAllEventHandlers, removeAllItems, removeAllManipulators, removeAttachment, removeAttachment, removeCommandHandler, removeCommandHandler, removeConnection, removeConnection, removeContainer, removeContainer, removeEventHandler, removeFromAllContainers, removeItem, removeItem, removePoint, removeResource, removeSelf, replaceDrawBounds, replaceSelf, requestEnterKeyFocus, requestKeyboardFocus, rotate, rotate, rotateTo, scale, scale, scale, set1DShapeStrokeBackgroundColor, set1DShapeStrokesFilled, setAcceptingEnterKeyFocus, setAcceptingKeyboardFocus, setAcceptingMouseFocus, setAcceptingTabKeys, setActionDispatchingEnabled, setAfterRenderer, setAlphaCompositeRenderMode, setAnnotationPointManager, setAttachmentDrawnAfter, setAttachmentMargins, setAttachmentsVisibility, setAttributeLockMask, setAttributePublicMask, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundRenderer, setBackgroundTile, setBalloonHelp, setBalloonHelpMessage, setBeforeRenderer, setBlackColor, setBorderHiliteColor, setBorderHiliteWidth, setBorderLook, setBorderRenderer, setBounds, setBounds, setCenter, setCenter, setCenterX, setCenterY, setColor, setColor, setConnectable, setConnectionPointManager, setContextCursor, setContextMenu, setControlPointManager, setCopyable, setCopyableAsPartOfCopyable, setCustomLookAndFeels, setCustomLookAndFeels, setDarkColor, setDeeplyInvalidateAreas, setDefaultAttributes, setDeletable, setDialogHelp, setDialogHelpMessage, setDoubleBuffer, setDoubleBuffered, setDragAndDropBehavior, setEventHandlingEnabled, setFilled, setFixedAspectRatio, setFixedHeight, setFixedWidth, setFont, setFontBold, setFontHorizontalJustification, setFontItalic, setFontPointSize, setFontUnderlined, setFontVerticalJustification, setHasBorderHilite, setHasShadow, setHeight, setHidden, setIncomingInvalidLayoutNotificationsEnabled, setInvalidAreaNotificationsEnabled, setInvalidLayoutNotificationsEnabled, setIsDragAndDropSource, setIsDragAndDropTarget, setIsOpaqueRectangle, setItem, setKeyFocusTraversalGroup, setLayout, setLightColor, setLineEndSize, setLineEndSizeFnOfLineWidth, setLineEndsRenderer, setLineEndStyle, setLineStartSize, setLineStartStyle, setLineStyle, setLineWidth, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumPickAreaSize, setMinimumSize, setMinimumWidth, setMovable, setName, setNumberOfPoints, setOutgoingInvalidLayoutNotificationsEnabled, setPickable, setPickableWhenTransparent, setPoint, setPoint, setPreferredSize, setPrintable, setPrototypeManipulator, setResource, setSavable, setSelectable, setSelectionGraphics, setShadowColor, setShadowDirection, setShadowLength, setShadowRenderer, setShadowStyle, setSize, setSize, setSnappable, setSnapPointManager, setStatusHelp, setStatusHelpMessage, setSupportedImportFormats, setToolHintHelp, setToolHintMessage, setTransparency, setTransparency, setUngroupable, setVisibilityAnimator, setVisible, setWhiteColor, setWidth, setWriteMode, setXmax, setXmin, setXorColor, setYmax, setYmin, supportsImportOfSpecificInstance, translate, translate, translatePoint, validateLayout, validatePropertyValue, waitUntilRedrawn
 
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

MiAdjuster

public MiAdjuster()
Constructs a new MiAdjuster.

Method Detail

setMinimumValue

public void setMinimumValue(double value)
Sets the minimum value of this adjuster widget.

Specified by:
setMinimumValue in interface MiiAdjuster
Parameters:
value - the minimum value
See Also:
setCurrentValue(double)

getMinimumValue

public double getMinimumValue()
Gets the minimum value of this adjuster widget.

Specified by:
getMinimumValue in interface MiiAdjuster
Returns:
the minimum value

setMaximumValue

public void setMaximumValue(double value)
Sets the maximum value of this adjuster widget.

Specified by:
setMaximumValue in interface MiiAdjuster
Parameters:
value - the maximum value
See Also:
setCurrentValue(double)

getMaximumValue

public double getMaximumValue()
Gets the maximum value of this adjuster widget.

Specified by:
getMaximumValue in interface MiiAdjuster
Returns:
the maximum value

setCurrentValue

public void setCurrentValue(double value)
Sets the value of this adjuster widget. The value should be between the minimum and maximum values.

Specified by:
setCurrentValue in interface MiiAdjuster
Parameters:
value - the current value
See Also:
setMinimumValue(double), setMaximumValue(double), getCurrentValue(), setNormalizedValue(double)

getCurrentValue

public double getCurrentValue()
Gets the value of this adjuster widget. The value is be between the minimum and maximum values.

Specified by:
getCurrentValue in interface MiiAdjuster
Returns:
the current value
See Also:
setCurrentValue(double)

setNormalizedValue

public void setNormalizedValue(double value)
Sets the value of this adjuster widget. The value should be between 0.0 and 1.0 inclusive.

Specified by:
setNormalizedValue in interface MiiAdjuster
Parameters:
value - the normalized value
See Also:
setCurrentValue(double)

getNormalizedValue

public double getNormalizedValue()
Gets the value of this adjuster widget. The value is be between 0.0 and 1.0 inclusive.

Specified by:
getNormalizedValue in interface MiiAdjuster
Returns:
the normalized value
See Also:
getCurrentValue()

setUnitIncrement

public void setUnitIncrement(double amount)
Sets the normalized amount of the unit increment for this widget.

Specified by:
setUnitIncrement in interface MiiAdjuster
Parameters:
amount - the amount (between 0.0 and 1.0)

getUnitIncrement

public double getUnitIncrement()
Gets the normalized amount of the unit increment for this widget.

Returns:
the amount (between 0.0 and 1.0)

setChunkIncrement

public void setChunkIncrement(double amount)
Sets the normalized amount of the chunk increment for this widget.

Parameters:
amount - the amount (between 0.0 and 1.0)

getChunkIncrement

public double getChunkIncrement()
Gets the normalized amount of the chunk increment for this widget.

Returns:
the amount (between 0.0 and 1.0)

setPageIncrement

public void setPageIncrement(double amount)
Sets the normalized amount of the page increment for this widget.

Parameters:
amount - the amount (between 0.0 and 1.0)

getPageIncrement

public double getPageIncrement()
Gets the normalized amount of the page increment for this widget.

Returns:
the amount (between 0.0 and 1.0)

increaseOneUnit

public void increaseOneUnit()
Increases the value of this adjuster widget by one unit.

Specified by:
increaseOneUnit in interface MiiAdjuster
See Also:
setUnitIncrement(double)

decreaseOneUnit

public void decreaseOneUnit()
Decreases the value of this adjuster widget by one unit.

Specified by:
decreaseOneUnit in interface MiiAdjuster
See Also:
setUnitIncrement(double)

increaseOneChunk

public void increaseOneChunk()
Increases the value of this adjuster widget by one chunk.

Specified by:
increaseOneChunk in interface MiiAdjuster
See Also:
setUnitIncrement(double)

decreaseOneChunk

public void decreaseOneChunk()
Decreases the value of this adjuster widget by one chunk.

Specified by:
decreaseOneChunk in interface MiiAdjuster
See Also:
setUnitIncrement(double)

moveOneChunkTowardsValue

public void moveOneChunkTowardsValue(double value)
Moves the value of this adjuster widget by one chunk towards the given value. Moves by less than the chunk if the value is closer than the size of a chunk and sets the normalizedVvalue to the given value. Does not move if the normalizedVvalue == value.

See Also:
setUnitIncrement(double)

increaseOnePage

public void increaseOnePage()
Increases the value of this adjuster widget by one page.

Specified by:
increaseOnePage in interface MiiAdjuster
See Also:
setUnitIncrement(double)

decreaseOnePage

public void decreaseOnePage()
Decreases the value of this adjuster widget by one page.

Specified by:
decreaseOnePage in interface MiiAdjuster
See Also:
setUnitIncrement(double)

increaseToMaximum

public void increaseToMaximum()
Increases the value of this adjuster widget to the maximum amount.

Specified by:
increaseToMaximum in interface MiiAdjuster

decreaseToMinimum

public void decreaseToMinimum()
Decreases the value of this adjuster widget to the maximum amount.

Specified by:
decreaseToMinimum in interface MiiAdjuster

setOrientationOfGeneratedMessages

public void setOrientationOfGeneratedMessages(int orient)
Sets the type of events/methods to send/call. If orient is Mi_VERTICAL the generated messages will be like MiEvent.Mi_SCROLL_PAGE_UP_EVENT else if orient is Mi_HORIZONTAL the generated messages will be like MiEvent.Mi_SCROLL_PAGE_RIGHT_EVENT.

Parameters:
orient - Mi_VERTICAL or Mi_HORIZONTAL

getOrientationOfGeneratedMessages

public int getOrientationOfGeneratedMessages()
Gets the type of events/methods to send/call.

Returns:
either Mi_VERTICAL or Mi_HORIZONTAL

setObserver

public void setObserver(MiPart observer)
Sets the observer of this Adjuster widget. If the observer is null (the default) then events are sent to this widget. Else if the observer is not an instance of MiiScrollableData then events are sent to the observer. Else if the observer is an instance of MiiScrollableData then the MiiScrollableData methods of the observer are called and no events are sent.

Parameters:
observer - the observer

setScrollable

public void setScrollable(MiiScrollableData scrollable)

getObserver

public MiPart getObserver()
Sets the observer of this Adjuster widget.

Returns:
the observer

setGenerateAbsolutePositionsOnly

public 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. The absolute position events are: MiEvent.Mi_SCROLL_TO_VERTICAL_LOCATION_EVENT MiEvent.Mi_SCROLL_TO_HORIZONTAL_LOCATION_EVENT The more specific events are: MiEvent.Mi_SCROLL_TO_VERTICAL_LOCATION_EVENT MiEvent.Mi_SCROLL_LINE_UP_EVENT; MiEvent.Mi_SCROLL_LINE_DOWN_EVENT; MiEvent.Mi_SCROLL_CHUNK_UP_EVENT; MiEvent.Mi_SCROLL_CHUNK_DOWN_EVENT; MiEvent.Mi_SCROLL_PAGE_UP_EVENT; MiEvent.Mi_SCROLL_PAGE_DOWN_EVENT; MiEvent.Mi_SCROLL_TO_TOP_EVENT; MiEvent.Mi_SCROLL_TO_BOTTOM_EVENT; MiEvent.Mi_SCROLL_TO_HORIZONTAL_LOCATION_EVENT MiEvent.Mi_SCROLL_LINE_RIGHT_EVENT; MiEvent.Mi_SCROLL_LINE_LEFT_EVENT; MiEvent.Mi_SCROLL_CHUNK_RIGHT_EVENT; MiEvent.Mi_SCROLL_CHUNK_LEFT_EVENT; MiEvent.Mi_SCROLL_PAGE_RIGHT_EVENT; MiEvent.Mi_SCROLL_PAGE_LEFT_EVENT; MiEvent.Mi_SCROLL_TO_RIGHTSIDE_EVENT; MiEvent.Mi_SCROLL_TO_LEFTSIDE_EVENT;

Parameters:
flag - true if only position events are sent.

getGenerateAbsolutePositionsOnly

public 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.

Returns:
true if only position events are sent.

pickup

public 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.

Specified by:
pickup in interface MiiDraggable
Parameters:
event - the user's event
Returns:
the event is consumed

drag

public int drag(MiEvent event)
Handles the user's dragging the associated 'thumb' of this widget in order to change the value.

Specified by:
drag in interface MiiDraggable
Parameters:
event - the user's event
Returns:
the event is consumed

drop

public int drop(MiEvent event)
Handles the user's dropping the associated 'thumb' of this widget in order to stop changing the value.

Specified by:
drop in interface MiiDraggable
Parameters:
event - the user's event
Returns:
the event is consumed

setNormalizedPositionOfThumb

public abstract void setNormalizedPositionOfThumb(double normalizedValue)
Sets the position of the associated 'thumb' of this widget and updates the normalized value.

Parameters:
normalizedValue - the relative position.