com.androidplot.xy
Class XYPlot

java.lang.Object
  extended by android.view.View
      extended by com.androidplot.Plot<XYSeries,XYSeriesFormatter,XYSeriesRenderer>
          extended by com.androidplot.xy.XYPlot
All Implemented Interfaces:
android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, Resizable
Direct Known Subclasses:
XYPlotZoomPan

public class XYPlot
extends Plot<XYSeries,XYSeriesFormatter,XYSeriesRenderer>

A View to graphically display x/y coordinates.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.androidplot.Plot
Plot.BorderStyle, Plot.RenderMode
 
Nested classes/interfaces inherited from class android.view.View
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
 
Field Summary
 
Fields inherited from class android.view.View
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_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, 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, 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_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_RESOLVED_DEFAULT, TRANSLATION_X, TRANSLATION_Y, VISIBLE, X, Y
 
Constructor Summary
XYPlot(android.content.Context context, android.util.AttributeSet attributes)
           
XYPlot(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
           
XYPlot(android.content.Context context, String title)
           
XYPlot(android.content.Context context, String title, Plot.RenderMode mode)
           
 
Method Summary
 boolean addMarker(XValueMarker marker)
          Appends the specified marker to the end of plot's xValueMarkers list.
 boolean addMarker(YValueMarker marker)
          Appends the specified marker to the end of plot's yValueMarkers list.
 void calculateMinMaxVals()
           
 void centerOnDomainOrigin(Number origin)
          Centers the domain axis on origin.
 void centerOnDomainOrigin(Number origin, Number extent, BoundaryMode mode)
          Centers the domain on origin, calculating the upper and lower boundaries of the axis using mode and extent.
 void centerOnRangeOrigin(Number origin)
          Centers the range axis on origin.
 void centerOnRangeOrigin(Number origin, Number extent, BoundaryMode mode)
          Centers the domain on origin, calculating the upper and lower boundaries of the axis using mode and extent.
 boolean containsPoint(float x, float y)
          Checks whether the point is within the plot's graph area.
 boolean containsPoint(android.graphics.PointF point)
          Convenience method - wraps containsPoint(PointF).
 Number getCalculatedMaxX()
          CalculatedMaxX value after the the framing model has been applied.
 Number getCalculatedMaxY()
          CalculatedMaxY value after the the framing model has been applied.
 Number getCalculatedMinX()
          CalculatedMinX value after the the framing model has been applied.
 Number getCalculatedMinY()
          CalculatedMinY value after the the framing model has been applied.
 RectRegion getDefaultBounds()
           
 XYFramingModel getDomainFramingModel()
           
 String getDomainLabel()
           
 TextLabelWidget getDomainLabelWidget()
           
 Number getDomainLeftMax()
           
 Number getDomainLeftMin()
           
 Number getDomainOrigin()
           
 Number getDomainRightMax()
           
 Number getDomainRightMin()
           
 XYStepMode getDomainStepMode()
           
 double getDomainStepValue()
           
 Format getDomainValueFormat()
          Convenience method - wraps XYGraphWidget.getDomainValueFormat().
 XYGraphWidget getGraphWidget()
           
 XYLegendWidget getLegendWidget()
           
 Number getRangeBottomMax()
           
 Number getRangeBottomMin()
           
 XYFramingModel getRangeFramingModel()
           
 String getRangeLabel()
           
 TextLabelWidget getRangeLabelWidget()
           
 Number getRangeOrigin()
           
 XYStepMode getRangeStepMode()
           
 double getRangeStepValue()
           
 Number getRangeTopMax()
           
 Number getRangeTopMin()
           
 Format getRangeValueFormat()
          Convenience method - wraps XYGraphWidget.getRangeValueFormat().
 int getTicksPerDomainLabel()
          Convenience method - wraps XYGraphWidget.getTicksPerDomainLabel().
 int getTicksPerRangeLabel()
          Convenience method - wraps XYGraphWidget.getTicksPerRangeLabel().
 Number getXVal(android.graphics.PointF point)
           
 Number getYVal(android.graphics.PointF point)
           
 boolean isDrawDomainOriginEnabled()
           
 boolean isDrawRangeOriginEnabled()
           
 XValueMarker removeMarker(XValueMarker marker)
          Removes the specified marker from the plot.
 YValueMarker removeMarker(YValueMarker marker)
          Removes the specified marker from the plot.
 int removeMarkers()
          Convenience method - combines removeYMarkers() and removeXMarkers().
 int removeXMarkers()
          Removes all XValueMarker instances from the plot.
 int removeYMarkers()
          Removes all YValueMarker instances from the plot.
 void setCursorPosition(float x, float y)
           
 void setCursorPosition(android.graphics.PointF point)
           
 void setDefaultBounds(RectRegion defaultBounds)
           
 void setDomainBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setDomainBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setDomainLabel(String domainLabel)
           
 void setDomainLabelWidget(TextLabelWidget domainLabelWidget)
           
 void setDomainLeftMax(Number domainLeftMax)
           
 void setDomainLeftMin(Number domainLeftMin)
           
 void setDomainLowerBoundary(Number boundary, BoundaryMode mode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setDomainRightMax(Number domainRightMax)
           
 void setDomainRightMin(Number domainRightMin)
           
 void setDomainStep(XYStepMode mode, double value)
           
 void setDomainStepMode(XYStepMode domainStepMode)
           
 void setDomainStepValue(double domainStepValue)
           
 void setDomainUpperBoundary(Number boundary, BoundaryMode mode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setDomainValueFormat(Format domainValueFormat)
          Convenience method - wraps XYGraphWidget.setDomainValueFormat().
 void setDrawDomainOriginEnabled(boolean drawDomainOriginEnabled)
           
 void setDrawRangeOriginEnabled(boolean drawRangeOriginEnabled)
           
 void setGraphWidget(XYGraphWidget graphWidget)
           
 void setGridPadding(float left, float top, float right, float bottom)
           
 void setLegendWidget(XYLegendWidget legendWidget)
           
 void setRangeBottomMax(Number rangeBottomMax)
           
 void setRangeBottomMin(Number rangeBottomMin)
           
 void setRangeBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode, Number upperBoundary, BoundaryMode upperBoundaryMode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setRangeBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setRangeLabel(String rangeLabel)
           
 void setRangeLabelWidget(TextLabelWidget rangeLabelWidget)
           
 void setRangeLowerBoundary(Number boundary, BoundaryMode mode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setRangeStep(XYStepMode mode, double value)
           
 void setRangeStepMode(XYStepMode rangeStepMode)
           
 void setRangeStepValue(double rangeStepValue)
           
 void setRangeTopMax(Number rangeTopMax)
           
 void setRangeTopMin(Number rangeTopMin)
           
 void setRangeUpperBoundary(Number boundary, BoundaryMode mode)
          Setup the boundary mode, boundary values only applicable in FIXED mode.
 void setRangeValueFormat(Format rangeValueFormat)
          Convenience method - wraps XYGraphWidget.setRangeValueFormat().
 void setTicksPerDomainLabel(int ticksPerDomainLabel)
          Convenience method - wraps XYGraphWidget.setTicksPerDomainLabel().
 void setTicksPerRangeLabel(int ticksPerRangeLabel)
          Convenience method - wraps XYGraphWidget.setTicksPerRangeLabel().
 void setUserDomainOrigin(Number origin)
           
 void setUserRangeOrigin(Number origin)
           
 void updateDomainMinMaxForOriginModel()
           
 void updateRangeMinMaxForEdgeModel()
           
 void updateRangeMinMaxForOriginModel()
           
 
Methods inherited from class com.androidplot.Plot
addListener, addSeries, clear, getBackgroundPaint, getBorderPaint, getDisplayDimensions, getFormatter, getLayoutManager, getPlotMarginBottom, getPlotMarginLeft, getPlotMarginRight, getPlotMarginTop, getPlotPaddingBottom, getPlotPaddingLeft, getPlotPaddingRight, getPlotPaddingTop, getRenderer, getRendererList, getRenderMode, getSeriesAndFormatterListForRenderer, getSeriesListForRenderer, getSeriesSet, getTitle, getTitleWidget, isEmpty, layout, redraw, removeListener, removeSeries, removeSeries, setBackgroundPaint, setBorderPaint, setBorderStyle, setLayoutManager, setMarkupEnabled, setPlotMarginBottom, setPlotMarginLeft, setPlotMarginRight, setPlotMargins, setPlotMarginTop, setPlotPadding, setPlotPaddingBottom, setPlotPaddingLeft, setPlotPaddingRight, setPlotPaddingTop, setRenderMode, setTitle, setTitleWidget
 
Methods inherited from class android.view.View
addChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeScroll, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, findFocus, findViewById, findViewsWithText, findViewWithTag, focusSearch, forceLayout, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getCameraDistance, getContentDescription, getContext, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSystemUiVisibility, getTag, getTag, getTop, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasFocus, hasFocusable, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPopulateAccessibilityEvent, onScreenStateChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLayerType, setLayoutParams, setLeft, setLongClickable, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYPlot

public XYPlot(android.content.Context context,
              String title)

XYPlot

public XYPlot(android.content.Context context,
              String title,
              Plot.RenderMode mode)

XYPlot

public XYPlot(android.content.Context context,
              android.util.AttributeSet attributes)

XYPlot

public XYPlot(android.content.Context context,
              android.util.AttributeSet attrs,
              int defStyle)
Method Detail

setGridPadding

public void setGridPadding(float left,
                           float top,
                           float right,
                           float bottom)

containsPoint

public boolean containsPoint(float x,
                             float y)
Checks whether the point is within the plot's graph area.

Parameters:
x -
y -
Returns:

containsPoint

public boolean containsPoint(android.graphics.PointF point)
Convenience method - wraps containsPoint(PointF).

Parameters:
point -
Returns:

setCursorPosition

public void setCursorPosition(android.graphics.PointF point)

setCursorPosition

public void setCursorPosition(float x,
                              float y)

getYVal

public Number getYVal(android.graphics.PointF point)

getXVal

public Number getXVal(android.graphics.PointF point)

calculateMinMaxVals

public void calculateMinMaxVals()

updateRangeMinMaxForEdgeModel

public void updateRangeMinMaxForEdgeModel()

centerOnDomainOrigin

public void centerOnDomainOrigin(Number origin)
Centers the domain axis on origin.

Parameters:
origin -

centerOnDomainOrigin

public void centerOnDomainOrigin(Number origin,
                                 Number extent,
                                 BoundaryMode mode)
Centers the domain on origin, calculating the upper and lower boundaries of the axis using mode and extent.

Parameters:
origin -
extent -
mode -

centerOnRangeOrigin

public void centerOnRangeOrigin(Number origin)
Centers the range axis on origin.

Parameters:
origin -

centerOnRangeOrigin

public void centerOnRangeOrigin(Number origin,
                                Number extent,
                                BoundaryMode mode)
Centers the domain on origin, calculating the upper and lower boundaries of the axis using mode and extent.

Parameters:
origin -
extent -
mode -

updateDomainMinMaxForOriginModel

public void updateDomainMinMaxForOriginModel()

updateRangeMinMaxForOriginModel

public void updateRangeMinMaxForOriginModel()

getTicksPerRangeLabel

public int getTicksPerRangeLabel()
Convenience method - wraps XYGraphWidget.getTicksPerRangeLabel(). Equivalent to getGraphWidget().getTicksPerRangeLabel().

Returns:

setTicksPerRangeLabel

public void setTicksPerRangeLabel(int ticksPerRangeLabel)
Convenience method - wraps XYGraphWidget.setTicksPerRangeLabel(). Equivalent to getGraphWidget().setTicksPerRangeLabel().

Parameters:
ticksPerRangeLabel -

getTicksPerDomainLabel

public int getTicksPerDomainLabel()
Convenience method - wraps XYGraphWidget.getTicksPerDomainLabel(). Equivalent to getGraphWidget().getTicksPerDomainLabel().

Returns:

setTicksPerDomainLabel

public void setTicksPerDomainLabel(int ticksPerDomainLabel)
Convenience method - wraps XYGraphWidget.setTicksPerDomainLabel(). Equivalent to getGraphWidget().setTicksPerDomainLabel().

Parameters:
ticksPerDomainLabel -

getDomainStepMode

public XYStepMode getDomainStepMode()

setDomainStepMode

public void setDomainStepMode(XYStepMode domainStepMode)

getDomainStepValue

public double getDomainStepValue()

setDomainStepValue

public void setDomainStepValue(double domainStepValue)

setDomainStep

public void setDomainStep(XYStepMode mode,
                          double value)

getRangeStepMode

public XYStepMode getRangeStepMode()

setRangeStepMode

public void setRangeStepMode(XYStepMode rangeStepMode)

getRangeStepValue

public double getRangeStepValue()

setRangeStepValue

public void setRangeStepValue(double rangeStepValue)

setRangeStep

public void setRangeStep(XYStepMode mode,
                         double value)

getDomainLabel

public String getDomainLabel()

setDomainLabel

public void setDomainLabel(String domainLabel)

getRangeLabel

public String getRangeLabel()

setRangeLabel

public void setRangeLabel(String rangeLabel)

getLegendWidget

public XYLegendWidget getLegendWidget()

setLegendWidget

public void setLegendWidget(XYLegendWidget legendWidget)

getGraphWidget

public XYGraphWidget getGraphWidget()

setGraphWidget

public void setGraphWidget(XYGraphWidget graphWidget)

getDomainLabelWidget

public TextLabelWidget getDomainLabelWidget()

setDomainLabelWidget

public void setDomainLabelWidget(TextLabelWidget domainLabelWidget)

getRangeLabelWidget

public TextLabelWidget getRangeLabelWidget()

setRangeLabelWidget

public void setRangeLabelWidget(TextLabelWidget rangeLabelWidget)

getRangeValueFormat

public Format getRangeValueFormat()
Convenience method - wraps XYGraphWidget.getRangeValueFormat().

Returns:

setRangeValueFormat

public void setRangeValueFormat(Format rangeValueFormat)
Convenience method - wraps XYGraphWidget.setRangeValueFormat().

Parameters:
rangeValueFormat -

getDomainValueFormat

public Format getDomainValueFormat()
Convenience method - wraps XYGraphWidget.getDomainValueFormat().

Returns:

setDomainValueFormat

public void setDomainValueFormat(Format domainValueFormat)
Convenience method - wraps XYGraphWidget.setDomainValueFormat().

Parameters:
domainValueFormat -

setDomainBoundaries

public void setDomainBoundaries(Number lowerBoundary,
                                Number upperBoundary,
                                BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
lowerBoundary -
upperBoundary -
mode -

setDomainBoundaries

public void setDomainBoundaries(Number lowerBoundary,
                                BoundaryMode lowerBoundaryMode,
                                Number upperBoundary,
                                BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
lowerBoundary -
lowerBoundaryMode -
upperBoundary -
upperBoundaryMode -

setRangeBoundaries

public void setRangeBoundaries(Number lowerBoundary,
                               Number upperBoundary,
                               BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
lowerBoundary -
upperBoundary -
mode -

setRangeBoundaries

public void setRangeBoundaries(Number lowerBoundary,
                               BoundaryMode lowerBoundaryMode,
                               Number upperBoundary,
                               BoundaryMode upperBoundaryMode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
lowerBoundary -
lowerBoundaryMode -
upperBoundary -
upperBoundaryMode -

setDomainUpperBoundary

public void setDomainUpperBoundary(Number boundary,
                                   BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
boundary -
mode -

setDomainLowerBoundary

public void setDomainLowerBoundary(Number boundary,
                                   BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
boundary -
mode -

setRangeUpperBoundary

public void setRangeUpperBoundary(Number boundary,
                                  BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
boundary -
mode -

setRangeLowerBoundary

public void setRangeLowerBoundary(Number boundary,
                                  BoundaryMode mode)
Setup the boundary mode, boundary values only applicable in FIXED mode.

Parameters:
boundary -
mode -

getDomainOrigin

public Number getDomainOrigin()

getRangeOrigin

public Number getRangeOrigin()

setUserDomainOrigin

public void setUserDomainOrigin(Number origin)

setUserRangeOrigin

public void setUserRangeOrigin(Number origin)

getDomainFramingModel

public XYFramingModel getDomainFramingModel()

getRangeFramingModel

public XYFramingModel getRangeFramingModel()

getCalculatedMinX

public Number getCalculatedMinX()
CalculatedMinX value after the the framing model has been applied.

Returns:

getCalculatedMaxX

public Number getCalculatedMaxX()
CalculatedMaxX value after the the framing model has been applied.

Returns:

getCalculatedMinY

public Number getCalculatedMinY()
CalculatedMinY value after the the framing model has been applied.

Returns:

getCalculatedMaxY

public Number getCalculatedMaxY()
CalculatedMaxY value after the the framing model has been applied.

Returns:

isDrawDomainOriginEnabled

public boolean isDrawDomainOriginEnabled()

setDrawDomainOriginEnabled

public void setDrawDomainOriginEnabled(boolean drawDomainOriginEnabled)

isDrawRangeOriginEnabled

public boolean isDrawRangeOriginEnabled()

setDrawRangeOriginEnabled

public void setDrawRangeOriginEnabled(boolean drawRangeOriginEnabled)

addMarker

public boolean addMarker(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

public YValueMarker removeMarker(YValueMarker marker)
Removes the specified marker from the plot.

Parameters:
marker -
Returns:
The YValueMarker removed if successfull, null otherwise.

removeMarkers

public int removeMarkers()
Convenience method - combines removeYMarkers() and removeXMarkers().

Returns:

removeYMarkers

public int removeYMarkers()
Removes all YValueMarker instances from the plot.

Returns:

addMarker

public boolean addMarker(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

public XValueMarker removeMarker(XValueMarker marker)
Removes the specified marker from the plot.

Parameters:
marker -
Returns:
The XValueMarker removed if successfull, null otherwise.

removeXMarkers

public int removeXMarkers()
Removes all XValueMarker instances from the plot.

Returns:

getDefaultBounds

public RectRegion getDefaultBounds()

setDefaultBounds

public void setDefaultBounds(RectRegion defaultBounds)

getRangeTopMin

public Number getRangeTopMin()
Returns:
the rangeTopMin

setRangeTopMin

public void setRangeTopMin(Number rangeTopMin)
Parameters:
rangeTopMin - the rangeTopMin to set

getRangeTopMax

public Number getRangeTopMax()
Returns:
the rangeTopMax

setRangeTopMax

public void setRangeTopMax(Number rangeTopMax)
Parameters:
rangeTopMax - the rangeTopMax to set

getRangeBottomMin

public Number getRangeBottomMin()
Returns:
the rangeBottomMin

setRangeBottomMin

public void setRangeBottomMin(Number rangeBottomMin)
Parameters:
rangeBottomMin - the rangeBottomMin to set

getRangeBottomMax

public Number getRangeBottomMax()
Returns:
the rangeBottomMax

setRangeBottomMax

public void setRangeBottomMax(Number rangeBottomMax)
Parameters:
rangeBottomMax - the rangeBottomMax to set

getDomainLeftMin

public Number getDomainLeftMin()
Returns:
the domainLeftMin

setDomainLeftMin

public void setDomainLeftMin(Number domainLeftMin)
Parameters:
domainLeftMin - the domainLeftMin to set

getDomainLeftMax

public Number getDomainLeftMax()
Returns:
the domainLeftMax

setDomainLeftMax

public void setDomainLeftMax(Number domainLeftMax)
Parameters:
domainLeftMax - the domainLeftMax to set

getDomainRightMin

public Number getDomainRightMin()
Returns:
the domainRightMin

setDomainRightMin

public void setDomainRightMin(Number domainRightMin)
Parameters:
domainRightMin - the domainRightMin to set

getDomainRightMax

public Number getDomainRightMax()
Returns:
the domainRightMax

setDomainRightMax

public void setDomainRightMax(Number domainRightMax)
Parameters:
domainRightMax - the domainRightMax to set


Copyright © 2010-2013 androidplot.com. All Rights Reserved.