|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsFieldItem
leon.view.web.struts.LyStrutsPanel
leon.view.web.struts.LyStrutsFreeChart
public class LyStrutsFreeChart
This class implements the Chart object (as described in the dtd) for web viewer.
CHART: Statistic Chart
A chart allows to display a graph representing statistics on data.
LyCommonFreeChartConverter
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsFreeChart(LyChart chart)
Class constructor of a Chart object for the struts target. |
Method Summary | |
---|---|
void |
addColumn(LyColumn column,
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. |
java.lang.String |
getHtmlLink(java.lang.String imagePath)
Gets the HTML tag that links the image to the ressource. |
void |
initialize()
Initialization method. |
void |
removeColumn(LyColumn column)
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 |
setContent()
Sets the content of this view. |
void |
setDimension(int width,
int height)
Deprecated. use setSize() |
void |
setLocation(int x,
int y)
Accessor to the location. |
void |
setSize(int width,
int height)
Sets the width and height of the generated image. |
void |
writeHtml(LyWebPageWriter pw)
Write HTML description corresponding to this component. |
Methods inherited from class leon.view.web.struts.LyStrutsPanel |
---|
getPopupMenuView, setPopupMenu |
Methods inherited from class leon.view.web.struts.LyStrutsFieldItem |
---|
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getFormName, getHtmlForm, getId, isEditable, isNetscape, isOptional, needCheck, setLabel |
Methods inherited from class leon.view.web.LyWebObject |
---|
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getBounds, getChildrenBounds, getEnv, getEnvironment, getIdCode, getIntResource, 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 |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyStrutsFreeChart(LyChart chart)
chart
- the generic Chart defined for every type of view targetsLyChartController
Method Detail |
---|
public void initialize()
public void setContent()
public void setDimension(int width, int height)
width
- the new width of the generated imageheight
- the new height of the generated imagepublic LyChartConverter getChartConverter()
LyGetChartConverterInterface
getChartConverter
in interface LyGetChartConverterInterface
public int[] getComponentDimension()
getComponentDimension
in interface LyGetChartConverterInterface
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
pw
- the page writerpublic void saveChartFile(java.lang.String tmpDir, java.lang.String imageFile, java.lang.StringBuffer buffer)
tmpDir
- temporary directory for the image/svgimageFile
- name of the filebuffer
- the buffer where imagemap must be generatedpublic java.lang.String getHtmlLink(java.lang.String imagePath)
imagePath
- the image path
public void free()
LyGraphicalObject
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LyWebObject
LyFreeInterface.free()
public void addColumn(LyColumn column, int pos)
LyGraphicalChart
addColumn
in interface LyGraphicalChart
column
- The columns to add to columns list.pos
- Position where the sub-component is inserted.public void removeColumn(LyColumn column)
LyGraphicalChart
removeColumn
in interface LyGraphicalChart
column
- The columns to remove to columns list.public void setLocation(int x, int y)
LySetBoundsInterface
setLocation
in interface LySetBoundsInterface
LySetBoundsInterface.setLocation(int, int)
public void setSize(int width, int height)
setSize
in interface LySetBoundsInterface
width
- the new width of the generated imageheight
- the new height of the generated imageLySetBoundsInterface.setSize(int, int)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |