|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectandroid.view.View
android.view.ViewGroup
android.widget.LinearLayout
com.jjoe64.graphview.GraphView
com.jjoe64.graphview.LineGraphView
org.android.activityminer.app.filter.FilterAxisView
public class FilterAxisView
| Nested Class Summary | |
|---|---|
static class |
FilterAxisView.AxisTypes
Enumeration for the known axis view types. |
| Nested classes/interfaces inherited from class com.jjoe64.graphview.GraphView |
|---|
com.jjoe64.graphview.GraphView.GraphViewData, com.jjoe64.graphview.GraphView.LegendAlign |
| Nested classes/interfaces inherited from class android.widget.LinearLayout |
|---|
LinearLayout.LayoutParams |
| Nested classes/interfaces inherited from class android.view.ViewGroup |
|---|
ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener |
| Field Summary | |
|---|---|
private Context |
context
The context, |
private SparseArray<SeriesAdapter> |
mapSeries
The graph view series for the filter types. |
private FilterAxisView.AxisTypes |
type
The axis type identifier of this view. |
private boolean[] |
visible
The series visibility flags. |
| Fields inherited from class com.jjoe64.graphview.GraphView |
|---|
graphViewStyle, paint |
| Fields inherited from class android.widget.LinearLayout |
|---|
HORIZONTAL, SHOW_DIVIDER_BEGINNING, SHOW_DIVIDER_END, SHOW_DIVIDER_MIDDLE, SHOW_DIVIDER_NONE, VERTICAL |
| Fields inherited from class android.view.ViewGroup |
|---|
CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE |
| Constructor Summary | |
|---|---|
private |
FilterAxisView(Context context,
AttributeSet attrs)
Constructor |
|
FilterAxisView(Context context,
AttributeSet attrs,
FilterAxisView.AxisTypes type)
Constructor |
|
FilterAxisView(Context context,
FilterAxisView.AxisTypes type)
Constructor |
| Method Summary | |
|---|---|
double |
getMaxTS()
Getter for the maximum time stamp |
FilterAxisView.AxisTypes |
getType()
Getter for the type |
protected void |
initStyles()
Style initialization |
private boolean |
isVisible(FilterTypes filterType)
Method to test for visibility of the series of a specific filter type. |
void |
setSeriesVisible(FilterTypes filterType,
boolean visible)
Method to change the visibility state of a filter type series. |
void |
updateSeries(Double[] values,
Long[] timeStamps,
FilterTypes filterType,
int color)
Method to update the data point series for specific filter type. |
| Methods inherited from class com.jjoe64.graphview.LineGraphView |
|---|
drawSeries, getBackgroundColor, getDataPointsRadius, getDrawBackground, getDrawDataPoints, setBackgroundColor, setDataPointsRadius, setDrawBackground, setDrawDataPoints |
| Methods inherited from class com.jjoe64.graphview.GraphView |
|---|
addSeries, drawHorizontalLabels, drawLegend, formatLabel, getCustomLabelFormatter, getGraphViewStyle, getLegendAlign, getLegendWidth, getMaxX, getMaxY, getMinX, getMinY, isDisableTouch, isScrollable, isShowLegend, redrawAll, removeAllSeries, removeSeries, removeSeries, scrollToEnd, setCustomLabelFormatter, setDisableTouch, setGraphViewStyle, setHorizontalLabels, setLegendAlign, setLegendWidth, setManualYAxis, setManualYAxisBounds, setScalable, setScrollable, setShowLegend, setTitle, setVerticalLabels, setViewPort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final FilterAxisView.AxisTypes type
private final SparseArray<SeriesAdapter> mapSeries
private final boolean[] visible
private final Context context
| Constructor Detail |
|---|
public FilterAxisView(Context context,
AttributeSet attrs,
FilterAxisView.AxisTypes type)
context - the contextattrs - the attribute settype - the axis type identifier
private FilterAxisView(Context context,
AttributeSet attrs)
context - the contextattrs - the attribute set
public FilterAxisView(Context context,
FilterAxisView.AxisTypes type)
context - the contexttype - the axis type identifier| Method Detail |
|---|
protected void initStyles()
public FilterAxisView.AxisTypes getType()
public void updateSeries(Double[] values,
Long[] timeStamps,
FilterTypes filterType,
int color)
values - the values for the seriestimeStamps - the time stamps for the seriesfilterType - the filter type identifiercolor - the drawing color for the seriesprivate boolean isVisible(FilterTypes filterType)
filterType - the filter type
public void setSeriesVisible(FilterTypes filterType,
boolean visible)
filterType - the filter typevisible - the visible statepublic final double getMaxTS()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||