com.androidplot.xy
Class XYPlotZoomPan

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

public class XYPlotZoomPan
extends XYPlot
implements android.view.View.OnTouchListener


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
XYPlotZoomPan(android.content.Context context, android.util.AttributeSet attrs)
           
XYPlotZoomPan(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
           
XYPlotZoomPan(android.content.Context context, String title)
           
XYPlotZoomPan(android.content.Context context, String title, Plot.RenderMode mode)
           
 
Method Summary
 boolean getZoomEnabled()
           
 boolean getZoomHorizontally()
           
 boolean getZoomVertically()
           
 boolean onTouch(android.view.View view, android.view.MotionEvent event)
           
 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 setOnTouchListener(android.view.View.OnTouchListener l)
           
 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 setZoomEnabled(boolean enabled)
           
 void setZoomHorizontally(boolean zoomHorizontally)
           
 void setZoomVertically(boolean zoomVertically)
           
 
Methods inherited from class com.androidplot.xy.XYPlot
addMarker, addMarker, calculateMinMaxVals, centerOnDomainOrigin, centerOnDomainOrigin, centerOnRangeOrigin, centerOnRangeOrigin, containsPoint, containsPoint, getCalculatedMaxX, getCalculatedMaxY, getCalculatedMinX, getCalculatedMinY, getDefaultBounds, getDomainFramingModel, getDomainLabel, getDomainLabelWidget, getDomainLeftMax, getDomainLeftMin, getDomainOrigin, getDomainRightMax, getDomainRightMin, getDomainStepMode, getDomainStepValue, getDomainValueFormat, getGraphWidget, getLegendWidget, getRangeBottomMax, getRangeBottomMin, getRangeFramingModel, getRangeLabel, getRangeLabelWidget, getRangeOrigin, getRangeStepMode, getRangeStepValue, getRangeTopMax, getRangeTopMin, getRangeValueFormat, getTicksPerDomainLabel, getTicksPerRangeLabel, getXVal, getYVal, isDrawDomainOriginEnabled, isDrawRangeOriginEnabled, removeMarker, removeMarker, removeMarkers, removeXMarkers, removeYMarkers, setCursorPosition, setCursorPosition, setDefaultBounds, setDomainLabel, setDomainLabelWidget, setDomainLeftMax, setDomainLeftMin, setDomainLowerBoundary, setDomainRightMax, setDomainRightMin, setDomainStep, setDomainStepMode, setDomainStepValue, setDomainUpperBoundary, setDomainValueFormat, setDrawDomainOriginEnabled, setDrawRangeOriginEnabled, setGraphWidget, setGridPadding, setLegendWidget, setRangeBottomMax, setRangeBottomMin, setRangeLabel, setRangeLabelWidget, setRangeLowerBoundary, setRangeStep, setRangeStepMode, setRangeStepValue, setRangeTopMax, setRangeTopMin, setRangeUpperBoundary, setRangeValueFormat, setTicksPerDomainLabel, setTicksPerRangeLabel, setUserDomainOrigin, setUserRangeOrigin, updateDomainMinMaxForOriginModel, updateRangeMinMaxForEdgeModel, 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, 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

XYPlotZoomPan

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

XYPlotZoomPan

public XYPlotZoomPan(android.content.Context context,
                     android.util.AttributeSet attrs)

XYPlotZoomPan

public XYPlotZoomPan(android.content.Context context,
                     android.util.AttributeSet attrs,
                     int defStyle)

XYPlotZoomPan

public XYPlotZoomPan(android.content.Context context,
                     String title)
Method Detail

setOnTouchListener

public void setOnTouchListener(android.view.View.OnTouchListener l)
Overrides:
setOnTouchListener in class android.view.View

getZoomVertically

public boolean getZoomVertically()

setZoomVertically

public void setZoomVertically(boolean zoomVertically)

getZoomHorizontally

public boolean getZoomHorizontally()

setZoomHorizontally

public void setZoomHorizontally(boolean zoomHorizontally)

setZoomEnabled

public void setZoomEnabled(boolean enabled)

getZoomEnabled

public boolean getZoomEnabled()

setDomainBoundaries

public void setDomainBoundaries(Number lowerBoundary,
                                BoundaryMode lowerBoundaryMode,
                                Number upperBoundary,
                                BoundaryMode upperBoundaryMode)
Description copied from class: XYPlot
Setup the boundary mode, boundary values only applicable in FIXED mode.

Overrides:
setDomainBoundaries in class XYPlot

setRangeBoundaries

public void setRangeBoundaries(Number lowerBoundary,
                               BoundaryMode lowerBoundaryMode,
                               Number upperBoundary,
                               BoundaryMode upperBoundaryMode)
Description copied from class: XYPlot
Setup the boundary mode, boundary values only applicable in FIXED mode.

Overrides:
setRangeBoundaries in class XYPlot

setDomainBoundaries

public void setDomainBoundaries(Number lowerBoundary,
                                Number upperBoundary,
                                BoundaryMode mode)
Description copied from class: XYPlot
Setup the boundary mode, boundary values only applicable in FIXED mode.

Overrides:
setDomainBoundaries in class XYPlot

setRangeBoundaries

public void setRangeBoundaries(Number lowerBoundary,
                               Number upperBoundary,
                               BoundaryMode mode)
Description copied from class: XYPlot
Setup the boundary mode, boundary values only applicable in FIXED mode.

Overrides:
setRangeBoundaries in class XYPlot

onTouch

public boolean onTouch(android.view.View view,
                       android.view.MotionEvent event)
Specified by:
onTouch in interface android.view.View.OnTouchListener


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