LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.mobile
Class LyMobileChart

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.mobile.LyMobileObject
          extended by leon.view.mobile.LyMobileChart
All Implemented Interfaces:
LyGetChartConverterInterface, LyGraphicalChart, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalPanel, LyViewComponent, LyMobileComponent, LyFreeInterface

public class LyMobileChart
extends LyMobileObject
implements LyGraphicalChart, LyGetChartConverterInterface


Field Summary
 
Fields inherited from class leon.view.mobile.LyMobileObject
REWRITING_MODE, SEP_ID, WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from class leon.view.graphic.LyGraphicalObject
__VERSION
 
Fields inherited from interface leon.view.graphic.LyGraphicalChart
__VERSION
 
Fields inherited from interface leon.view.getinterface.LyGetChartConverterInterface
__VERSION
 
Constructor Summary
LyMobileChart(LyChart chart)
           
 
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.mobile.LyMobileObject
createWebview, expandUrl, getDirForDownloadImage, getImageUrl, getUrl, printJsonAttributeSeparator
 
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
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
getViewComponent
 

Constructor Detail

LyMobileChart

public LyMobileChart(LyChart chart)
Method Detail

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/svg
imageFile - name of the file
buffer - 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).

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com