|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.view.View
com.androidplot.Plot<SeriesType,FormatterType,RendererType>
public abstract class Plot<SeriesType extends Series,FormatterType extends Formatter,RendererType extends DataRenderer>
Base class for all other Plot implementations..
Nested Class Summary | |
---|---|
static class |
Plot.BorderStyle
|
Nested classes/interfaces inherited from class android.view.View |
---|
android.view.View.BaseSavedState, android.view.View.MeasureSpec, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnFocusChangeListener, android.view.View.OnKeyListener, android.view.View.OnLongClickListener, android.view.View.OnTouchListener |
Field Summary |
---|
Fields inherited from class android.view.View |
---|
DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, INVISIBLE, KEEP_SCREEN_ON, NO_ID, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, VISIBLE |
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)
Required by super-class. |
Method Summary | |
---|---|
boolean |
addListener(PlotListener listener)
|
boolean |
addSeries(SeriesType series,
Class rendererClass,
FormatterType formatter)
Will *immediately* throw ClassCastException if rendererClass is not an instance of RendererType. |
void |
disableAllMarkup()
|
android.graphics.Paint |
getBackgroundPaint()
|
android.graphics.Paint |
getBorderPaint()
|
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()
|
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()
|
TitleWidget |
getTitleWidget()
|
boolean |
isDrawBorderEnabled()
|
boolean |
isEmpty()
|
void |
position(Widget element,
float x,
XLayoutStyle xLayoutStyle,
float y,
YLayoutStyle yLayoutStyle)
Convenience method - wraps LayoutManager.position(). |
void |
position(Widget element,
float x,
XLayoutStyle xLayoutStyle,
float y,
YLayoutStyle yLayoutStyle,
AnchorPosition anchor)
Convenience method - wraps LayoutManager.positon(). |
void |
postRedraw()
Invalidates the Plot's underlying View and blocks until it is redrawn. |
void |
postRedraw(boolean isBlocking)
|
void |
redraw()
Causes the plot to be redrawn. |
boolean |
removeListener(PlotListener listener)
|
void |
removeSeries(SeriesType series)
|
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 |
setDrawBorderEnabled(boolean drawBorderEnabled)
|
boolean |
setFormatter(SeriesType series,
Class rendererClass,
FormatterType formatter)
|
void |
setLayoutManager(LayoutManager layoutManager)
|
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 |
setTitle(String title)
|
void |
setTitleWidget(TitleWidget titleWidget)
|
Methods inherited from class android.view.View |
---|
addFocusables, addFocusables, addTouchables, bringToFront, buildDrawingCache, buildDrawingCache, cancelLongPress, checkInputConnectionProxy, clearAnimation, clearFocus, computeScroll, createContextMenu, destroyDrawingCache, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, draw, findFocus, findViewById, findViewWithTag, focusSearch, forceLayout, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getContentDescription, getContext, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getKeepScreenOn, getKeyDispatcherState, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getNextFocusDownId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRootView, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getTag, getTag, getTop, getTouchables, getTouchDelegate, getVerticalFadingEdgeLength, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, hasFocus, hasFocusable, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, isClickable, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPressed, isSaveEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onCheckIsTextEditor, onCreateInputConnection, onFinishTemporaryDetach, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAnimation, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setKeepScreenOn, setLayoutParams, setLongClickable, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnKeyListener, setOnLongClickListener, setOnTouchListener, setPadding, setPressed, setSaveEnabled, setScrollbarFadingEnabled, setScrollBarStyle, setScrollContainer, setSelected, setSoundEffectsEnabled, setTag, setTag, setTouchDelegate, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, showContextMenu, startAnimation, 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)
context
- Android Context used to doBeforeDraw this Plot.public Plot(android.content.Context context, android.util.AttributeSet attrs)
context
- attrs
- public Plot(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
context
- attrs
- defStyle
- Method Detail |
---|
public boolean addListener(PlotListener listener)
public boolean removeListener(PlotListener listener)
public void position(Widget element, float x, XLayoutStyle xLayoutStyle, float y, YLayoutStyle yLayoutStyle)
element
- x
- xLayoutStyle
- y
- yLayoutStyle
- public void position(Widget element, float x, XLayoutStyle xLayoutStyle, float y, YLayoutStyle yLayoutStyle, AnchorPosition anchor)
element
- x
- xLayoutStyle
- y
- yLayoutStyle
- anchor
- public boolean addSeries(SeriesType series, Class rendererClass, FormatterType formatter)
series
- rendererClass
- public boolean removeSeries(SeriesType series, Class rendererClass)
public void removeSeries(SeriesType series)
public boolean isEmpty()
public FormatterType getFormatter(SeriesType series, Class rendererClass)
public boolean setFormatter(SeriesType series, Class rendererClass, FormatterType formatter)
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 disableAllMarkup()
public void redraw()
InterruptedException
public void postRedraw() throws InterruptedException
InterruptedException
public void postRedraw(boolean isBlocking) throws InterruptedException
InterruptedException
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 boolean isDrawBorderEnabled()
public void setDrawBorderEnabled(boolean drawBorderEnabled)
public TitleWidget getTitleWidget()
public void setTitleWidget(TitleWidget 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 |