|
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.jquery.component.LyJQInternalView
leon.view.web.jquery.component.fieldItem.LyJQFieldItem
leon.view.web.jquery.component.panel.LyJQPanel
leon.view.web.jquery.component.chart.LyJQChart
public class LyJQChart
Type : leon.view.web.jquery.component.chart The peer component of LyTab for the web2 viewer.
Field Summary | |
---|---|
static java.lang.String[] |
DEFAULT_COLORS
Default colors used for charts. |
static int |
PIE_LABEL_MAX_LENGTH
Max length for labels displayed in pie charts. |
Fields inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem |
---|
__VERSION |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Fields inherited from interface leon.view.graphic.LyGraphicalChart |
---|
__VERSION |
Fields inherited from interface leon.view.getinterface.LyGetChartConverterInterface |
---|
__VERSION |
Fields inherited from interface leon.view.setinterface.LySetBoundsInterface |
---|
__VERSION |
Fields inherited from interface leon.view.setinterface.LySetPopupMenuInterface |
---|
__VERSION |
Constructor Summary | |
---|---|
LyJQChart(LyChart chart)
Constructor |
Method Summary | |
---|---|
void |
addColumn(LyColumn columns,
int pos)
Inserts a sub-component columns at given position. |
java.lang.String |
addLabelCR(java.lang.String label)
Adds carriage returns in a label in order to shorten its length. |
void |
free()
Free resources allocated to this component. |
java.lang.String |
generateChartImage()
generate chart image. |
LyJQChartConverter |
getChartConverter()
Get the Chart Converter (if any). |
java.lang.String[] |
getColors()
Returns the colors that must be used by chart component. |
int[] |
getComponentDimension()
Get the dimension of the component used to represent the chart. |
int |
getHeight()
Returns the height of the chart that must be displayed. |
java.lang.String |
getHtmlLink(java.lang.String imagePath)
Gets the HTML tag that links the image to the ressource. |
int |
getLastIndex()
|
java.lang.String |
getPieValueLabel(java.lang.String label,
java.lang.String value,
LyColumn column)
Returns the label to be displayed for a section of a pie chart. |
int |
getWidth()
Returns the width of the chart that must be displayed. |
void |
initialize()
Initialization method. |
boolean |
isChart()
|
boolean |
isInPopup()
Indicates whether this chart is in a popup view. |
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 |
setContent()
Sets the content of this view. |
void |
setLocation(int x,
int y)
Accessor to the location. |
void |
setSize(int w,
int h)
Accessor to the Size. |
void |
writeHtml(LyWebPageWriter pw)
Write HTML description corresponding to this component. |
java.lang.String |
xFormatDate(LyChartValue cv,
LyChart c)
Format date of x value |
float |
yMax()
Get Max value of the column |
float |
yMin()
Get Min value of the column |
int |
yStep()
Get step for y axis |
float |
ySumMax()
Get Sum max value of the columns |
Methods inherited from class leon.view.web.jquery.component.panel.LyJQPanel |
---|
isChart, isForm, isGantt, isMap, isNotice, isPanel, isTable, isTree, setPopupMenu |
Methods inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem |
---|
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getReloadScript, getTarget, isEditable, isEnabled, isLabelInstance, isMail, isNetscape, isOptional, isPrintMode, isUrl, isUrlRecurse, needCheck, setLabel |
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView |
---|
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty |
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 int PIE_LABEL_MAX_LENGTH
public static java.lang.String[] DEFAULT_COLORS
Constructor Detail |
---|
public LyJQChart(LyChart chart)
chart
- Method Detail |
---|
public void initialize()
public int getLastIndex()
public java.lang.String generateChartImage()
public 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 setContent()
public float yMax()
public float ySumMax()
public int yStep()
public java.lang.String xFormatDate(LyChartValue cv, LyChart c)
LyChartValue
- cv, LyChart c
public java.lang.String addLabelCR(java.lang.String label)
public java.lang.String getPieValueLabel(java.lang.String label, java.lang.String value, LyColumn column)
label
- the label of the pie sectionvalue
- the value of the pie sectioncolumn
- the column containing the valuepublic float yMin()
public int getWidth()
public int getHeight()
public boolean isInPopup()
public java.lang.String[] getColors()
public void free()
LyGraphicalObject
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LyWebObject
LyFreeInterface.free()
public void setLocation(int x, int y)
LySetBoundsInterface
setLocation
in interface LySetBoundsInterface
LySetBoundsInterface.setLocation(int, int)
public void setSize(int w, int h)
LySetBoundsInterface
setSize
in interface LySetBoundsInterface
LySetBoundsInterface.setSize(int, int)
public LyJQChartConverter getChartConverter()
LyGetChartConverterInterface
getChartConverter
in interface LyGetChartConverterInterface
public int[] getComponentDimension()
LyGetChartConverterInterface
getComponentDimension
in interface LyGetChartConverterInterface
public void addColumn(LyColumn columns, int pos)
LyGraphicalChart
addColumn
in interface LyGraphicalChart
columns
- The columns to add to columns list.pos
- Position where the sub-component is inserted.public void removeColumn(LyColumn columns)
LyGraphicalChart
removeColumn
in interface LyGraphicalChart
columns
- The columns to remove to columns list.public boolean isChart()
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
writeHtml
in class LyJQFieldItem
pw
- the page writer
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |