-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.accessibility.AccessibilityEventSource,com.androidplot.ui.Resizable
public class XYPlot extends Plot<XYSeries, XYSeriesFormatter, XYSeriesRenderer, XYSeriesBundle, XYSeriesRegistry>
A View to graphically display x/y coordinates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumXYPlot.PreviewMode
-
Field Summary
Fields Modifier and Type Field Description private XYLegendWidgetlegendprivate XYGraphWidgetgraphprivate TextLabelWidgetdomainTitleprivate TextLabelWidgetrangeTitleprivate StepModeldomainStepModelprivate StepModelrangeStepModelprivate RectRegionboundsprivate final RectRegioninnerLimitsprivate final RectRegionouterLimitsprivate NumberuserDomainOriginprivate NumberuserRangeOrigin
-
Constructor Summary
Constructors Constructor Description XYPlot(Context context, String title)XYPlot(Context context, String title, Plot.RenderMode mode)XYPlot(Context context, AttributeSet attributes)XYPlot(Context context, AttributeSet attrs, int defStyle)
-
Method Summary
Modifier and Type Method Description XYLegendWidgetgetLegend()voidsetLegend(XYLegendWidget legend)XYGraphWidgetgetGraph()voidsetGraph(XYGraphWidget graph)TextLabelWidgetgetDomainTitle()voidsetDomainTitle(TextLabelWidget domainTitle)TextLabelWidgetgetRangeTitle()voidsetRangeTitle(TextLabelWidget rangeTitle)StepModelgetDomainStepModel()voidsetDomainStepModel(StepModel domainStepModel)StepModelgetRangeStepModel()voidsetRangeStepModel(StepModel rangeStepModel)RectRegiongetBounds()RectRegiongetInnerLimits()RectRegiongetOuterLimits()synchronized voidsetUserDomainOrigin(Number origin)synchronized voidsetUserRangeOrigin(Number origin)booleancontainsPoint(float x, float y)Checks whether the point is within the plot's graph area. booleancontainsPoint(PointF point)`Convenience method - wraps containsPoint(PointF). voidsetCursorPosition(PointF point)voidsetCursorPosition(float x, float y)NumbergetXVal(float xPix)Convert a screen xVal into a series xVal. NumbergetYVal(float yPix)Convert a screen yVal into a series yVal. NumbergetYVal(PointF point)Convert the y coord of a PointF into a series yVal. NumbergetXVal(PointF point)Convert the x coord of a PointF into a series xVal. NumberscreenToSeriesX(float x)NumberscreenToSeriesY(float y)floatseriesToScreenX(Number x)Convert a series xVal into a screen x coord floatseriesToScreenY(Number y)Convert a series yVal into a screen y coord PointFseriesToScreen(XYCoords xy)Convert a series xy value into a screen point. XYCoordsscreentoSeries(PointF point)Convert a screen point into a series xy value. voidcalculateMinMaxVals()voidcenterOnDomainOrigin(@NonNull() Number origin)Centers the domain axis on origin. voidcenterOnDomainOrigin(@NonNull() Number origin, Number extent, BoundaryMode mode)Centers the domain on origin, calculating the upper and lower boundaries of the axisusing mode and extent. voidcenterOnRangeOrigin(@NonNull() Number origin)Centers the range axis on origin. voidcenterOnRangeOrigin(@NonNull() Number origin, Number extent, BoundaryMode mode)Centers the domain on origin, calculating the upper and lower boundaries of the axisusing mode and extent. voidupdateDomainMinMaxForOriginModel()voidupdateRangeMinMaxForOriginModel()intgetLinesPerRangeLabel()Convenience method - wraps XYGraphWidget.getLinesPerRangeLabel().Equivalent to getGraphWidget().getLinesPerRangeLabel(). voidsetLinesPerRangeLabel(int linesPerLabel)Convenience method - wraps XYGraphWidget.setLinesPerRangeLabel().Equivalent to getGraphWidget().setLinesPerRangeLabel(). intgetLinesPerDomainLabel()Convenience method - wraps XYGraphWidget.getLinesPerDomainLabel().Equivalent to getGraphWidget().getLinesPerDomainLabel(). voidsetLinesPerDomainLabel(int linesPerDomainLabel)Convenience method - wraps XYGraphWidget.setLinesPerDomainLabel().Equivalent to getGraphWidget().setLinesPerDomainLabel(). StepModegetDomainStepMode()voidsetDomainStepMode(StepMode domainStepMode)doublegetDomainStepValue()voidsetDomainStepValue(double domainStepValue)voidsetDomainStep(StepMode mode, double value)StepModegetRangeStepMode()voidsetRangeStepMode(StepMode rangeStepMode)doublegetRangeStepValue()voidsetRangeStepValue(double rangeStepValue)voidsetRangeStep(StepMode mode, double value)voidsetDomainLabel(String domainLabel)voidsetRangeLabel(String rangeLabel)synchronized voidsetDomainBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetDomainBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetDomainUpperBoundary(Number boundary, BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetDomainLowerBoundary(Number boundary, BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeUpperBoundary(Number boundary, BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeLowerBoundary(Number boundary, BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. XYCoordsgetOrigin()NumbergetDomainOrigin()NumbergetRangeOrigin()booleanaddMarker(YValueMarker marker)Appends the specified marker to the end of plot's yValueMarkers list. YValueMarkerremoveMarker(YValueMarker marker)Removes the specified marker from the plot. intremoveMarkers()Convenience method - combines removeYMarkers() and removeXMarkers(). intremoveYMarkers()Removes all YValueMarker instances from the plot. booleanaddMarker(XValueMarker marker)Appends the specified marker to the end of plot's xValueMarkers list. XValueMarkerremoveMarker(XValueMarker marker)Removes the specified marker from the plot. intremoveXMarkers()Removes all XValueMarker instances from the plot. -
Methods inherited from class com.androidplot.Plot
addListener, addSeries, addSeries, clear, getBackgroundPaint, getBorderPaint, getDisplayDimensions, getFormatter, getLayoutManager, getPlotMarginBottom, getPlotMarginLeft, getPlotMarginRight, getPlotMarginTop, getPlotPaddingBottom, getPlotPaddingLeft, getPlotPaddingRight, getPlotPaddingTop, getRegistry, getRenderMode, getRenderer, getRendererList, getRenderers, getTitle, isEmpty, layout, redraw, removeListener, removeSeries, removeSeries, setBackgroundPaint, setBorderPaint, setBorderStyle, setLayoutManager, setMarkupEnabled, setPlotMarginBottom, setPlotMarginLeft, setPlotMarginRight, setPlotMarginTop, setPlotMargins, setPlotPadding, setPlotPaddingBottom, setPlotPaddingLeft, setPlotPaddingRight, setPlotPaddingTop, setRegistry, setRenderMode, setTitle, setTitle -
Methods inherited from class android.view.View
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, addTouchables, animate, announceForAccessibility, autofill, bringToFront, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearFocus, clearViewTranslationCallback, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, drawableHotspotChanged, findFocus, findOnBackInvokedDispatcher, findViewById, findViewWithTag, findViewsWithText, focusSearch, forceHasOverlappingRendering, forceLayout, gatherTransparentRegion, generateDisplayHash, generateViewId, getAccessibilityClassName, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAllowedHandwritingDelegatePackageName, getAllowedHandwritingDelegatorPackageName, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getHandler, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegatorCallback, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getOverlay, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasTransientState, hasWindowFocus, inflate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, isContextClickable, isCredential, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHandwritingDelegate, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onResolvePointerIcon, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performHapticFeedback, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidateDelayed, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreDefaultFocus, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDataSensitive, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAllowedHandwritingDelegatePackage, setAllowedHandwritingDelegatorPackage, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHandwritingBoundsOffsets, setHandwritingDelegatorCallback, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setIsCredential, setIsHandwritingDelegate, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, setZ, showContextMenu, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
XYPlot
XYPlot(Context context, String title, Plot.RenderMode mode)
-
XYPlot
XYPlot(Context context, AttributeSet attributes)
-
XYPlot
XYPlot(Context context, AttributeSet attrs, int defStyle)
-
-
Method Detail
-
getLegend
XYLegendWidget getLegend()
-
setLegend
void setLegend(XYLegendWidget legend)
-
getGraph
XYGraphWidget getGraph()
-
setGraph
void setGraph(XYGraphWidget graph)
-
getDomainTitle
TextLabelWidget getDomainTitle()
-
setDomainTitle
void setDomainTitle(TextLabelWidget domainTitle)
-
getRangeTitle
TextLabelWidget getRangeTitle()
-
setRangeTitle
void setRangeTitle(TextLabelWidget rangeTitle)
-
getDomainStepModel
StepModel getDomainStepModel()
-
setDomainStepModel
void setDomainStepModel(StepModel domainStepModel)
-
getRangeStepModel
StepModel getRangeStepModel()
-
setRangeStepModel
void setRangeStepModel(StepModel rangeStepModel)
-
getBounds
RectRegion getBounds()
-
getInnerLimits
RectRegion getInnerLimits()
-
getOuterLimits
RectRegion getOuterLimits()
-
setUserDomainOrigin
synchronized void setUserDomainOrigin(Number origin)
-
setUserRangeOrigin
synchronized void setUserRangeOrigin(Number origin)
-
containsPoint
boolean containsPoint(float x, float y)
Checks whether the point is within the plot's graph area.
-
containsPoint
boolean containsPoint(PointF point)
`Convenience method - wraps containsPoint(PointF).
-
setCursorPosition
void setCursorPosition(PointF point)
-
setCursorPosition
void setCursorPosition(float x, float y)
-
getXVal
@Deprecated() Number getXVal(float xPix)
Convert a screen xVal into a series xVal.
-
getYVal
@Deprecated() Number getYVal(PointF point)
Convert the y coord of a PointF into a series yVal.
-
getXVal
@Deprecated() Number getXVal(PointF point)
Convert the x coord of a PointF into a series xVal.
-
screenToSeriesX
Number screenToSeriesX(float x)
-
screenToSeriesY
Number screenToSeriesY(float y)
-
seriesToScreenX
float seriesToScreenX(Number x)
Convert a series xVal into a screen x coord
-
seriesToScreenY
float seriesToScreenY(Number y)
Convert a series yVal into a screen y coord
-
seriesToScreen
PointF seriesToScreen(XYCoords xy)
Convert a series xy value into a screen point.
-
screentoSeries
XYCoords screentoSeries(PointF point)
Convert a screen point into a series xy value.
-
calculateMinMaxVals
void calculateMinMaxVals()
-
centerOnDomainOrigin
void centerOnDomainOrigin(@NonNull() Number origin)
Centers the domain axis on origin.
-
centerOnDomainOrigin
void centerOnDomainOrigin(@NonNull() Number origin, Number extent, BoundaryMode mode)
Centers the domain on origin, calculating the upper and lower boundaries of the axisusing mode and extent.
-
centerOnRangeOrigin
void centerOnRangeOrigin(@NonNull() Number origin)
Centers the range axis on origin.
-
centerOnRangeOrigin
void centerOnRangeOrigin(@NonNull() Number origin, Number extent, BoundaryMode mode)
Centers the domain on origin, calculating the upper and lower boundaries of the axisusing mode and extent.
-
updateDomainMinMaxForOriginModel
void updateDomainMinMaxForOriginModel()
-
updateRangeMinMaxForOriginModel
void updateRangeMinMaxForOriginModel()
-
getLinesPerRangeLabel
int getLinesPerRangeLabel()
Convenience method - wraps XYGraphWidget.getLinesPerRangeLabel().Equivalent to getGraphWidget().getLinesPerRangeLabel().
-
setLinesPerRangeLabel
void setLinesPerRangeLabel(int linesPerLabel)
Convenience method - wraps XYGraphWidget.setLinesPerRangeLabel().Equivalent to getGraphWidget().setLinesPerRangeLabel().
-
getLinesPerDomainLabel
int getLinesPerDomainLabel()
Convenience method - wraps XYGraphWidget.getLinesPerDomainLabel().Equivalent to getGraphWidget().getLinesPerDomainLabel().
-
setLinesPerDomainLabel
void setLinesPerDomainLabel(int linesPerDomainLabel)
Convenience method - wraps XYGraphWidget.setLinesPerDomainLabel().Equivalent to getGraphWidget().setLinesPerDomainLabel().
-
getDomainStepMode
StepMode getDomainStepMode()
-
setDomainStepMode
void setDomainStepMode(StepMode domainStepMode)
-
getDomainStepValue
double getDomainStepValue()
-
setDomainStepValue
void setDomainStepValue(double domainStepValue)
-
setDomainStep
void setDomainStep(StepMode mode, double value)
-
getRangeStepMode
StepMode getRangeStepMode()
-
setRangeStepMode
void setRangeStepMode(StepMode rangeStepMode)
-
getRangeStepValue
double getRangeStepValue()
-
setRangeStepValue
void setRangeStepValue(double rangeStepValue)
-
setRangeStep
void setRangeStep(StepMode mode, double value)
-
setDomainLabel
void setDomainLabel(String domainLabel)
-
setRangeLabel
void setRangeLabel(String rangeLabel)
-
setDomainBoundaries
synchronized void setDomainBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setDomainBoundaries
synchronized void setDomainBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeBoundaries
synchronized void setRangeBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeBoundaries
synchronized void setRangeBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setDomainUpperBoundary
synchronized void setDomainUpperBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setDomainLowerBoundary
synchronized void setDomainLowerBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeUpperBoundary
synchronized void setRangeUpperBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeLowerBoundary
synchronized void setRangeLowerBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
getDomainOrigin
Number getDomainOrigin()
-
getRangeOrigin
Number getRangeOrigin()
-
addMarker
boolean addMarker(YValueMarker marker)
Appends the specified marker to the end of plot's yValueMarkers list.
- Parameters:
marker- The YValueMarker to be added.
-
removeMarker
YValueMarker removeMarker(YValueMarker marker)
Removes the specified marker from the plot.
-
removeMarkers
int removeMarkers()
Convenience method - combines removeYMarkers() and removeXMarkers().
-
removeYMarkers
int removeYMarkers()
Removes all YValueMarker instances from the plot.
-
addMarker
boolean addMarker(XValueMarker marker)
Appends the specified marker to the end of plot's xValueMarkers list.
- Parameters:
marker- The XValueMarker to be added.
-
removeMarker
XValueMarker removeMarker(XValueMarker marker)
Removes the specified marker from the plot.
-
removeXMarkers
int removeXMarkers()
Removes all XValueMarker instances from the plot.
-
-
-
-