|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object android.view.View com.androidplot.Plot<SeriesType,FormatterType,RendererType>
public abstract class Plot<SeriesType extends Series,FormatterType extends Formatter,RendererType extends SeriesRenderer>
Base class for all other Plot implementations..
Nested Class Summary | |
---|---|
static class |
Plot.BorderStyle
|
static class |
Plot.RenderMode
The RenderMode used by a Plot to draw it's self onto the screen. |
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 | |
---|---|
Plot(android.content.Context context,
android.util.AttributeSet attrs)
Required by super-class. |
|
Plot(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
Required by super-class. |
|
Plot(android.content.Context context,
String title)
Convenience constructor - wraps Plot(android.content.Context, String, com.androidplot.Plot.RenderMode) . |
|
Plot(android.content.Context context,
String title,
Plot.RenderMode mode)
Used for programmatic instantiation. |
Method Summary | |
---|---|
boolean |
addListener(PlotListener listener)
|
boolean |
addSeries(SeriesType series,
FormatterType formatter)
|
void |
clear()
Remove all series from all renderers |
android.graphics.Paint |
getBackgroundPaint()
|
android.graphics.Paint |
getBorderPaint()
|
DisplayDimensions |
getDisplayDimensions()
|
FormatterType |
getFormatter(SeriesType series,
Class rendererClass)
|
LayoutManager |
getLayoutManager()
|
float |
getPlotMarginBottom()
|
float |
getPlotMarginLeft()
|
float |
getPlotMarginRight()
|
float |
getPlotMarginTop()
|
float |
getPlotPaddingBottom()
|
float |
getPlotPaddingLeft()
|
float |
getPlotPaddingRight()
|
float |
getPlotPaddingTop()
|
RendererType |
getRenderer(Class rendererClass)
|
List<RendererType> |
getRendererList()
|
Plot.RenderMode |
getRenderMode()
|
SeriesAndFormatterList<SeriesType,FormatterType> |
getSeriesAndFormatterListForRenderer(Class rendererClass)
|
List<SeriesType> |
getSeriesListForRenderer(Class rendererClass)
|
Set<SeriesType> |
getSeriesSet()
Returns a list of all series assigned to the various renderers within the Plot. |
String |
getTitle()
|
TextLabelWidget |
getTitleWidget()
|
boolean |
isEmpty()
|
void |
layout(DisplayDimensions dims)
Called when a change to the class' dimensions is made. |
void |
redraw()
Causes the plot to be redrawn. |
boolean |
removeListener(PlotListener listener)
|
void |
removeSeries(SeriesType series)
Remove all occorrences of series from all renderers |
boolean |
removeSeries(SeriesType series,
Class rendererClass)
|
void |
setBackgroundPaint(android.graphics.Paint backgroundPaint)
|
void |
setBorderPaint(android.graphics.Paint borderPaint)
Set's the paint used to draw the border. |
void |
setBorderStyle(Plot.BorderStyle style,
Float radiusX,
Float radiusY)
Sets the visual style of the plot's border. |
void |
setLayoutManager(LayoutManager layoutManager)
|
void |
setMarkupEnabled(boolean enabled)
|
void |
setPlotMarginBottom(float plotMarginBottom)
|
void |
setPlotMarginLeft(float plotMarginLeft)
|
void |
setPlotMarginRight(float plotMarginRight)
|
void |
setPlotMargins(float left,
float top,
float right,
float bottom)
Convenience method - wraps the individual setMarginXXX methods into a single method. |
void |
setPlotMarginTop(float plotMarginTop)
|
void |
setPlotPadding(float left,
float top,
float right,
float bottom)
Convenience method - wraps the individual setPaddingXXX methods into a single method. |
void |
setPlotPaddingBottom(float plotPaddingBottom)
|
void |
setPlotPaddingLeft(float plotPaddingLeft)
|
void |
setPlotPaddingRight(float plotPaddingRight)
|
void |
setPlotPaddingTop(float plotPaddingTop)
|
void |
setRenderMode(Plot.RenderMode mode)
Sets the render mode used by the Plot. |
void |
setTitle(String title)
|
void |
setTitleWidget(TextLabelWidget titleWidget)
|
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 |
---|
public Plot(android.content.Context context, String title)
Plot(android.content.Context, String, com.androidplot.Plot.RenderMode)
.
RenderMode is set to Plot.RenderMode.USE_BACKGROUND_THREAD
.
context
- title
- The display title of this Plot.public Plot(android.content.Context context, String title, Plot.RenderMode mode)
context
- title
- The display title of this Plot.public Plot(android.content.Context context, android.util.AttributeSet attrs)
if(getClass().equals(DerivedPlot.class) {
loadAttrs(context, attrs);
}
See XYPlot.XYPlot(android.content.Context, android.util.AttributeSet)
for an example.
context
- attrs
- public Plot(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
if(getClass().equals(DerivedPlot.class) {
loadAttrs(context, attrs);
}
See XYPlot.XYPlot(android.content.Context, android.util.AttributeSet, int)
for an example.
context
- attrs
- defStyle
- Method Detail |
---|
public DisplayDimensions getDisplayDimensions()
public void setRenderMode(Plot.RenderMode mode)
mode
- public Plot.RenderMode getRenderMode()
public boolean addListener(PlotListener listener)
public boolean removeListener(PlotListener listener)
public boolean addSeries(SeriesType series, FormatterType formatter)
series
- public boolean removeSeries(SeriesType series, Class rendererClass)
public void removeSeries(SeriesType series)
series
- public void clear()
public boolean isEmpty()
public FormatterType getFormatter(SeriesType series, Class rendererClass)
public SeriesAndFormatterList<SeriesType,FormatterType> getSeriesAndFormatterListForRenderer(Class rendererClass)
public Set<SeriesType> getSeriesSet()
public List<SeriesType> getSeriesListForRenderer(Class rendererClass)
public RendererType getRenderer(Class rendererClass)
public List<RendererType> getRendererList()
public void setMarkupEnabled(boolean enabled)
public void redraw()
public void layout(DisplayDimensions dims)
Resizable
layout
in interface Resizable
public void setBorderStyle(Plot.BorderStyle style, Float radiusX, Float radiusY)
style
- radiusX
- Sets the X radius for BorderStyle.ROUNDED. Use null for all other styles.radiusY
- Sets the Y radius for BorderStyle.ROUNDED. Use null for all other styles.public String getTitle()
public void setTitle(String title)
title
- The title to display on this Plot.public LayoutManager getLayoutManager()
public void setLayoutManager(LayoutManager layoutManager)
public TextLabelWidget getTitleWidget()
public void setTitleWidget(TextLabelWidget titleWidget)
public android.graphics.Paint getBackgroundPaint()
public void setBackgroundPaint(android.graphics.Paint backgroundPaint)
public void setPlotMargins(float left, float top, float right, float bottom)
left
- top
- right
- bottom
- public void setPlotPadding(float left, float top, float right, float bottom)
left
- top
- right
- bottom
- public float getPlotMarginTop()
public void setPlotMarginTop(float plotMarginTop)
public float getPlotMarginBottom()
public void setPlotMarginBottom(float plotMarginBottom)
public float getPlotMarginLeft()
public void setPlotMarginLeft(float plotMarginLeft)
public float getPlotMarginRight()
public void setPlotMarginRight(float plotMarginRight)
public float getPlotPaddingTop()
public void setPlotPaddingTop(float plotPaddingTop)
public float getPlotPaddingBottom()
public void setPlotPaddingBottom(float plotPaddingBottom)
public float getPlotPaddingLeft()
public void setPlotPaddingLeft(float plotPaddingLeft)
public float getPlotPaddingRight()
public void setPlotPaddingRight(float plotPaddingRight)
public android.graphics.Paint getBorderPaint()
public void setBorderPaint(android.graphics.Paint borderPaint)
borderPaint
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |