leon.view.mobile
Class LyMobileChart
java.lang.Object
leon.view.graphic.LyGraphicalObject
leon.view.mobile.LyMobileObject
leon.view.mobile.LyMobileChart
- All Implemented Interfaces:
- LyGetChartConverterInterface, LyGraphicalChart, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalPanel, LyViewComponent, LyMobileComponent, LyFreeInterface
public class LyMobileChart
- extends LyMobileObject
- implements LyGraphicalChart, LyGetChartConverterInterface
Method Summary |
void |
addColumn(LyColumn columns,
int pos)
Inserts a sub-component columns at given position. |
void |
free()
Free resources allocated to this component. |
LyChartConverter |
getChartConverter()
Get the Chart Converter (if any). |
int[] |
getComponentDimension()
Get the dimension of the component used to represent the chart. |
void |
init()
|
void |
removeColumn(LyColumn columns)
Removes a sub-component columns. |
void |
saveChartFile(java.lang.String tmpDir,
java.lang.String imageFile,
java.lang.StringBuffer buffer)
Save the file to the http directory. |
void |
writeJson(java.io.PrintWriter pw,
java.lang.String sessionId)
|
void |
writeXml(java.io.PrintWriter pw)
Write XML description corresponding to this component. |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LyMobileChart
public LyMobileChart(LyChart chart)
writeXml
public void writeXml(java.io.PrintWriter pw)
- Description copied from interface:
LyMobileComponent
- Write XML description corresponding to this component.
- Specified by:
writeXml
in interface LyMobileComponent
- Parameters:
pw
- the print writer
writeJson
public void writeJson(java.io.PrintWriter pw,
java.lang.String sessionId)
- Specified by:
writeJson
in interface LyMobileComponent
addColumn
public void addColumn(LyColumn columns,
int pos)
- Description copied from interface:
LyGraphicalChart
- Inserts a sub-component columns at given position.
- Specified by:
addColumn
in interface LyGraphicalChart
- Parameters:
columns
- The columns to add to columns list.pos
- Position where the sub-component is inserted.
removeColumn
public void removeColumn(LyColumn columns)
- Description copied from interface:
LyGraphicalChart
- Removes a sub-component columns.
- Specified by:
removeColumn
in interface LyGraphicalChart
- Parameters:
columns
- The columns to remove to columns list.
init
public void init()
- Specified by:
init
in interface LyMobileComponent
free
public void free()
- Description copied from class:
LyGraphicalObject
- Free resources allocated to this component.
- Specified by:
free
in interface LyGraphicalComponent
- Specified by:
free
in interface LyFreeInterface
- Overrides:
free
in class LyGraphicalObject
- See Also:
LyFreeInterface.free()
saveChartFile
public void saveChartFile(java.lang.String tmpDir,
java.lang.String imageFile,
java.lang.StringBuffer buffer)
- Save the file to the http directory.
- Parameters:
tmpDir
- temporary directory for the image/svgimageFile
- name of the filebuffer
- the buffer where imagemap must be generated
getChartConverter
public LyChartConverter getChartConverter()
- Description copied from interface:
LyGetChartConverterInterface
- Get the Chart Converter (if any).
- Specified by:
getChartConverter
in interface LyGetChartConverterInterface
- Returns:
- the graphical chart Converter.
getComponentDimension
public int[] getComponentDimension()
- Description copied from interface:
LyGetChartConverterInterface
- Get the dimension of the component used to represent the chart.
- Specified by:
getComponentDimension
in interface LyGetChartConverterInterface
- Returns:
- an array of two integers (width and height of the component).
Website: W4 S.A., contact us: support@w4global.com