public class TChart extends View implements IChart
Title: TeeChart for Android
Description: TeeChart for Android
Copyright: (c) 2005-2019 by Steema Software. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Class and Description |
---|---|
static interface |
TChart.Scrollable |
Modifier and Type | Field and Description |
---|---|
protected AxisLabelResolver |
axisLabelResolver |
Image |
cachedImage |
protected LegendResolver |
legendResolver |
Point |
mousePosition |
protected TChart.Scrollable |
scrollable |
Constructor and Description |
---|
TChart(Context context) |
TChart(Context context,
AttributeSet attrs) |
TChart(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
void |
addChartListener(ChartListener l) |
void |
addChartMotionListener(ChartMotionListener l) |
void |
addChartMouseListener(ChartMouseListener l) |
void |
addChartPaintListener(ChartPaintListener l) |
void |
addChartPrintListener(ChartPrintListener l) |
void |
addGetAxesChartRectListener(GetAxesChartRectListener l) |
Series |
addSeries(Series s)
Adds a new Series.
|
void |
addSeriesMouseListener(SeriesMouseListener l) |
void |
checkBackground(java.lang.Object sender,
FrameworkMouseEvent e) |
boolean |
checkClickSeries() |
Graphics3D |
checkGraphics() |
void |
checkTitle(Title aTitle,
FrameworkMouseEvent e,
ClickedParts c) |
void |
copyToClipboard(java.lang.Object content) |
void |
doAfterDraw() |
void |
doAfterDrawSeries() |
void |
doAllowScroll(Axis a,
double delta,
ScrollResult result) |
void |
doBeforeDraw() |
void |
doBeforeDrawAxes() |
void |
doBeforeDrawSeries() |
void |
doChartPrint() |
void |
doClickAxis(Axis a,
FrameworkMouseEvent e) |
void |
doClickLegend(Legend legend,
FrameworkMouseEvent e) |
void |
doClickSeries(java.lang.Object sender,
Series s,
int valueIndex,
FrameworkMouseEvent e) |
void |
doDrawImage(IGraphics3D g) |
Rectangle |
doGetAxesChartRect(Rectangle rect) |
void |
doInvalidate() |
void |
doMouseMove(FrameworkMouseEvent e) |
void |
doMouseUp(FrameworkMouseEvent e) |
void |
doOnResetZoom() |
void |
doScroll(java.lang.Object sender) |
void |
doSetBuffered(boolean value) |
void |
doUnZoomed(java.lang.Object sender) |
void |
doZoomed(java.lang.Object sender) |
boolean |
drawZoomOnCachedImage() |
protected void |
fireChartAdded(ChartEvent e) |
protected boolean |
fireChartClicked(ChartMouseEvent e) |
protected void |
fireChartMotion(ChartEvent e) |
protected boolean |
fireChartMouseMove(ChartMouseEvent e) |
protected boolean |
fireChartMouseUp(ChartMouseEvent e) |
protected void |
fireChartPaint(ChartDrawEvent e) |
protected void |
fireChartPrint(ChartDrawEvent ce) |
protected Rectangle |
fireGetAxesChartRect(Rectangle rect) |
protected void |
fireSeriesClick(SeriesMouseEvent seriesClickEvent) |
Aspect |
getAspect()
Accesses view characteristics of the Chart.
3D view parameters. |
boolean |
getAutoRepaint()
Enables/Disables repainting of Chart when points are added.
Use AutoRepaint false to disable Chart repainting whilst, for example, adding a large number of points to a Chart Series. |
Axes |
getAxes() |
AxisLabelResolver |
getAxisLabelResolver() |
Image |
getBackgroundImage()
Returns background image of TChart
|
Rectangle |
getBounds() |
IGraphics3D |
getCanvas() |
Chart |
getChart() |
java.lang.Object |
getControl() |
int |
getControlHeight() |
int |
getControlWidth() |
Display |
getDisplay() |
Exports |
getExport() |
Footer |
getFooter()
Defines Text shown at the bottom of the Chart.
Use Text to enter the desired Footer lines, set Visible to True and change the Font, Frame and Brush methods. Use Alignment to control text output position. |
java.lang.Object |
getGraphics() |
IGraphics3D |
getGraphics3D() |
Header |
getHeader()
Defines the Text and formatting properties to be drawn at the top of the
Chart.
Use Text to enter the desired Header lines, set Visible to True and change the Font, Frame and Brush methods. Use Alignment to control text output position. |
Imports |
getImport() |
Legend |
getLegend()
Legend characteristics.
The Legend property determines the text and drawing attributes of Chart's textual representation of Series and Series values. |
LegendResolver |
getLegendResolver() |
Page |
getPage()
Accesses multiple page characteristics of the Chart.
|
Panel |
getPanel()
Background visible attributes.
Provides access, via the Panel Interface, to all Chart Panel properties. |
Scroll |
getPanning()
Accesses Panning characteristics.
|
Printer |
getPrinter()
Printing related attributes.
|
int |
getScreenHeight() |
int |
getScreenWidth() |
SeriesCollection |
getSeries() |
Series |
getSeries(int index) |
int |
getSeriesCount()
Returns the number of Series in Chart.
|
Footer |
getSubFooter()
Defines Text shown directly above Footer.
Use Text to enter the desired SubFooter lines, set Visible to True and change the Font, Frame and Brush methods. Use Alignment to control text output position. |
Header |
getSubHeader()
Defines Text shown directly below Header.
Use the Text method to enter the desired SubHeader lines, set Visible to True and change the Font, Frame and Brush methods. Use the Alignment method to control text output position. |
Cursor |
getTeeCursor() |
java.lang.String |
getText()
The text for the Footer, Header, SubFooter and SubHeader.
|
ToolsCollection |
getTools() |
Walls |
getWalls() |
Zoom |
getZoom()
Accesses the Zoom characteristics of the Chart.
|
Image |
image(int width,
int height) |
boolean |
invertedRotation() |
boolean |
isDesignTime() |
boolean |
isDisposing() |
void |
mouseDragged(FrameworkMouseEvent e) |
void |
mouseMoved(FrameworkMouseEvent e)
Captures current mouse position every time the mouse is moved.
|
protected void |
onDraw(Canvas canvas) |
boolean |
onTouch(View v,
MotionEvent event) |
boolean |
onTrackballEvent(MotionEvent event) |
void |
paint() |
Point |
pointToScreen(Point p) |
protected void |
processMouseEvent(FrameworkMouseEvent e) |
protected void |
processMouseMotionEvent(FrameworkMouseEvent e) |
void |
refreshControl() |
void |
removeAllSeries()
Removes all Series.
|
void |
removeAxisLabelResolver() |
void |
removeChartListener(ChartListener l) |
void |
removeChartMotionListener(ChartMotionListener l) |
void |
removeChartMouseListener(ChartMouseListener l) |
void |
removeChartPaintListener(ChartPaintListener l) |
void |
removeChartPrintListener(ChartPrintListener l) |
void |
removeGetAxesChartRectListener(GetAxesChartRectListener l) |
void |
removeLegendResolver() |
void |
removeScrollable() |
void |
removeSeriesMouseListener(SeriesMouseListener l) |
void |
setAutoRepaint(boolean value)
Enables/Disables repainting of Chart when points are added.
Default value: true |
void |
setAxes(Axes axes) |
void |
setAxisLabelResolver(AxisLabelResolver resolver) |
void |
setBackground(Color value)
Sets the color the Chart rectangle is filled with.
|
void |
setBackgroundImage(Image value) |
void |
setCanvas(Graphics3D value) |
void |
setChart(Chart value) |
void |
setCursor(Cursor cursor) |
void |
setDisposing(boolean value) |
void |
setFooter(Footer footer) |
void |
setGraphics3D(Graphics3D value) |
void |
setHeader(Header header) |
void |
setHeight(int value) |
void |
setLegend(Legend legend) |
void |
setLegendResolver(LegendResolver resolver) |
void |
setOpaque(boolean value) |
void |
setPage(Page page) |
void |
setPanel(Panel panel) |
void |
setPanning(Scroll panning) |
void |
setPrinter(Printer printer) |
void |
setScrollable(TChart.Scrollable scrollable) |
void |
setSeries(int index,
Series value) |
void |
setSubFooter(Footer subFooter) |
void |
setSubHeader(Header subHeader) |
void |
setText(java.lang.String value)
Sets the text for the Footer, Header, SubFooter and SubHeader.
|
void |
setToolTip(ToolTip tooltip,
java.lang.String text) |
void |
setWalls(Walls walls) |
void |
setWidth(int value) |
void |
setZoom(Zoom zoom) |
void |
showEditor()
Shows the TeeChart editor dialog.
|
void |
timerExec(int time,
java.lang.Runnable runnable) |
Chart |
xmlDecode(java.io.InputStream stream) |
public transient Image cachedImage
public Point mousePosition
protected TChart.Scrollable scrollable
protected transient LegendResolver legendResolver
protected transient AxisLabelResolver axisLabelResolver
public TChart(Context context)
public TChart(Context context, AttributeSet attrs)
public TChart(Context context, AttributeSet attrs, int defStyle)
public void addChartListener(ChartListener l)
public void removeChartListener(ChartListener l)
public void addChartMouseListener(ChartMouseListener l)
public void removeChartMouseListener(ChartMouseListener l)
public void addChartMotionListener(ChartMotionListener l)
public void removeChartMotionListener(ChartMotionListener l)
public void addChartPaintListener(ChartPaintListener l)
public void removeChartPaintListener(ChartPaintListener l)
public void addChartPrintListener(ChartPrintListener l)
public void removeChartPrintListener(ChartPrintListener l)
public void addSeriesMouseListener(SeriesMouseListener l)
public void removeSeriesMouseListener(SeriesMouseListener l)
public void addGetAxesChartRectListener(GetAxesChartRectListener l)
public void removeGetAxesChartRectListener(GetAxesChartRectListener l)
protected void fireSeriesClick(SeriesMouseEvent seriesClickEvent)
protected void fireChartAdded(ChartEvent e)
protected boolean fireChartClicked(ChartMouseEvent e)
protected boolean fireChartMouseUp(ChartMouseEvent e)
protected boolean fireChartMouseMove(ChartMouseEvent e)
protected void fireChartMotion(ChartEvent e)
protected void fireChartPaint(ChartDrawEvent e)
protected void fireChartPrint(ChartDrawEvent ce)
public void paint()
protected void onDraw(Canvas canvas)
public Cursor getTeeCursor()
getTeeCursor
in interface IChart
public void doOnResetZoom()
public void doBeforeDrawAxes()
doBeforeDrawAxes
in interface IChart
public void doAfterDrawSeries()
doAfterDrawSeries
in interface IChart
public void doBeforeDrawSeries()
doBeforeDrawSeries
in interface IChart
public void doAfterDraw()
doAfterDraw
in interface IChart
public void doBeforeDraw()
doBeforeDraw
in interface IChart
public void doClickSeries(java.lang.Object sender, Series s, int valueIndex, FrameworkMouseEvent e)
doClickSeries
in interface IChart
public void doAllowScroll(Axis a, double delta, ScrollResult result)
doAllowScroll
in interface IChart
public Rectangle doGetAxesChartRect(Rectangle rect)
doGetAxesChartRect
in interface IChart
public void setToolTip(ToolTip tooltip, java.lang.String text)
setToolTip
in interface IChart
public void refreshControl()
refreshControl
in interface IChart
public void checkTitle(Title aTitle, FrameworkMouseEvent e, ClickedParts c)
checkTitle
in interface IChart
public void doClickLegend(Legend legend, FrameworkMouseEvent e)
doClickLegend
in interface IChart
public void doSetBuffered(boolean value)
doSetBuffered
in interface IChart
public void doUnZoomed(java.lang.Object sender)
doUnZoomed
in interface IChart
public void doInvalidate()
doInvalidate
in interface IChart
public Point pointToScreen(Point p)
pointToScreen
in interface IChart
public Chart getChart()
public void showEditor()
public java.lang.String getText()
public void setText(java.lang.String value)
value
- Stringpublic Panel getPanel()
public Printer getPrinter()
public Page getPage()
public Legend getLegend()
public Header getHeader()
public Header getSubHeader()
public Footer getFooter()
public Zoom getZoom()
public Scroll getPanning()
public Footer getSubFooter()
public Aspect getAspect()
public IGraphics3D getCanvas()
public void setCanvas(Graphics3D value)
public IGraphics3D getGraphics3D()
public void setGraphics3D(Graphics3D value)
public SeriesCollection getSeries()
public ToolsCollection getTools()
public Walls getWalls()
public Axes getAxes()
public Exports getExport()
public Imports getImport()
public Series getSeries(int index)
public void setAxes(Axes axes)
public void setFooter(Footer footer)
public void setHeader(Header header)
public void setLegend(Legend legend)
public void setSubFooter(Footer subFooter)
public void setSubHeader(Header subHeader)
public void setWalls(Walls walls)
public void setZoom(Zoom zoom)
public void setSeries(int index, Series value)
public void setPanel(Panel panel)
public void setPage(Page page)
public void setPrinter(Printer printer)
public void setPanning(Scroll panning)
public void setBackground(Color value)
value
- Colorpublic void mouseDragged(FrameworkMouseEvent e)
public void mouseMoved(FrameworkMouseEvent e)
e
- MouseEventpublic Series addSeries(Series s)
s
- Seriespublic boolean getAutoRepaint()
public void setAutoRepaint(boolean value)
value
- booleangetAutoRepaint()
public void setHeight(int value)
public void setWidth(int value)
public void removeAllSeries()
public int getSeriesCount()
public void setScrollable(TChart.Scrollable scrollable)
public void removeScrollable()
public Rectangle getBounds()
public Image getBackgroundImage()
public void setBackgroundImage(Image value)
public void doDrawImage(IGraphics3D g)
doDrawImage
in interface IChart
public boolean drawZoomOnCachedImage()
drawZoomOnCachedImage
in interface IChart
public void setChart(Chart value)
value
- Chartpublic void setLegendResolver(LegendResolver resolver)
public void removeLegendResolver()
public LegendResolver getLegendResolver()
getLegendResolver
in interface IChart
public void doChartPrint()
doChartPrint
in interface IChart
public Graphics3D checkGraphics()
checkGraphics
in interface IChart
public void doClickAxis(Axis a, FrameworkMouseEvent e)
doClickAxis
in interface IChart
public void checkBackground(java.lang.Object sender, FrameworkMouseEvent e)
checkBackground
in interface IChart
public void doMouseUp(FrameworkMouseEvent e)
public void doMouseMove(FrameworkMouseEvent e)
doMouseMove
in interface IChart
public void setAxisLabelResolver(AxisLabelResolver resolver)
setAxisLabelResolver
in interface IChart
public void removeAxisLabelResolver()
removeAxisLabelResolver
in interface IChart
public AxisLabelResolver getAxisLabelResolver()
getAxisLabelResolver
in interface IChart
protected void processMouseEvent(FrameworkMouseEvent e)
protected void processMouseMotionEvent(FrameworkMouseEvent e)
public boolean checkClickSeries()
checkClickSeries
in interface IChart
public boolean isDesignTime()
isDesignTime
in interface IChart
public void timerExec(int time, java.lang.Runnable runnable)
public void copyToClipboard(java.lang.Object content)
copyToClipboard
in interface IChart
public Chart xmlDecode(java.io.InputStream stream)
public java.lang.Object getGraphics()
getGraphics
in interface IChart
public int getScreenHeight()
getScreenHeight
in interface IChart
public Display getDisplay()
public int getScreenWidth()
getScreenWidth
in interface IChart
public java.lang.Object getControl()
getControl
in interface IChart
public int getControlWidth()
getControlWidth
in interface IChart
public int getControlHeight()
getControlHeight
in interface IChart
public boolean onTouch(View v, MotionEvent event)
public boolean onTrackballEvent(MotionEvent event)
public boolean invertedRotation()
invertedRotation
in interface IChart
public boolean isDisposing()
isDisposing
in interface IChart
public void setDisposing(boolean value)
setDisposing
in interface IChart