|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectView
com.java4less.rchart.android.ChartPanel
public class ChartPanel
View that renders a chart. It also captures the mouse events and sends them to the Chart object. You will normally use the ChartViewer class instead of this canvas.
Field Summary | |
---|---|
static java.lang.String |
TAG
|
Fields inherited from interface com.java4less.rchart.ChartListener |
---|
EVENT_AFTER_UPDATE, EVENT_BEFORE_UPDATE, EVENT_CHART_CLICKED, EVENT_ENTER_POINT, EVENT_LEAVE_POINT, EVENT_POINT_CLICKED, EVENT_TIP_UPDATE |
Constructor Summary | |
---|---|
ChartPanel(Context context)
create panel |
Method Summary | |
---|---|
void |
chartEvent(Chart c,
int type)
chart listener |
Chart |
getChart()
get chart to display |
void |
onClick(View v)
|
void |
onDraw(Canvas g)
paint chart here |
boolean |
onTouch(View v,
MotionEvent e)
|
void |
paintUserExit(Chart c,
ChartGraphics g)
chart listener |
void |
setChart(Chart c)
set chart to display |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String TAG
Constructor Detail |
---|
public ChartPanel(Context context)
Method Detail |
---|
public Chart getChart()
public void setChart(Chart c)
c
- public void onDraw(Canvas g)
public void paintUserExit(Chart c, ChartGraphics g)
paintUserExit
in interface ChartListener
c
- g
- public void chartEvent(Chart c, int type)
chartEvent
in interface ChartListener
c
- type
- public void onClick(View v)
public boolean onTouch(View v, MotionEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |