|
||||||||||
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.features.FeatureGroupView
public class FeatureGroupView
Implementation of a view to display the time series for a group of features extracted from a recording.
Nested Class Summary |
---|
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 FeatureTypeGroups |
group
The feature type group of this view. |
private String |
label
The view label |
private double |
yMax
the maximum y value. |
private double |
yMin
the minimum y value. |
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 | |
---|---|
FeatureGroupView(Context context,
FeatureTypeGroups group)
Constructor |
Method Summary | |
---|---|
void |
addSeries(Double[] values,
Long[] timeStamps,
FeatureTypes type,
int color)
Method to add a series to the view. |
FeatureTypeGroups |
getGroup()
Getter for the group |
String |
getLabel()
Getter for the label |
double |
getMaxY()
Getter for the y value Maximum |
double |
getMinY()
Getter for the y value Minimum |
private void |
invalidateView()
Method to trigger a redraw of the contained view. |
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, getMinX, 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 double yMin
private double yMax
private final FeatureTypeGroups group
private final String label
Constructor Detail |
---|
public FeatureGroupView(Context context, FeatureTypeGroups group)
context
- the contextgroup
- the feature type group of this viewMethod Detail |
---|
public String getLabel()
public double getMinY()
getMinY
in class com.jjoe64.graphview.GraphView
public double getMaxY()
getMaxY
in class com.jjoe64.graphview.GraphView
public FeatureTypeGroups getGroup()
public void addSeries(Double[] values, Long[] timeStamps, FeatureTypes type, int color)
values
- the values for the seriestimeStamps
- the time stamps for the seriestype
- the feature type of this seriescolor
- the graph colorprivate void invalidateView()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |