diff --git a/doc/com/jjoe64/graphview/BarGraphView.html b/doc/com/jjoe64/graphview/BarGraphView.html new file mode 100644 index 000000000..53e538112 --- /dev/null +++ b/doc/com/jjoe64/graphview/BarGraphView.html @@ -0,0 +1,349 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + LinearLayout + com.jjoe64.graphview.GraphView + com.jjoe64.graphview.BarGraphView ++
public class BarGraphView
+Draws a Bar Chart +
+ +
+
+Nested Class Summary | +
---|
Nested classes/interfaces inherited from class com.jjoe64.graphview.GraphView | +
---|
GraphView.GraphViewData, GraphView.LegendAlign |
+
+Field Summary | +
---|
Fields inherited from class com.jjoe64.graphview.GraphView | +
---|
paint |
+
+Constructor Summary | +|
---|---|
BarGraphView(Context context,
+ AttributeSet attrs)
+
++ |
+|
BarGraphView(Context context,
+ java.lang.String title)
+
++ |
+
+Method Summary | +|
---|---|
+ void |
+drawSeries(Canvas canvas,
+ GraphViewDataInterface[] values,
+ float graphwidth,
+ float graphheight,
+ float border,
+ double minX,
+ double minY,
+ double diffX,
+ double diffY,
+ float horstart,
+ GraphViewSeries.GraphViewSeriesStyle style)
+
++ |
+
Methods inherited from class com.jjoe64.graphview.GraphView | +
---|
addSeries, 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, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public BarGraphView(Context context, + AttributeSet attrs)+
+public BarGraphView(Context context, + java.lang.String title)+
+Method Detail | +
---|
+public void drawSeries(Canvas canvas, + GraphViewDataInterface[] values, + float graphwidth, + float graphheight, + float border, + double minX, + double minY, + double diffX, + double diffY, + float horstart, + GraphViewSeries.GraphViewSeriesStyle style)+
drawSeries
in class GraphView
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface CustomLabelFormatter
+if you want to show different labels,
+ you can use this label formatter.
+ As Input you get the raw value (x or y) and
+ you return a String that will be displayed.
+ graphView.setCustomLabelFormatter(new CustomLabelFormatter() {
+ public String formatLabel(double value, boolean isValueX) {
+ if (isValueX) {
+ if (value < 5) {
+ return "small";
+ } else if (value < 15) {
+ return "middle";
+ } else {
+ return "big";
+ }
+ }
+ return null; // let graphview generate Y-axis label for us
+ }
+ });
+
+
+ +
+
+Method Summary | +|
---|---|
+ java.lang.String |
+formatLabel(double value,
+ boolean isValueX)
+
++ will be called when the labels were generated |
+
+Method Detail | +
---|
+java.lang.String formatLabel(double value, + boolean isValueX)+
+
value
- the raw input value (x or y)isValueX
- true if value is a x-value, false if otherwise
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
Package | +Overview | +Package | Class | Use | Tree | @@ -55,7 +56,7 @@
PREV CLASS - NEXT CLASS | + NEXT CLASSFRAMES NO FRAMES @@ -75,9 +76,9 @@ | ||||
- SUMMARY: NESTED | FIELD | CONSTR | METHOD | + SUMMARY: NESTED | FIELD | CONSTR | METHOD-DETAIL: FIELD | CONSTR | METHOD | +DETAIL: FIELD | CONSTR | METHOD
public static class GraphView.GraphViewData
public static class GraphView.GraphViewData
-one data set for the graph +one data set for a graph series
+Field Summary | +|
---|---|
+ double |
+valueX
+
++ |
+
+ double |
+valueY
+
++ |
+
double
getX()
+
+ double
getY()
+
++Field Detail | +
---|
+public final double valueX+
+public final double valueY+
+Method Detail | +
---|
+public double getX()+
getX
in interface GraphViewDataInterface
+public double getY()+
getY
in interface GraphViewDataInterface
Package | +Overview | +Package | Class | Use | Tree | @@ -197,7 +309,7 @@||||
PREV CLASS - NEXT CLASS | + NEXT CLASS
FRAMES
NO FRAMES
@@ -217,9 +329,9 @@ | ||||||||
- SUMMARY: NESTED | FIELD | CONSTR | METHOD | + SUMMARY: NESTED | FIELD | CONSTR | METHOD-DETAIL: FIELD | CONSTR | METHOD | +DETAIL: FIELD | CONSTR | METHOD
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+java.lang.Object + java.lang.Enum<GraphView.LegendAlign> + com.jjoe64.graphview.GraphView.LegendAlign ++
public static enum GraphView.LegendAlign
+
+Enum Constant Summary | +|
---|---|
BOTTOM
+
++ |
+|
MIDDLE
+
++ |
+|
TOP
+
++ |
+
+Method Summary | +|
---|---|
+static GraphView.LegendAlign |
+valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static GraphView.LegendAlign[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
Methods inherited from class java.lang.Enum | +
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
Methods inherited from class java.lang.Object | +
---|
getClass, notify, notifyAll, wait, wait, wait |
+
+Enum Constant Detail | +
---|
+public static final GraphView.LegendAlign TOP+
+public static final GraphView.LegendAlign MIDDLE+
+public static final GraphView.LegendAlign BOTTOM+
+Method Detail | +
---|
+public static GraphView.LegendAlign[] values()+
+for (GraphView.LegendAlign c : GraphView.LegendAlign.values()) + System.out.println(c); ++
+
+public static GraphView.LegendAlign valueOf(java.lang.String name)+
+
name
- the name of the enum constant to be returned.
+java.lang.IllegalArgumentException
- if this enum type has no constant
+with the specified name
+java.lang.NullPointerException
- if the argument is null
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
Package | +Overview | +Package | Class | Use | Tree | @@ -54,7 +55,7 @@
- PREV CLASS + PREV CLASS NEXT CLASS | FRAMES @@ -75,9 +76,9 @@ | ||||
- SUMMARY: NESTED | FIELD | CONSTR | METHOD | + SUMMARY: NESTED | FIELD | CONSTR | METHOD-DETAIL: FIELD | CONSTR | METHOD | +DETAIL: FIELD | CONSTR | METHOD
public class GraphView
public abstract class GraphView
-GraphView creates a scaled line graph with x and y axis labels.
+GraphView is a Android View for creating zoomable and scrollable graphs.
+ This is the abstract base class for all graphs. Extend this class and implement #drawSeries(Canvas, GraphViewDataInterface[], float, float, float, double, double, double, double, float)
to display a custom graph.
+ Use LineGraphView
for creating a line chart.
+
@@ -122,7 +136,32 @@
GraphView.GraphViewData
static class
GraphView.LegendAlign
+
++Field Summary | +|
---|---|
+protected Paint |
+paint
+
++ |
GraphView(Context context,
- GraphView.GraphViewData[] values,
- java.lang.String title,
- java.lang.String[] horlabels,
- java.lang.String[] verlabels)
+GraphView(Context context,
+ AttributeSet attrs)
+
+GraphView(Context context,
+ java.lang.String title)
void
addSeries(GraphViewSeries series)
+
+protected void
drawLegend(Canvas canvas,
+ float height,
+ float width)
+
+protected abstract void
drawSeries(Canvas canvas,
+ GraphViewDataInterface[] values,
+ float graphwidth,
+ float graphheight,
+ float border,
+ double minX,
+ double minY,
+ double diffX,
+ double diffY,
+ float horstart,
+ GraphViewSeries.GraphViewSeriesStyle style)
+
+protected java.lang.String
formatLabel(double value)
+formatLabel(double value,
+ boolean isValueX)
setCustomLabelFormatter(CustomLabelFormatter)
+ CustomLabelFormatter
getCustomLabelFormatter()
+
+ GraphViewStyle
getGraphViewStyle()
+
+ GraphView.LegendAlign
getLegendAlign()
+
+ float
getLegendWidth()
+
+protected double
getMaxX(boolean ignoreViewport)
+
+protected double
getMaxY()
+
+protected double
getMinX(boolean ignoreViewport)
+
+protected double
getMinY()
+
+ boolean
getDrawBackground()
+isDisableTouch()
void
setDrawBackground(boolean drawBackground)
+ boolean
isShowLegend()
void
redrawAll()
+
+ void
removeAllSeries()
+
+ void
removeSeries(GraphViewSeries series)
+
+ void
removeSeries(int index)
+
+ void
scrollToEnd()
+
+ void
setCustomLabelFormatter(CustomLabelFormatter customLabelFormatter)
+
+ void
setDisableTouch(boolean disableTouch)
+
+ void
setGraphViewStyle(GraphViewStyle style)
+
+ void
setHorizontalLabels(java.lang.String[] horlabels)
+
+ void
setLegendAlign(GraphView.LegendAlign legendAlign)
+
+ void
setLegendWidth(float legendWidth)
+
+ void
setManualYAxis(boolean manualYAxis)
+
+setManualYAxisBounds(double, double)
. void
setManualYAxisBounds(double max,
+ double min)
+
+ void
setScalable(boolean scalable)
void
setShowLegend(boolean showLegend)
+
+ void
setTitle(java.lang.String title)
+
+ void
setVerticalLabels(java.lang.String[] verlabels)
+
+ void
setViewPort(double start,
double size)
@@ -225,6 +499,25 @@ +Field Detail | +
---|
+protected final Paint paint+
public GraphView(Context context, - GraphView.GraphViewData[] values, - java.lang.String title, - java.lang.String[] horlabels, - java.lang.String[] verlabels)+ AttributeSet attrs) +
+public GraphView(Context context, + java.lang.String title)
context
- values
- must be sorted by valueX ASCtitle
- [optional]horlabels
- [optional] if null, labels were generated automaticallyverlabels
- [optional] if null, labels were generated automaticallycontext
- title
- [optional]+public void addSeries(GraphViewSeries series)+
+
series
- +protected void drawLegend(Canvas canvas, + float height, + float width)+
+protected abstract void drawSeries(Canvas canvas, + GraphViewDataInterface[] values, + float graphwidth, + float graphheight, + float border, + double minX, + double minY, + double diffX, + double diffY, + float horstart, + GraphViewSeries.GraphViewSeriesStyle style)+
-protected java.lang.String formatLabel(double value)+@Deprecated +protected java.lang.String formatLabel(double value, + boolean isValueX)
setCustomLabelFormatter(CustomLabelFormatter)
+
value
- x and y values
+value
- x and y valuesisValueX
- if false, value y wants to be formatted
-public boolean getDrawBackground()+public CustomLabelFormatter getCustomLabelFormatter() +
+public GraphViewStyle getGraphViewStyle()+
+public GraphView.LegendAlign getLegendAlign()+
+
+public float getLegendWidth()+
+protected double getMaxX(boolean ignoreViewport)+
+
ignoreViewport
- warning: only override this, if you really know want you're doing!+protected double getMaxY()+
+
+protected double getMinX(boolean ignoreViewport)+
+
ignoreViewport
- warning: only override this, if you really know want you're doing!+protected double getMinY()+
+
+public boolean isDisableTouch()
+public boolean isShowLegend()+
-public void setDrawBackground(boolean drawBackground)+public void redrawAll()
drawBackground
- true for a light blue background under the graph line+public void removeAllSeries()+
+
+public void removeSeries(GraphViewSeries series)+
+
series
- series to remove+public void removeSeries(int index)+
+
index
- +public void scrollToEnd()+
+
java.lang.IllegalStateException
- if scrollable == false+public void setCustomLabelFormatter(CustomLabelFormatter customLabelFormatter)+
+
customLabelFormatter
- +public void setDisableTouch(boolean disableTouch)+
+
disableTouch
- +public void setGraphViewStyle(GraphViewStyle style)+
+
style
- +public void setHorizontalLabels(java.lang.String[] horlabels)+
+
horlabels
- if null, labels were generated automatically+public void setLegendAlign(GraphView.LegendAlign legendAlign)+
+
legendAlign
- +public void setLegendWidth(float legendWidth)+
+
legendWidth
- +public void setManualYAxis(boolean manualYAxis)+
setManualYAxisBounds(double, double)
. That automatically enables manualYAxis-flag.
+ if you want to disable the menual y axis, call this method with false.
++
manualYAxis
- +public void setManualYAxisBounds(double max, + double min)+
+
max
- min
- +public void setShowLegend(boolean showLegend)+
+public void setTitle(java.lang.String title)+
+
title
- +public void setVerticalLabels(java.lang.String[] verlabels)+
+
verlabels
- if null, labels were generated automatically@@ -341,7 +1010,7 @@
set's the viewport for the graph.
-
+- Parameters:
start
- x-valuesize
-Parameters: start
- x-valuesize
-See Also: @@ -357,7 +1026,8 @@ to limit the y-viewport
Package | +Overview | +Package | Class | Use | Tree | @@ -374,7 +1044,7 @@||||
- PREV CLASS + PREV CLASS NEXT CLASS |
FRAMES
@@ -395,9 +1065,9 @@ | ||||||||
- SUMMARY: NESTED | FIELD | CONSTR | METHOD | + SUMMARY: NESTED | FIELD | CONSTR | METHOD-DETAIL: FIELD | CONSTR | METHOD | +DETAIL: FIELD | CONSTR | METHOD
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface GraphViewDataInterface
+the base interface for the graphview data. + you can use your own data models, when they implement + this interface. +
+ +
+
+Method Summary | +|
---|---|
+ double |
+getX()
+
++ |
+
+ double |
+getY()
+
++ |
+
+Method Detail | +
---|
+double getX()+
+double getY()+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + com.jjoe64.graphview.GraphViewSeries.GraphViewSeriesStyle ++
public static class GraphViewSeries.GraphViewSeriesStyle
+graph series style: color and thickness +
+ +
+
+Field Summary | +|
---|---|
+ int |
+color
+
++ |
+
+ int |
+thickness
+
++ |
+
+Constructor Summary | +|
---|---|
GraphViewSeries.GraphViewSeriesStyle()
+
++ |
+|
GraphViewSeries.GraphViewSeriesStyle(int color,
+ int thickness)
+
++ |
+
+Method Summary | +|
---|---|
+ ValueDependentColor |
+getValueDependentColor()
+
++ |
+
+ void |
+setValueDependentColor(ValueDependentColor valueDependentColor)
+
++ the color depends on the value of the data. |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public int color+
+public int thickness+
+Constructor Detail | +
---|
+public GraphViewSeries.GraphViewSeriesStyle()+
+public GraphViewSeries.GraphViewSeriesStyle(int color, + int thickness)+
+Method Detail | +
---|
+public ValueDependentColor getValueDependentColor()+
+public void setValueDependentColor(ValueDependentColor valueDependentColor)+
+
valueDependentColor
-
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + com.jjoe64.graphview.GraphViewSeries ++
public class GraphViewSeries
+a graphview series. + holds the data, description and styles +
+ +
+
+Nested Class Summary | +|
---|---|
+static class |
+GraphViewSeries.GraphViewSeriesStyle
+
++ graph series style: color and thickness |
+
+Constructor Summary | +|
---|---|
GraphViewSeries(GraphViewDataInterface[] values)
+
++ |
+|
GraphViewSeries(java.lang.String description,
+ GraphViewSeries.GraphViewSeriesStyle style,
+ GraphViewDataInterface[] values)
+
++ |
+
+Method Summary | +|
---|---|
+ void |
+addGraphView(GraphView graphView)
+
++ this graphview will be redrawn if data changes |
+
+ void |
+appendData(GraphViewDataInterface value,
+ boolean scrollToEnd)
+
++ Deprecated. please use appendData(GraphViewDataInterface, boolean, int) to avoid memory overflow |
+
+ void |
+appendData(GraphViewDataInterface value,
+ boolean scrollToEnd,
+ int maxDataCount)
+
++ add one data to current data |
+
+ GraphViewSeries.GraphViewSeriesStyle |
+getStyle()
+
++ |
+
+ void |
+removeGraphView(GraphView graphView)
+
++ you should use GraphView.removeSeries(GraphViewSeries) |
+
+ void |
+resetData(GraphViewDataInterface[] values)
+
++ clears the current data and set the new. |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public GraphViewSeries(GraphViewDataInterface[] values)+
+public GraphViewSeries(java.lang.String description, + GraphViewSeries.GraphViewSeriesStyle style, + GraphViewDataInterface[] values)+
+Method Detail | +
---|
+public void addGraphView(GraphView graphView)+
+
graphView
- +@Deprecated +public void appendData(GraphViewDataInterface value, + boolean scrollToEnd)+
appendData(GraphViewDataInterface, boolean, int)
to avoid memory overflow
++
+
value
- the new data to appendscrollToEnd
- true => graphview will scroll to the end (maxX)+public void appendData(GraphViewDataInterface value, + boolean scrollToEnd, + int maxDataCount)+
+
value
- the new data to appendscrollToEnd
- true => graphview will scroll to the end (maxX)maxDataCount
- if max data count is reached, the oldest data value will be lost+public GraphViewSeries.GraphViewSeriesStyle getStyle()+
+public void removeGraphView(GraphView graphView)+
GraphView.removeSeries(GraphViewSeries)
++
graphView
- +public void resetData(GraphViewDataInterface[] values)+
+
values
- new data
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + com.jjoe64.graphview.GraphViewStyle ++
public class GraphViewStyle
+Styles for the GraphView + Important: Use GraphViewSeries.GraphViewSeriesStyle for series-specify styling +
+ +
+
+Constructor Summary | +|
---|---|
GraphViewStyle()
+
++ |
+|
GraphViewStyle(int vLabelsColor,
+ int hLabelsColor,
+ int gridColor)
+
++ |
+
+Method Summary | +|
---|---|
+ int |
+getGridColor()
+
++ |
+
+ int |
+getHorizontalLabelsColor()
+
++ |
+
+ int |
+getNumHorizontalLabels()
+
++ |
+
+ int |
+getNumVerticalLabels()
+
++ |
+
+ float |
+getTextSize()
+
++ |
+
+ int |
+getVerticalLabelsColor()
+
++ |
+
+ int |
+getVerticalLabelsWidth()
+
++ |
+
+ void |
+setGridColor(int c)
+
++ |
+
+ void |
+setHorizontalLabelsColor(int c)
+
++ |
+
+ void |
+setNumHorizontalLabels(int numHorizontalLabels)
+
++ |
+
+ void |
+setNumVerticalLabels(int numVerticalLabels)
+
++ |
+
+ void |
+setTextSize(float textSize)
+
++ |
+
+ void |
+setVerticalLabelsColor(int c)
+
++ |
+
+ void |
+setVerticalLabelsWidth(int verticalLabelsWidth)
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public GraphViewStyle()+
+public GraphViewStyle(int vLabelsColor, + int hLabelsColor, + int gridColor)+
+Method Detail | +
---|
+public int getGridColor()+
+public int getHorizontalLabelsColor()+
+public int getNumHorizontalLabels()+
+public int getNumVerticalLabels()+
+public float getTextSize()+
+public int getVerticalLabelsColor()+
+public int getVerticalLabelsWidth()+
+public void setGridColor(int c)+
+public void setHorizontalLabelsColor(int c)+
+public void setNumHorizontalLabels(int numHorizontalLabels)+
numHorizontalLabels
- 0 = auto+public void setNumVerticalLabels(int numVerticalLabels)+
numVerticalLabels
- 0 = auto+public void setTextSize(float textSize)+
+public void setVerticalLabelsColor(int c)+
+public void setVerticalLabelsWidth(int verticalLabelsWidth)+
verticalLabelsWidth
- 0 = auto
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + LinearLayout + com.jjoe64.graphview.GraphView + com.jjoe64.graphview.LineGraphView ++
public class LineGraphView
+Line Graph View. This draws a line chart. +
+ +
+
+Nested Class Summary | +
---|
Nested classes/interfaces inherited from class com.jjoe64.graphview.GraphView | +
---|
GraphView.GraphViewData, GraphView.LegendAlign |
+
+Field Summary | +
---|
Fields inherited from class com.jjoe64.graphview.GraphView | +
---|
paint |
+
+Constructor Summary | +|
---|---|
LineGraphView(Context context,
+ AttributeSet attrs)
+
++ |
+|
LineGraphView(Context context,
+ java.lang.String title)
+
++ |
+
+Method Summary | +|
---|---|
+ void |
+drawSeries(Canvas canvas,
+ GraphViewDataInterface[] values,
+ float graphwidth,
+ float graphheight,
+ float border,
+ double minX,
+ double minY,
+ double diffX,
+ double diffY,
+ float horstart,
+ GraphViewSeries.GraphViewSeriesStyle style)
+
++ |
+
+ int |
+getBackgroundColor()
+
++ |
+
+ boolean |
+getDrawBackground()
+
++ |
+
+ void |
+setBackgroundColor(int color)
+
++ |
+
+ void |
+setDrawBackground(boolean drawBackground)
+
++ |
+
Methods inherited from class com.jjoe64.graphview.GraphView | +
---|
addSeries, 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, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public LineGraphView(Context context, + AttributeSet attrs)+
+public LineGraphView(Context context, + java.lang.String title)+
+Method Detail | +
---|
+public void drawSeries(Canvas canvas, + GraphViewDataInterface[] values, + float graphwidth, + float graphheight, + float border, + double minX, + double minY, + double diffX, + double diffY, + float horstart, + GraphViewSeries.GraphViewSeriesStyle style)+
drawSeries
in class GraphView
+public int getBackgroundColor()+
+public boolean getDrawBackground()+
+public void setBackgroundColor(int color)+
+public void setDrawBackground(boolean drawBackground)+
drawBackground
- true for a light blue background under the graph line
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface ValueDependentColor
+you can change the color depending on the value. + takes only effect in BarGraphView +
+ +
+
+Method Summary | +|
---|---|
+ int |
+get(GraphViewDataInterface data)
+
++ |
+
+Method Detail | +
---|
+int get(GraphViewDataInterface data)+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + com.jjoe64.graphview.compatible.ScaleGestureDetector + com.jjoe64.graphview.compatible.RealScaleGestureDetector ++
+ +
+Nested Class Summary | +
---|
Nested classes/interfaces inherited from class com.jjoe64.graphview.compatible.ScaleGestureDetector | +
---|
ScaleGestureDetector.SimpleOnScaleGestureListener |
+
+Constructor Summary | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RealScaleGestureDetector(Context context,
+ ScaleGestureDetector fakeScaleGestureDetector,
+ ScaleGestureDetector.SimpleOnScaleGestureListener fakeListener)
+
++ + + + +
+RealScaleGestureDetector++public RealScaleGestureDetector(Context context, + ScaleGestureDetector fakeScaleGestureDetector, + ScaleGestureDetector.SimpleOnScaleGestureListener fakeListener)+
+ + + + + +
+ + + diff --git a/doc/com/jjoe64/graphview/compatible/ScaleGestureDetector.SimpleOnScaleGestureListener.html b/doc/com/jjoe64/graphview/compatible/ScaleGestureDetector.SimpleOnScaleGestureListener.html new file mode 100644 index 000000000..56a153a95 --- /dev/null +++ b/doc/com/jjoe64/graphview/compatible/ScaleGestureDetector.SimpleOnScaleGestureListener.html @@ -0,0 +1,209 @@ + + + + + + + + + + + +
+ +
+
+com.jjoe64.graphview.compatible
+
+ |
+Method Summary | +|
---|---|
+ boolean |
+onScale(ScaleGestureDetector detector)
+
++ |
+
+Method Detail | +
---|
+boolean onScale(ScaleGestureDetector detector)+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + com.jjoe64.graphview.compatible.ScaleGestureDetector ++
public class ScaleGestureDetector
+
+Nested Class Summary | +|
---|---|
+static interface |
+ScaleGestureDetector.SimpleOnScaleGestureListener
+
++ |
+
+Constructor Summary | +|
---|---|
ScaleGestureDetector(Context context,
+ ScaleGestureDetector.SimpleOnScaleGestureListener simpleOnScaleGestureListener)
+
++ |
+
+Method Summary | +|
---|---|
+ double |
+getScaleFactor()
+
++ |
+
+ boolean |
+isInProgress()
+
++ |
+
+ void |
+onTouchEvent(MotionEvent event)
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public ScaleGestureDetector(Context context, + ScaleGestureDetector.SimpleOnScaleGestureListener simpleOnScaleGestureListener)+
context
- simpleOnScaleGestureListener
- +Method Detail | +
---|
+public double getScaleFactor()+
+public boolean isInProgress()+
+public void onTouchEvent(MotionEvent event)+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Interfaces
+
+ +ScaleGestureDetector.SimpleOnScaleGestureListener |
+
+Classes
+
+ +RealScaleGestureDetector + +ScaleGestureDetector |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|
---|---|
ScaleGestureDetector.SimpleOnScaleGestureListener | ++ |
+ +
+Class Summary | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RealScaleGestureDetector | +
+ + + + + +
+ + + diff --git a/doc/com/jjoe64/graphview/compatible/package-tree.html b/doc/com/jjoe64/graphview/compatible/package-tree.html new file mode 100644 index 000000000..45d66fdc3 --- /dev/null +++ b/doc/com/jjoe64/graphview/compatible/package-tree.html @@ -0,0 +1,160 @@ + + + + + + + + + + + +
+ +Hierarchy For Package com.jjoe64.graphview.compatible ++
+ +Class Hierarchy ++
+Interface Hierarchy ++
+ + + + + +
+ + + diff --git a/doc/com/jjoe64/graphview/package-frame.html b/doc/com/jjoe64/graphview/package-frame.html index adb114473..e74175d27 100644 --- a/doc/com/jjoe64/graphview/package-frame.html +++ b/doc/com/jjoe64/graphview/package-frame.html @@ -2,12 +2,12 @@ - +
|