-
- 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 enum
XYPlot.PreviewMode
-
Field Summary
Fields Modifier and Type Field Description private XYLegendWidget
legend
private XYGraphWidget
graph
private TextLabelWidget
domainTitle
private TextLabelWidget
rangeTitle
private StepModel
domainStepModel
private StepModel
rangeStepModel
private RectRegion
bounds
private final RectRegion
innerLimits
private final RectRegion
outerLimits
private Number
userDomainOrigin
private Number
userRangeOrigin
-
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 XYLegendWidget
getLegend()
void
setLegend(XYLegendWidget legend)
XYGraphWidget
getGraph()
void
setGraph(XYGraphWidget graph)
TextLabelWidget
getDomainTitle()
void
setDomainTitle(TextLabelWidget domainTitle)
TextLabelWidget
getRangeTitle()
void
setRangeTitle(TextLabelWidget rangeTitle)
StepModel
getDomainStepModel()
void
setDomainStepModel(StepModel domainStepModel)
StepModel
getRangeStepModel()
void
setRangeStepModel(StepModel rangeStepModel)
RectRegion
getBounds()
RectRegion
getInnerLimits()
RectRegion
getOuterLimits()
synchronized void
setUserDomainOrigin(Number origin)
synchronized void
setUserRangeOrigin(Number origin)
boolean
containsPoint(float x, float y)
Checks whether the point is within the plot's graph area. boolean
containsPoint(PointF point)
`Convenience method - wraps containsPoint(PointF). void
setCursorPosition(PointF point)
void
setCursorPosition(float x, float y)
Number
getXVal(float xPix)
Convert a screen xVal into a series xVal. Number
getYVal(float yPix)
Convert a screen yVal into a series yVal. Number
getYVal(PointF point)
Convert the y coord of a PointF into a series yVal. Number
getXVal(PointF point)
Convert the x coord of a PointF into a series xVal. Number
screenToSeriesX(float x)
Number
screenToSeriesY(float y)
float
seriesToScreenX(Number x)
Convert a series xVal into a screen x coord float
seriesToScreenY(Number y)
Convert a series yVal into a screen y coord PointF
seriesToScreen(XYCoords xy)
Convert a series xy value into a screen point. XYCoords
screentoSeries(PointF point)
Convert a screen point into a series xy value. void
calculateMinMaxVals()
void
centerOnDomainOrigin(@NonNull() Number origin)
Centers the domain axis on origin. 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. void
centerOnRangeOrigin(@NonNull() Number origin)
Centers the range axis on origin. 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. void
updateDomainMinMaxForOriginModel()
void
updateRangeMinMaxForOriginModel()
int
getLinesPerRangeLabel()
Convenience method - wraps XYGraphWidget.getLinesPerRangeLabel().Equivalent to getGraphWidget().getLinesPerRangeLabel(). void
setLinesPerRangeLabel(int linesPerLabel)
Convenience method - wraps XYGraphWidget.setLinesPerRangeLabel().Equivalent to getGraphWidget().setLinesPerRangeLabel(). int
getLinesPerDomainLabel()
Convenience method - wraps XYGraphWidget.getLinesPerDomainLabel().Equivalent to getGraphWidget().getLinesPerDomainLabel(). void
setLinesPerDomainLabel(int linesPerDomainLabel)
Convenience method - wraps XYGraphWidget.setLinesPerDomainLabel().Equivalent to getGraphWidget().setLinesPerDomainLabel(). StepMode
getDomainStepMode()
void
setDomainStepMode(StepMode domainStepMode)
double
getDomainStepValue()
void
setDomainStepValue(double domainStepValue)
void
setDomainStep(StepMode mode, double value)
StepMode
getRangeStepMode()
void
setRangeStepMode(StepMode rangeStepMode)
double
getRangeStepValue()
void
setRangeStepValue(double rangeStepValue)
void
setRangeStep(StepMode mode, double value)
void
setDomainLabel(String domainLabel)
void
setRangeLabel(String rangeLabel)
synchronized void
setDomainBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized void
setDomainBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized void
setRangeBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized void
setRangeBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized void
setDomainUpperBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized void
setDomainLowerBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized void
setRangeUpperBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized void
setRangeLowerBoundary(Number boundary, BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode. XYCoords
getOrigin()
Number
getDomainOrigin()
Number
getRangeOrigin()
boolean
addMarker(YValueMarker marker)
Appends the specified marker to the end of plot's yValueMarkers list. YValueMarker
removeMarker(YValueMarker marker)
Removes the specified marker from the plot. int
removeMarkers()
Convenience method - combines removeYMarkers() and removeXMarkers(). int
removeYMarkers()
Removes all YValueMarker instances from the plot. boolean
addMarker(XValueMarker marker)
Appends the specified marker to the end of plot's xValueMarkers list. XValueMarker
removeMarker(XValueMarker marker)
Removes the specified marker from the plot. int
removeXMarkers()
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.
-
-
-
-