LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyChart

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyPanel
              extended by leon.view.LyChartBase
                  extended by leon.view.LyChart
All Implemented Interfaces:
LyGetConstraintInterface, LyGetControllerInterface, LyGetIdInterface, LyPdfInterface, LySetControllerInterface, LySetWaitingInterface, LyUpdateViewContentInterface

public class LyChart
extends LyChartBase

The LyChart class implements generic behavior for the CHART components as described in views.dtd regardless of the requested target (win, swing, html...). It represents CLASS_CHART.

See Also:
LyComponent

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyChartBase
LyChartBase.GraphType, LyChartBase.Type, LyChartBase.XVal, LyChartBase.YVal
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyChart()
          Constructor with all required attributes.
 
Method Summary
 boolean isInvertData()
          Indicates if data must be inverted.
 boolean isScrollable()
          Retrieve the scrollable attribute.
 boolean isYValuesComputed()
          Indicates if the real y values have been computed.
 void saveImg(java.lang.String tmpDir, java.lang.String imageFile)
          Save the image of the chart.
 void setInvertData(boolean invertData)
          Set if data must be inverted.
 void setYValuesComputed(boolean yValuesComputed)
          Set if the real y values have been computed.
 
Methods inherited from class leon.view.LyChartBase
addColumn, cloneComponent, getAxis, getColumn, getColumnCount, getConstraint, getController, getGraphType, getGraphType, getId, getIntervals, getTemplate, getTitle, getType, getXDateType, getXFormat, getXTitle, getXType, getXVal, getXVal, getYDateType, getYFormat, getYTitle, getYType, getYVal, getYVal, insertColumn, isD3Effect, isDisplayLegendEmptyValues, isNoXField, isPieBy, isRatios, isShowLegend, isShowTips, isXGrid, isXVerticalLabels, isYGrid, removeColumn, setAxis, setConstraint, setController, setD3Effect, setDisplayLegendEmptyValues, setGraphType, setId, setIntervals, setNoXField, setPieBy, setRatios, setShowLegend, setShowTips, setTemplate, setTitle, setXDateType, setXFormat, setXGrid, setXTitle, setXType, setXVal, setXVerticalLabels, setYDateType, setYFormat, setYGrid, setYTitle, setYType, setYVal, writeXml
 
Methods inherited from class leon.view.LyPanel
generatePdf, getLastModified, isIdle, print, setIdle, setLastModified, setPopupMenu, setWaiting
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, setLabel, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyChart

public LyChart()
Constructor with all required attributes.

Method Detail

isScrollable

public boolean isScrollable()
Retrieve the scrollable attribute.

Overrides:
isScrollable in class LyPanel
Returns:
true if the component is scrollable, else false

saveImg

public void saveImg(java.lang.String tmpDir,
                    java.lang.String imageFile)
Save the image of the chart.

Parameters:
tmpDir - temporary directory
imageFile - the PNG File
pw - the print writer where imagemap must be generated

isYValuesComputed

public boolean isYValuesComputed()
Indicates if the real y values have been computed.

Returns:
true if the real y values have been computed, false otherwise.

setYValuesComputed

public void setYValuesComputed(boolean yValuesComputed)
Set if the real y values have been computed.

Parameters:
yValuesComputed - true if the real y values have been computed, false otherwise.

isInvertData

public boolean isInvertData()
Indicates if data must be inverted.

Returns:
true if data must be inverted, false otherwise.

setInvertData

public void setInvertData(boolean invertData)
Set if data must be inverted.

Parameters:
invertData - true if data must be inverted, false otherwise.

(c) January 2013 - W4 S.A.

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