Class XYPlot
-
- 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
-
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(@NonNull() XYLegendWidget legend)XYGraphWidgetgetGraph()voidsetGraph(@NonNull() XYGraphWidget graph)TextLabelWidgetgetDomainTitle()voidsetDomainTitle(@NonNull() TextLabelWidget domainTitle)TextLabelWidgetgetRangeTitle()voidsetRangeTitle(@NonNull() TextLabelWidget rangeTitle)StepModelgetDomainStepModel()voidsetDomainStepModel(@NonNull() StepModel domainStepModel)StepModelgetRangeStepModel()voidsetRangeStepModel(@NonNull() StepModel rangeStepModel)RectRegiongetBounds()RectRegiongetInnerLimits()RectRegiongetOuterLimits()booleancontainsPoint(float x, float y)Checks whether the point is within the plot's graph area. booleancontainsPoint(@NonNull() PointF point)` Convenience method - wraps containsPoint(PointF). voidsetCursorPosition(@NonNull() 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(@NonNull() PointF point)Convert the y coord of a PointF into a series yVal. NumbergetXVal(@NonNull() PointF point)Convert the x coord of a PointF into a series xVal. NumberscreenToSeriesX(float x)NumberscreenToSeriesY(float y)floatseriesToScreenX(@NonNull() Number x)Convert a series xVal into a screen x coord floatseriesToScreenY(@NonNull() Number y)Convert a series yVal into a screen y coord PointFseriesToScreen(@NonNull() XYCoords xy)Convert a series xy value into a screen point. XYCoordsscreentoSeries(@NonNull() 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, @Nullable() Number extent, @NonNull() BoundaryMode mode)Centers the domain on origin, calculating the upper and lower boundaries of the axis using mode and extent. voidcenterOnRangeOrigin(@NonNull() Number origin)Centers the range axis on origin. voidcenterOnRangeOrigin(@NonNull() Number origin, @Nullable() Number extent, @NonNull() BoundaryMode mode)Centers the domain on origin, calculating the upper and lower boundaries of the axis using mode and extent. voidupdateDomainMinMaxForOriginModel()voidupdateRangeMinMaxForOriginModel()intgetLinesPerRangeLabel()Convenience method - wraps XYGraphWidget.getLinesPerRangeLabel(). voidsetLinesPerRangeLabel(int linesPerLabel)Convenience method - wraps XYGraphWidget.setLinesPerRangeLabel(). intgetLinesPerDomainLabel()Convenience method - wraps XYGraphWidget.getLinesPerDomainLabel(). voidsetLinesPerDomainLabel(int linesPerDomainLabel)Convenience method - wraps XYGraphWidget.setLinesPerDomainLabel(). StepModegetDomainStepMode()voidsetDomainStepMode(@NonNull() StepMode domainStepMode)doublegetDomainStepValue()voidsetDomainStepValue(double domainStepValue)voidsetDomainStep(@NonNull() StepMode mode, double value)StepModegetRangeStepMode()voidsetRangeStepMode(@NonNull() StepMode rangeStepMode)doublegetRangeStepValue()voidsetRangeStepValue(double rangeStepValue)voidsetRangeStep(@NonNull() StepMode mode, double value)voidsetDomainLabel(@Nullable() String domainLabel)voidsetRangeLabel(@Nullable() String rangeLabel)synchronized voidsetDomainBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @NonNull() BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetDomainBoundaries(@Nullable() Number lowerBoundary, @NonNull() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @NonNull() BoundaryMode upperBoundaryMode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @NonNull() BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeBoundaries(@Nullable() Number lowerBoundary, @NonNull() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @NonNull() BoundaryMode upperBoundaryMode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetDomainUpperBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetDomainLowerBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeUpperBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. synchronized voidsetRangeLowerBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)Setup the boundary mode, boundary values only applicable in FIXED mode. BoundaryModegetDomainLowerBoundaryMode()BoundaryModegetDomainUpperBoundaryMode()BoundaryModegetRangeLowerBoundaryMode()BoundaryModegetRangeUpperBoundaryMode()XYCoordsgetOrigin()NumbergetDomainOrigin()NumbergetRangeOrigin()booleanaddMarker(@NonNull() YValueMarker marker)Appends the specified marker to the end of plot's yValueMarkers list. YValueMarkerremoveMarker(@NonNull() 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(@NonNull() XValueMarker marker)Appends the specified marker to the end of plot's xValueMarkers list. XValueMarkerremoveMarker(@NonNull() XValueMarker marker)Removes the specified marker from the plot. intremoveXMarkers()Removes all XValueMarker instances from the plot. synchronized voidsetUserDomainOrigin(@NonNull() Number origin)synchronized voidsetUserRangeOrigin(@NonNull() Number origin)-
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, clearPendingCredentialRequest, 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, getContentSensitivity, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getFrameContentVelocity, getGlobalVisibleRect, getHandler, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegateFlags, 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, getPendingCredentialCallback, getPendingCredentialRequest, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getRequestedFrameRate, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSupplementalDescription, 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, isContentSensitive, 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, registerCalledFromWrongThreadListener, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, reportAppJankStats, 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, setContentSensitivity, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setFrameContentVelocity, setHandwritingBoundsOffsets, setHandwritingDelegateFlags, 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, setPendingCredentialRequest, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRequestedFrameRate, 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, setSupplementalDescription, 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, unregisterCalledFromWrongThreadListener, 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
@NonNull() XYLegendWidget getLegend()
-
setLegend
void setLegend(@NonNull() XYLegendWidget legend)
-
getGraph
@NonNull() XYGraphWidget getGraph()
-
setGraph
void setGraph(@NonNull() XYGraphWidget graph)
-
getDomainTitle
@NonNull() TextLabelWidget getDomainTitle()
-
setDomainTitle
void setDomainTitle(@NonNull() TextLabelWidget domainTitle)
-
getRangeTitle
@NonNull() TextLabelWidget getRangeTitle()
-
setRangeTitle
void setRangeTitle(@NonNull() TextLabelWidget rangeTitle)
-
getDomainStepModel
@NonNull() StepModel getDomainStepModel()
-
setDomainStepModel
void setDomainStepModel(@NonNull() StepModel domainStepModel)
-
getRangeStepModel
@NonNull() StepModel getRangeStepModel()
-
setRangeStepModel
void setRangeStepModel(@NonNull() StepModel rangeStepModel)
-
getBounds
@NonNull() RectRegion getBounds()
- Returns:
The current min/max values for real domain and range that fall within the visible graph space.
-
getInnerLimits
@NonNull() RectRegion getInnerLimits()
-
getOuterLimits
@NonNull() RectRegion getOuterLimits()
-
containsPoint
boolean containsPoint(float x, float y)
Checks whether the point is within the plot's graph area.
-
containsPoint
boolean containsPoint(@NonNull() PointF point)
` Convenience method - wraps containsPoint(PointF).
-
setCursorPosition
void setCursorPosition(@NonNull() PointF point)
-
setCursorPosition
void setCursorPosition(float x, float y)
-
getXVal
@Deprecated()@Nullable() Number getXVal(float xPix)
Convert a screen xVal into a series xVal.
-
getYVal
@Deprecated()@Nullable() Number getYVal(@NonNull() PointF point)
Convert the y coord of a PointF into a series yVal.
-
getXVal
@Deprecated()@Nullable() Number getXVal(@NonNull() PointF point)
Convert the x coord of a PointF into a series xVal.
-
screenToSeriesX
@Nullable() Number screenToSeriesX(float x)
-
screenToSeriesY
@Nullable() Number screenToSeriesY(float y)
-
seriesToScreenX
float seriesToScreenX(@NonNull() Number x)
Convert a series xVal into a screen x coord
-
seriesToScreenY
float seriesToScreenY(@NonNull() Number y)
Convert a series yVal into a screen y coord
-
seriesToScreen
@Nullable() PointF seriesToScreen(@NonNull() XYCoords xy)
Convert a series xy value into a screen point.
-
screentoSeries
@Nullable() XYCoords screentoSeries(@NonNull() 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, @Nullable() Number extent, @NonNull() BoundaryMode mode)
Centers the domain on origin, calculating the upper and lower boundaries of the axis using mode and extent.
-
centerOnRangeOrigin
void centerOnRangeOrigin(@NonNull() Number origin)
Centers the range axis on origin.
-
centerOnRangeOrigin
void centerOnRangeOrigin(@NonNull() Number origin, @Nullable() Number extent, @NonNull() BoundaryMode mode)
Centers the domain on origin, calculating the upper and lower boundaries of the axis using 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
@NonNull() StepMode getDomainStepMode()
-
setDomainStepMode
void setDomainStepMode(@NonNull() StepMode domainStepMode)
-
getDomainStepValue
double getDomainStepValue()
-
setDomainStepValue
void setDomainStepValue(double domainStepValue)
-
setDomainStep
void setDomainStep(@NonNull() StepMode mode, double value)
-
getRangeStepMode
@NonNull() StepMode getRangeStepMode()
-
setRangeStepMode
void setRangeStepMode(@NonNull() StepMode rangeStepMode)
-
getRangeStepValue
double getRangeStepValue()
-
setRangeStepValue
void setRangeStepValue(double rangeStepValue)
-
setRangeStep
void setRangeStep(@NonNull() StepMode mode, double value)
-
setDomainLabel
void setDomainLabel(@Nullable() String domainLabel)
-
setRangeLabel
void setRangeLabel(@Nullable() String rangeLabel)
-
setDomainBoundaries
synchronized void setDomainBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @NonNull() BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setDomainBoundaries
synchronized void setDomainBoundaries(@Nullable() Number lowerBoundary, @NonNull() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @NonNull() BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeBoundaries
synchronized void setRangeBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @NonNull() BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeBoundaries
synchronized void setRangeBoundaries(@Nullable() Number lowerBoundary, @NonNull() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @NonNull() BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setDomainUpperBoundary
synchronized void setDomainUpperBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setDomainLowerBoundary
synchronized void setDomainLowerBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeUpperBoundary
synchronized void setRangeUpperBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
setRangeLowerBoundary
synchronized void setRangeLowerBoundary(@Nullable() Number boundary, @NonNull() BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.
-
getDomainLowerBoundaryMode
@NonNull() BoundaryMode getDomainLowerBoundaryMode()
-
getDomainUpperBoundaryMode
@NonNull() BoundaryMode getDomainUpperBoundaryMode()
-
getRangeLowerBoundaryMode
@NonNull() BoundaryMode getRangeLowerBoundaryMode()
-
getRangeUpperBoundaryMode
@NonNull() BoundaryMode getRangeUpperBoundaryMode()
-
getDomainOrigin
@Nullable() Number getDomainOrigin()
-
getRangeOrigin
@Nullable() Number getRangeOrigin()
-
addMarker
boolean addMarker(@NonNull() YValueMarker marker)
Appends the specified marker to the end of plot's yValueMarkers list.
- Parameters:
marker- The YValueMarker to be added.- Returns:
true if the object was successfully added, false otherwise.
-
removeMarker
@Nullable() YValueMarker removeMarker(@NonNull() YValueMarker marker)
Removes the specified marker from the plot.
- Returns:
The YValueMarker removed if successfull, null otherwise.
-
removeMarkers
int removeMarkers()
Convenience method - combines removeYMarkers() and removeXMarkers().
-
removeYMarkers
int removeYMarkers()
Removes all YValueMarker instances from the plot.
-
addMarker
boolean addMarker(@NonNull() XValueMarker marker)
Appends the specified marker to the end of plot's xValueMarkers list.
- Parameters:
marker- The XValueMarker to be added.- Returns:
true if the object was successfully added, false otherwise.
-
removeMarker
@Nullable() XValueMarker removeMarker(@NonNull() XValueMarker marker)
Removes the specified marker from the plot.
- Returns:
The XValueMarker removed if successfull, null otherwise.
-
removeXMarkers
int removeXMarkers()
Removes all XValueMarker instances from the plot.
-
setUserDomainOrigin
synchronized void setUserDomainOrigin(@NonNull() Number origin)
-
setUserRangeOrigin
synchronized void setUserRangeOrigin(@NonNull() Number origin)
-
-
-
-