LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.builder
Class LyGraphicalChartBuilder

java.lang.Object
  extended by leon.control.builder.LyBuilder
      extended by leon.control.builder.LyAreaBuilder
          extended by leon.control.builder.LyGraphicalChartBuilder

public class LyGraphicalChartBuilder
extends LyAreaBuilder

This class builds the graphical chart area.


Field Summary
static java.lang.String __VERSION
          File version.
static java.lang.String GROUP_FIELD_SEP
          Separator used in legends between group field and y fields.
 
Constructor Summary
LyGraphicalChartBuilder(LyController parent)
          Default constructor.
 
Method Summary
 LyComponent build()
          Builds the view component for the specified parent controller.
 LyChart buildChart()
          Builds the chart graphic.
 LyChart fillChart()
          Fill the LyChart object with LyChartInfo.
 LyChart getChart()
          Shortcut to the chart description.
static java.lang.String makeYDateType(java.util.Vector<java.lang.String> yFields, LyClassInfo classInfo, LyChartInfo chartInfo)
          Set a Date Format for Y variables.
 void updateSpecificBehaviors()
          Update specific legend labels on the chart converter.
 
Methods inherited from class leon.control.builder.LyAreaBuilder
buildComponent, completeMenuBar, completeMessages, getRightLabel, setTitleBarParameters, updateSelectFile, updateTitleBar
 
Methods inherited from class leon.control.builder.LyBuilder
getComponent, getParent
 
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
File version.

See Also:
Constant Field Values

GROUP_FIELD_SEP

public static java.lang.String GROUP_FIELD_SEP
Separator used in legends between group field and y fields.

Constructor Detail

LyGraphicalChartBuilder

public LyGraphicalChartBuilder(LyController parent)
Default constructor.

Parameters:
parent - parent controller
Method Detail

makeYDateType

public static java.lang.String makeYDateType(java.util.Vector<java.lang.String> yFields,
                                             LyClassInfo classInfo,
                                             LyChartInfo chartInfo)
Set a Date Format for Y variables. For example : if there is one Y var DATE_TIME and one Y var DATE, the result is DATE_TIME. if there is one Y var TIME and one Y var HOUR, the result is TIME.

Parameters:
yFields - the Y variables selected (type date)
classInfo - corresponds to the class of yFields
chartInfo - corresponds to the current chart
Returns:
The Date Type of the whole Y variables.

build

public LyComponent build()
Builds the view component for the specified parent controller.

Specified by:
build in class LyBuilder
Returns:
the view Component

buildChart

public LyChart buildChart()
Builds the chart graphic.

Returns:
the component for the chart graphic

getChart

public LyChart getChart()
Shortcut to the chart description.

Returns:
the component for the chart description

fillChart

public LyChart fillChart()
Fill the LyChart object with LyChartInfo.

Returns:
the chart filled all required parameters

updateSpecificBehaviors

public void updateSpecificBehaviors()
Update specific legend labels on the chart converter.


(c) January 2013 - W4 S.A.

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