|
||||||||||
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 |
---|
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 |
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()
|
FormatterType |
getFormatter(SeriesType series,
Class rendererClass)
|
android.os.Handler |
getHandler()
Get the Handler used to manage display updates. |
LayoutManager |
getLayoutManager()
|
float |
getMarginBottom()
|
float |
getMarginLeft()
|
float |
getMarginRight()
|
float |
getMarginTop()
|
List<RendererType> |
getRendererList()
|
List<SeriesType> |
getSeriesListForRenderer(Class rendererClass)
|
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 |
redraw()
|
void |
removeSeries(SeriesType series)
|
boolean |
removeSeries(SeriesType series,
Class rendererClass)
|
void |
setBackgroundPaint(android.graphics.Paint backgroundPaint)
|
void |
setDrawBorderEnabled(boolean drawBorderEnabled)
|
boolean |
setFormatter(SeriesType series,
Class rendererClass,
FormatterType formatter)
|
void |
setHandler(android.os.Handler handler)
Set the Handler used to manage display updates. |
void |
setLayoutManager(LayoutManager layoutManager)
|
void |
setMarginBottom(float marginBottom)
|
void |
setMarginLeft(float marginLeft)
|
void |
setMarginRight(float marginRight)
|
void |
setMarginTop(float marginTop)
|
void |
setTitle(String title)
|
void |
setTitleWidget(TitleWidget titleWidget)
|
void |
update(Observable o,
Object arg)
Causes the Plot to be redrawn. |
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, 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 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 List<SeriesType> getSeriesListForRenderer(Class rendererClass)
public List<RendererType> getRendererList()
public void disableAllMarkup()
public void redraw()
public android.os.Handler getHandler()
getHandler
in class android.view.View
public void setHandler(android.os.Handler handler)
handler
- 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 float getMarginTop()
public void setMarginTop(float marginTop)
public float getMarginBottom()
public void setMarginBottom(float marginBottom)
public float getMarginLeft()
public void setMarginLeft(float marginLeft)
public float getMarginRight()
public void setMarginRight(float marginRight)
public void update(Observable o, Object arg)
update
in interface Observer
o
- arg
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |