public abstract class GaugeScale extends ViewGroup
ViewGroup.LayoutParams, ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener
View.AccessibilityDelegate, View.BaseSavedState, View.DragShadowBuilder, View.MeasureSpec, View.OnApplyWindowInsetsListener, View.OnAttachStateChangeListener, View.OnClickListener, View.OnContextClickListener, View.OnCreateContextMenuListener, View.OnDragListener, View.OnFocusChangeListener, View.OnGenericMotionListener, View.OnHoverListener, View.OnKeyListener, View.OnLayoutChangeListener, View.OnLongClickListener, View.OnScrollChangeListener, View.OnSystemUiVisibilityChangeListener, View.OnTouchListener
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description |
---|
GaugeScale(Context context)
Creates an instance of the
GaugeScale class. |
GaugeScale(Context context,
AttributeSet attrs)
Creates an instance of the
GaugeScale class. |
GaugeScale(Context context,
AttributeSet attrs,
int defStyleAttr)
Creates an instance of the
GaugeScale class. |
Modifier and Type | Method and Description |
---|---|
void |
addIndicator(GaugeIndicator indicator)
Add an indicator to the scale.
|
void |
addIndicator(int index,
GaugeIndicator indicator)
Add an indicator at sepcific index.
|
void |
animateIndicators()
Animates all indicators that belong to this scale.
|
int |
getFillColor()
Returns an integer that represents the fill color of the scale.
|
Paint |
getFillPaint()
Returns the fill paint of the scale.
|
ArrayList<GaugeIndicator> |
getIndicators()
Returns array that contains the indicators that are added to the scale.
|
int |
getLabelsColor()
Returns an int value that represents the color of the labels.
|
int |
getLabelsCount()
Returns the count of the labels.
|
String |
getLabelsFormat()
Returns the labels format.
|
GaugeScaleLabelsLayoutMode |
getLabelsLayoutMode()
Returns the layout mode of the labels.
|
float |
getLabelsOffset()
Returns the offset of the labels.
|
Paint |
getLabelsPaint()
Returns the paint used to draw the labels.
|
float |
getLocation(float value)
Returns the location of a value on the scale.
|
int |
getMajorTicksCount()
Returns the count of the major ticks.
|
int |
getMajorTicksFillColor()
Returns an int value that represents the color that will be used to fill the major ticks.
|
Paint |
getMajorTicksFillPaint()
Returns the paint used to fill the major ticks.
|
float |
getMajorTicksLength()
Returns the width of the major ticks.
|
int |
getMajorTicksStrokeColor()
Returns an int value that represents the color that will be used to stroke the major ticks.
|
Paint |
getMajorTicksStrokePaint()
Returns the paint used to stroke the major ticks.
|
float |
getMajorTicksWidth()
Returns the height of the major ticks.
|
float |
getMaximum()
Returns the maximum value of the scale.
|
float |
getMinimum()
Returns the minimum value of the scale.
|
int |
getMinorTicksCount()
Returns the count of the minor ticks.
|
int |
getMinorTicksFillColor()
Returns an int value that represents the color that will be used to fill the minor ticks.
|
Paint |
getMinorTicksFillPaint()
Returns the paint used to fill the minor ticks.
|
float |
getMinorTicksLength()
Returns the width of the minor ticks.
|
int |
getMinorTicksStrokeColor()
Returns an int value that represents the color that will be used to stroke the minor ticks.
|
Paint |
getMinorTicksStrokePaint()
Returns the paint used to stroke the minor ticks.
|
float |
getMinorTicksWidth()
Returns the height of the minor ticks.
|
float |
getOnScreenValue(float value)
The physical location of a value.
|
RadGaugeView |
getOwner()
Returns the
|
int |
getStrokeColor()
Returns an int value that represents the stroke color of the scale.
|
Paint |
getStrokePaint()
Returns the stroke paint of the scale.
|
float |
getStrokeWidth()
Returns the stroke width used to draw the scale's line.
|
GaugeScaleTicksLayoutMode |
getTicksLayoutMode()
Returns the layout mode of the ticks.
|
float |
getTicksOffset()
Returns the offset of the major and minor ticks.
|
boolean |
isLabelsVisible()
Returns a boolean that determines if labels should be drawn.
|
boolean |
isLineVisible()
Returns a boolean that determines if scale's line is drawn.
|
boolean |
isTicksVisible()
Returns boolean value that determines if major and minor ticks should be drawn.
|
void |
removeAllIndicators()
Removes all indicators from the scale.
|
void |
removeIndicator(GaugeIndicator indicator)
Removes an indicator from the scale.
|
void |
removeIndicator(int index)
Removes an indicator at specific index from the scale.
|
void |
requestArrange()
Request layout of the scale.
|
void |
requestRender()
Request invalidating of the scale.
|
void |
setFillColor(int fillColor)
Sets the fill color of the scale.
|
void |
setFillPaint(Paint fillPaint)
Sets the fill paint of the scale.
|
void |
setIndicators(ArrayList<GaugeIndicator> indicators)
Provide an array with indicators that will be added to the scale.
|
void |
setLabelsColor(int labelsColor)
Sets the color of the labels.
|
void |
setLabelsCount(int labelsCount)
Sets the count of the labels.
|
void |
setLabelsFormat(String labelsFormat)
Sets the labels' format.
|
void |
setLabelsLayoutMode(GaugeScaleLabelsLayoutMode labelsLayoutMode)
Sets the layout mode of the labels.
|
void |
setLabelsOffset(float labelsOffset)
Sets the offset of the labels.
|
void |
setLabelsPaint(Paint labelsPaint)
Sets the paint used to draw the labels.
|
void |
setLabelsVisible(boolean labelsVisible)
Determines if the labels should be drawn.
|
void |
setLineVisible(boolean lineVisible)
Sets a boolean value that is used when drawing the scale to determin if the scale's line should be drawn.
|
void |
setMajorTicksCount(int majorTicksCount)
Sets the major ticks count.
|
void |
setMajorTicksFillColor(int majorTicksFillColor)
Sets the color used to fill the major ticks.
|
void |
setMajorTicksFillPaint(Paint majorTicksFillPaint)
Sets the paint used to fill the major ticks.
|
void |
setMajorTicksLength(float majorTicksLength)
Sets the width of the major ticks.
|
void |
setMajorTicksStrokeColor(int majorTicksStrokeColor)
Sets the color used to stroke the major ticks.
|
void |
setMajorTicksStrokePaint(Paint majorTicksStrokePaint)
Sets the paint used to stroke the major ticks.
|
void |
setMajorTicksWidth(float majorTicksWidth)
Sets the height of the major ticks.
|
void |
setMaximum(float maximum)
Sets the maximum value of the scale.
|
void |
setMinimum(float minimum)
Sets the minimum value of the scale.
|
void |
setMinorTicksCount(int minorTicksCount)
Sets the minor ticks count.
|
void |
setMinorTicksFillColor(int minorTicksFillColor)
Sets the color used to fill the minor ticks.
|
void |
setMinorTicksFillPaint(Paint minorTicksFillPaint)
Sets the paint used to fill the minor ticks.
|
void |
setMinorTicksLength(float minorTicksLength)
Sets the width of the minor ticks.
|
void |
setMinorTicksStrokeColor(int minorTicksStrokeColor)
Sets the color used to stroke the minor ticks.
|
void |
setMinorTicksStrokePaint(Paint minorTicksStrokePaint)
Sets the paint used to stroke the minor ticks.
|
void |
setMinorTicksWidth(float minorTicksWidth)
Sets the height of the minor ticks.
|
void |
setOwner(RadGaugeView owner)
Sets the
RadGaugeView instance that will own the scale. |
void |
setRange(float minimum,
float maximum)
Set the minimum and maximum values of the scale.
|
void |
setStrokeColor(int strokeColor)
Sets the stroke color of the scale.
|
void |
setStrokePaint(Paint strokePaint)
Sets the stroke paint of the scale.
|
void |
setStrokeWidth(float strokeWidth)
Sets the stroke width used to draw the scale's line.
|
void |
setTicksLayoutMode(GaugeScaleTicksLayoutMode ticksLayoutMode)
Sets the layout mode of the ticks.
|
void |
setTicksOffset(float ticksOffset)
Sets the offset of the ticks.
|
void |
setTicksVisible(boolean ticksVisible)
Sets boolean value that determines if major and minor ticks should be drawn.
|
addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchSetActivated, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateLayoutParams, getAccessibilityClassName, getChildAt, getChildCount, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, shouldDelayChildPressedState, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundGravity, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayout
public GaugeScale(Context context)
GaugeScale
class.context
- the context to be usedpublic GaugeScale(Context context, AttributeSet attrs)
GaugeScale
class.context
- the context to be usedattrs
- the attributespublic GaugeScale(Context context, AttributeSet attrs, int defStyleAttr)
GaugeScale
class.context
- the context to be usedattrs
- the attributesdefStyleAttr
- the default stylepublic RadGaugeView getOwner()
RadGaugeView
instance that owns the scale.public void setOwner(RadGaugeView owner)
RadGaugeView
instance that will own the scale.
This method is called automatically when the scale is added to a gauge.owner
- the owner of the current scale.public ArrayList<GaugeIndicator> getIndicators()
public void setIndicators(ArrayList<GaugeIndicator> indicators)
indicators
- An AttayList with indicators.public float getMaximum()
public void setMaximum(float maximum)
maximum
- A float value.public float getMinimum()
public void setMinimum(float minimum)
minimum
- A float value.public boolean isLineVisible()
public void setLineVisible(boolean lineVisible)
lineVisible
- A boolean value.public Paint getFillPaint()
public void setFillPaint(Paint fillPaint)
fillPaint
- A Paint object.public int getFillColor()
public void setFillColor(int fillColor)
fillColor
- An int value.public Paint getStrokePaint()
public void setStrokePaint(Paint strokePaint)
strokePaint
- A Paint object.public float getStrokeWidth()
public void setStrokeWidth(float strokeWidth)
strokeWidth
- A float value.public int getStrokeColor()
public void setStrokeColor(int strokeColor)
strokeColor
- An int value.public Paint getMajorTicksFillPaint()
public void setMajorTicksFillPaint(Paint majorTicksFillPaint)
majorTicksFillPaint
- A Paint object.public Paint getMajorTicksStrokePaint()
public void setMajorTicksStrokePaint(Paint majorTicksStrokePaint)
majorTicksStrokePaint
- A Paint object.public int getMajorTicksFillColor()
public void setMajorTicksFillColor(int majorTicksFillColor)
majorTicksFillColor
- An int value.public int getMajorTicksStrokeColor()
public void setMajorTicksStrokeColor(int majorTicksStrokeColor)
majorTicksStrokeColor
- An int value.public Paint getMinorTicksFillPaint()
public void setMinorTicksFillPaint(Paint minorTicksFillPaint)
minorTicksFillPaint
- A Paint object.public Paint getMinorTicksStrokePaint()
public void setMinorTicksStrokePaint(Paint minorTicksStrokePaint)
minorTicksStrokePaint
- A Paint object.public int getMinorTicksFillColor()
public void setMinorTicksFillColor(int minorTicksFillColor)
minorTicksFillColor
- An int value.public int getMinorTicksStrokeColor()
public void setMinorTicksStrokeColor(int minorTicksStrokeColor)
minorTicksStrokeColor
- An int value.public int getMajorTicksCount()
public void setMajorTicksCount(int majorTicksCount)
majorTicksCount
- An int value.public int getMinorTicksCount()
public void setMinorTicksCount(int minorTicksCount)
minorTicksCount
- An int value.public boolean isTicksVisible()
public void setTicksVisible(boolean ticksVisible)
ticksVisible
- A boolen value.public float getMajorTicksLength()
public void setMajorTicksLength(float majorTicksLength)
majorTicksLength
- A float value.public float getMinorTicksLength()
public void setMinorTicksLength(float minorTicksLength)
minorTicksLength
- A float value.public float getMajorTicksWidth()
public void setMajorTicksWidth(float majorTicksWidth)
majorTicksWidth
- A float value.public float getMinorTicksWidth()
public void setMinorTicksWidth(float minorTicksWidth)
minorTicksWidth
- A float value.public float getTicksOffset()
public void setTicksOffset(float ticksOffset)
ticksOffset
- A float value.public GaugeScaleTicksLayoutMode getTicksLayoutMode()
GaugeScaleTicksLayoutMode
value.public void setTicksLayoutMode(GaugeScaleTicksLayoutMode ticksLayoutMode)
ticksLayoutMode
- A GaugeScaleTicksLayoutMode
value.public boolean isLabelsVisible()
public void setLabelsVisible(boolean labelsVisible)
labelsVisible
- A boolean value.public int getLabelsCount()
public void setLabelsCount(int labelsCount)
labelsCount
- An int value.public Paint getLabelsPaint()
public void setLabelsPaint(Paint labelsPaint)
labelsPaint
- A Paint object.public int getLabelsColor()
public void setLabelsColor(int labelsColor)
labelsColor
- An int value.public GaugeScaleLabelsLayoutMode getLabelsLayoutMode()
GaugeScaleLabelsLayoutMode
value.public void setLabelsLayoutMode(GaugeScaleLabelsLayoutMode labelsLayoutMode)
labelsLayoutMode
- A GaugeScaleLabelsLayoutMode
value.public float getLabelsOffset()
public void setLabelsOffset(float labelsOffset)
labelsOffset
- A float value.public String getLabelsFormat()
public void setLabelsFormat(String labelsFormat)
labelsFormat
- A string value.public void addIndicator(GaugeIndicator indicator)
indicator
- The indicator to be added.public void addIndicator(int index, GaugeIndicator indicator)
index
- The index at which the indicator will be added.indicator
- The indicator.public void removeIndicator(GaugeIndicator indicator)
indicator
- The indicator to be removed.public void removeIndicator(int index)
index
- The index of the indicator.public void removeAllIndicators()
public float getLocation(float value)
value
- The value which location will be returned.public float getOnScreenValue(float value)
value
- The value which location will be returned.public void requestRender()
public void requestArrange()
public void setRange(float minimum, float maximum)
minimum
- The minimum value.maximum
- The maximum value.public void animateIndicators()