LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info
Class LyChartInfo

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.LyInfo
          extended by leon.info.LyObjectInfo
              extended by leon.info.LyChartInfo
All Implemented Interfaces:
java.lang.Cloneable, LyExtraInfoInterface, LyGetClassInfoInterface, LyCommentInterface

public class LyChartInfo
extends LyObjectInfo
implements LyGetClassInfoInterface, LyExtraInfoInterface

The LyChartInfo class implements the description of a chart applied on objects of the application.

See Also:
LyChartController

Nested Class Summary
static class LyChartInfo.GraphType
           
static class LyChartInfo.Type
           
static class LyChartInfo.ValType
           
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __version
           
 
Fields inherited from class leon.info.LyObjectInfo
__VERSION, NULL, PART_ALL, PART_BIND, PART_DATA, PART_GUI, PART_LABEL
 
Fields inherited from interface leon.info.LyGetClassInfoInterface
__VERSION
 
Fields inherited from interface leon.info.infointerface.LyExtraInfoInterface
__VERSION
 
Constructor Summary
LyChartInfo()
          Public constructor.
LyChartInfo(java.lang.String id, java.lang.String name, LyChartInfo template)
          Constructor.
LyChartInfo(java.lang.String id, java.lang.String name, java.lang.String classInfoId, java.lang.String selectedXFieldInfo, java.lang.String selectedGroupFieldInfo, LyChartInfo.Type typeVarY, LyChartInfo.Type typeVarX, LyChartInfo.GraphType selectedGraphType, LyChartInfo.ValType xVal, java.lang.String[] xIntervals, LyChartInfo.ValType yVal, java.lang.String[] yIntervals, boolean pieBy, java.lang.String title, java.lang.String xTitle, java.lang.String yTitle, java.lang.String[] xAxis, java.lang.String[] yAxis, boolean xVerticalLabels, boolean xGrid, boolean yGrid, boolean d3Effect, boolean showLegend, boolean showTips, boolean ratios)
          Constructor.
 
Method Summary
 void addYField(java.lang.String yField)
          Add an element in Y fields id vector.
 LyChartInfo cloneChartInfo(java.lang.String id)
          Duplicate all the attributes of a LyChartInfo.
 boolean deleteFile()
          Method for deleting preference file.
 void free()
          Method for freeing extra info (and sub-infos).
 boolean get3dEffect()
          Accessor to 3D Effect : enabled if true, disabled if false.
 LyClassInfo getClassInfo()
          Gets the ClassInfo of current controller.
 java.lang.String getClassInfoId()
          Accessor to the Id of the LyClassInfo.
 LyInfoList<LyFieldInfo> getFields()
          Gets all fields that this chart info needs to be drawed.
 java.lang.String getImage()
          Method for retrieving the name of the image associated to the type of chart.
 boolean getPieBy()
          Accessor to the type of the pies, if there are any.
 LyPreference getPreference()
          Accessor to the preference of this chart.
 boolean getRatios()
          Accessor to ratios : ratios if true, real values if false.
 LyChartInfo.GraphType getSelectedGraphType()
          Accessor to the graphic type of the chart.
 java.lang.String getSelectedGroupFieldInfo()
          Accessor to the group field of the chart.
 java.lang.String getSelectedXFieldInfo()
          Accessor to the X field of the chart.
 java.util.Vector<java.lang.String> getSelectedYFieldsInfo()
          Accessor to the Y fields of the chart.
 boolean getShowLegend()
          Accessor to legend : show if true, hide if false.
 boolean getShowTips()
          Accessor to label tips : show if true, hide (or show only when the mouse is over the point) if false.
 java.lang.String getTitle()
          Accessor to the title of the chart graphic.
 LyChartInfo.Type getTypeVarX()
          Accessor to the x type of variable.
 LyChartInfo.Type getTypeVarY()
          Accessor to the y type of variables.
 java.lang.String getUser()
          Get owner of this chart.
 java.lang.String[] getXAxis()
          Accessor to the vector of 3 values for the X axis.
 java.lang.String getXAxisMax()
          Accessor to the value for the X axis max.
 java.lang.String getXAxisMin()
          Accessor to the value for the X axis min.
 java.lang.String getXAxisWidth()
          Accessor to the value for the X axis width.
 boolean getXGrid()
          Accessor to X Grid : enabled if true, disabled if false.
 java.lang.String getXIntervalBegin()
          Accessor to the x interval begin.
 java.lang.String getXIntervalLength()
          Accessor to the x interval length.
 java.lang.String[] getXIntervals()
          Accessor to the x intervals of the chart.
 java.lang.String getXIntervalUnit()
          Accessor to the x interval unit.
 java.lang.String getXTitle()
          Accessor to the title of X axis.
 LyChartInfo.ValType getXVal()
          Accessor to the x type of values of the chart (real, intervals).
 boolean getXVerticalLabels()
          Accessor to the type of X labels : vertical if true, horizontal if false.
 java.lang.String[] getYAxis()
          Accessor to the vector of 3 values for the Y axis.
 java.lang.String getYAxisMax()
          Accessor to the value for the X axis max.
 java.lang.String getYAxisMin()
          Accessor to the value for the Y axis min.
 java.lang.String getYAxisWidth()
          Accessor to the value for the X axis width.
 boolean getYGrid()
          Accessor to Y Grid : enabled if true, disabled if false.
 java.lang.String getYIntervalBegin()
          Accessor to the y interval begin.
 java.lang.String getYIntervalLength()
          Accessor to the y interval length.
 java.lang.String[] getYIntervals()
          Accessor to the y intervals of the chart.
 java.lang.String getYIntervalUnit()
          Accessor to the y interval unit.
 java.lang.String getYTitle()
          Accessor to the title of Y axis.
 LyChartInfo.ValType getYVal()
          Accessor to the y type of values of the chart (real, sum or count by interval).
 boolean saveFile(LyXmlWriterInterface writer)
          Method for saving preference file.
 void set3dEffect(boolean d3Effect)
          Sets 3D Effect : enabled if true, disabled if false.
 void setClassInfoId(java.lang.String classInfoId)
          Sets the classInfo of the chart.
 void setId(java.lang.String id)
          Sets the id of the instance.
 void setName(java.lang.String name)
          Sets the name of the instance.
 void setPieBy(boolean pieBy)
          Sets the type of the pies, if there are any.
 void setPreference(LyPreference preference)
          Sets the preference.
 void setRatios(boolean ratios)
          Sets the ratios : ratios if true, real values if false.
 void setSelectedGraphType(LyChartInfo.GraphType selectedGraphType)
          Sets the graphic type of the chart.
 void setSelectedGroupFieldInfo(java.lang.String selectedGroupFieldInfo)
          Sets the group field of the chart.
 void setSelectedXFieldInfo(java.lang.String selectedXFieldInfo)
          Sets the X field of the chart.
 void setSelectedYFieldsInfo(java.util.Vector<java.lang.String> selectedYFieldsInfo)
          Sets the Y fields of the chart.
 void setShowLegend(boolean showLegend)
          Sets the legend : show if true, hide if false.
 void setShowTips(boolean showTips)
          Sets the label tips : show if true, hide if false.
 void setTitle(java.lang.String title)
          Sets the title of the chart graphic.
 void setTypeVarX(LyChartInfo.Type typeVarX)
          Sets the description of the type of x variable.
 void setTypeVarY(LyChartInfo.Type typeVarY)
          Sets the description of the type of y variables.
 void setXAxis(java.lang.String[] xAxis)
          Sets the vector of 3 values for the X axis.
 void setXAxisMax(java.lang.String xAxisMax)
          Sets the value for the X axis max.
 void setXAxisMin(java.lang.String xAxisMin)
          Sets the value for the X axis min.
 void setXAxisWidth(java.lang.String xAxixWidth)
          Sets the value for the X axis width.
 void setXGrid(boolean xGrid)
          Sets X Grid : enabled if true, disabled if false.
 void setXIntervalBegin(java.lang.String xIntervalBegin)
          Sets the x interval begin.
 void setXIntervalLength(java.lang.String xIntervalLength)
          Sets the x interval length.
 void setXIntervals(java.lang.String[] xIntervals)
          Sets the X intervals of the chart.
 void setXIntervalUnit(java.lang.String xIntervalUnit)
          Sets the x interval unit.
 void setXTitle(java.lang.String xTitle)
          Sets the title of X axis.
 void setXVal(LyChartInfo.ValType xVal)
          Sets the x type of values of the chart (real, intervals).
 void setXVerticalLabels(boolean xVerticalLabels)
          Sets the type of X labels : vertical if true, horizontal if false.
 void setYAxis(java.lang.String[] yAxis)
          Sets the vector of 3 values for the Y axis.
 void setYAxisMax(java.lang.String yAxisMax)
          Sets the value for the Y axis max.
 void setYAxisMin(java.lang.String yAxisMin)
          Sets the value for the Y axis min.
 void setYAxisWidth(java.lang.String yAxixWidth)
          Sets the value for the Y axis width.
 void setYGrid(boolean yGrid)
          Sets Y Grid : enabled if true, disabled if false.
 void setYIntervalBegin(java.lang.String yIntervalBegin)
          Sets the y interval begin.
 void setYIntervalLength(java.lang.String yIntervalLength)
          Sets the y interval length.
 void setYIntervals(java.lang.String[] yIntervals)
          Sets the Y intervals of the chart.
 void setYIntervalUnit(java.lang.String yIntervalUnit)
          Sets the y interval unit.
 void setYTitle(java.lang.String yTitle)
          Sets the title of Y axis.
 void setYVal(LyChartInfo.ValType yVal)
          Sets the y type of values of the chart (real, sum or count by interval).
 java.lang.String toString2()
          Make a string representing the object.
 void writeXml(java.io.PrintWriter pw)
          Method to rewrite XML corresponding to this component.
 void writeXml(java.io.PrintWriter pw, boolean header, boolean body)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.info.LyObjectInfo
clone, getAlias, getData, getDataList, getDatas, getFilePrefix, getGroup, getInternalAlias, getInternalFilePrefix, getInternalName, getMarks, getName, getTemplate, getTip, getUserData, hasMark, hasMarks, hasTemplate, isTemplate, putData, putData, removeData, toName
 
Methods inherited from class leon.info.LyInfo
getApplication, getFile, getId, getInclude, isIncluded, isInternal, isInternal, isLoaded, isLocked, load, setApplication, setFile, toString
 
Methods inherited from class leon.info.LyTag
getCommentsEnd, getCommentsStart, getEnvironment, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface leon.info.infointerface.LyExtraInfoInterface
getFile, setFile
 
Methods inherited from interface leon.parser.LyCommentInterface
getCommentsEnd, getCommentsStart, setCommentsEnd, setCommentsStart
 

Field Detail

__version

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

LyChartInfo

public LyChartInfo(java.lang.String id,
                   java.lang.String name,
                   LyChartInfo template)
Constructor.

Parameters:
id - The identifier of the object. May not be null.
template - Template used to construct this field.

LyChartInfo

public LyChartInfo()
Public constructor.


LyChartInfo

public LyChartInfo(java.lang.String id,
                   java.lang.String name,
                   java.lang.String classInfoId,
                   java.lang.String selectedXFieldInfo,
                   java.lang.String selectedGroupFieldInfo,
                   LyChartInfo.Type typeVarY,
                   LyChartInfo.Type typeVarX,
                   LyChartInfo.GraphType selectedGraphType,
                   LyChartInfo.ValType xVal,
                   java.lang.String[] xIntervals,
                   LyChartInfo.ValType yVal,
                   java.lang.String[] yIntervals,
                   boolean pieBy,
                   java.lang.String title,
                   java.lang.String xTitle,
                   java.lang.String yTitle,
                   java.lang.String[] xAxis,
                   java.lang.String[] yAxis,
                   boolean xVerticalLabels,
                   boolean xGrid,
                   boolean yGrid,
                   boolean d3Effect,
                   boolean showLegend,
                   boolean showTips,
                   boolean ratios)
Constructor.

Parameters:
name - Name of the Chart.
classInfoId - The Id of the LyClassInfo of the chart. Used only to save/load charts.
selectedYFieldsInfo - List of fields to analyse (Y). Elements are LyFieldInfo.
selectedXFieldInfo - The field id on X axe (it can be null).
selectedGroupFieldInfo - The field id for group (it can be null).
typeVarY - Type of Y fields.
typeVarX - Type of X field.
selectedGraphType - Graphic type
xVal - type of values for X (real, intervals).
xIntervals - values for the X intervals. Elements are the beginning, the width and an eventual time unity of interval.
yVal - type of values for Y (real, count or sum by interval).
yIntervals - values for the Y intervals. Elements are the beginning, the width and an eventual time unity of interval.
pieBy - True if there is one pie by Y var, False if there is one pie by X value or interval
title - the title of the chart graphic.
xTitle - the title of X axis.
yTitle - the title of Y axis.
xAxis - A vector of 3 values for the X axis. Pos0: min, pos1: max and pos2: distance between graduations.
yAxis - A vector of 3 values for the Y axis. Pos0: min, pos1: max and pos2: distance between graduations.
xVerticalLabels - used if the graphic type is not Pie,
xGrid - used to show X Grid if the graphic type is not Pie,
yGrid - used to show Y Grid if the graphic type is not Pie,
3dEffect - used to enable 3D Effect,
Method Detail

cloneChartInfo

public LyChartInfo cloneChartInfo(java.lang.String id)
Duplicate all the attributes of a LyChartInfo.

Parameters:
id - the identifier of the new LyChartInfo
Returns:
an identical LyChartInfo with the same values but different objects and differnet pointers

getClassInfoId

public java.lang.String getClassInfoId()
Accessor to the Id of the LyClassInfo.

Returns:
the Id of the LyClassInfo.

getSelectedYFieldsInfo

public java.util.Vector<java.lang.String> getSelectedYFieldsInfo()
Accessor to the Y fields of the chart.

Returns:
the Y fields of the chart.

getSelectedXFieldInfo

public java.lang.String getSelectedXFieldInfo()
Accessor to the X field of the chart.

Returns:
the X field of the chart.

getSelectedGroupFieldInfo

public java.lang.String getSelectedGroupFieldInfo()
Accessor to the group field of the chart.

Returns:
the group field of the chart.

getTypeVarY

public LyChartInfo.Type getTypeVarY()
Accessor to the y type of variables.

Returns:
the y type of variables.

getTypeVarX

public LyChartInfo.Type getTypeVarX()
Accessor to the x type of variable.

Returns:
the x type of variable.

getSelectedGraphType

public LyChartInfo.GraphType getSelectedGraphType()
Accessor to the graphic type of the chart.

Returns:
the graphic type of the chart.

getXVal

public LyChartInfo.ValType getXVal()
Accessor to the x type of values of the chart (real, intervals).

Returns:
the x type of values of the chart

getYVal

public LyChartInfo.ValType getYVal()
Accessor to the y type of values of the chart (real, sum or count by interval).

Returns:
the y type of values of the chart

getXIntervals

public java.lang.String[] getXIntervals()
Accessor to the x intervals of the chart.

Returns:
the x intervals of the chart.

getXIntervalBegin

public java.lang.String getXIntervalBegin()
Accessor to the x interval begin.

Returns:
the x interval begin.

getXIntervalLength

public java.lang.String getXIntervalLength()
Accessor to the x interval length.

Returns:
the x interval length.

getXIntervalUnit

public java.lang.String getXIntervalUnit()
Accessor to the x interval unit.

Returns:
the x interval unit.

getYIntervals

public java.lang.String[] getYIntervals()
Accessor to the y intervals of the chart.

Returns:
the y intervals of the chart.

getYIntervalBegin

public java.lang.String getYIntervalBegin()
Accessor to the y interval begin.

Returns:
the y interval begin.

getYIntervalLength

public java.lang.String getYIntervalLength()
Accessor to the y interval length.

Returns:
the y interval length.

getYIntervalUnit

public java.lang.String getYIntervalUnit()
Accessor to the y interval unit.

Returns:
the y interval unit.

getPieBy

public boolean getPieBy()
Accessor to the type of the pies, if there are any.

Returns:
the type of the pies, if there are any.

getTitle

public java.lang.String getTitle()
Accessor to the title of the chart graphic.

Returns:
the title of the chart graphic.

getXTitle

public java.lang.String getXTitle()
Accessor to the title of X axis.

Returns:
the title of X axis.

getYTitle

public java.lang.String getYTitle()
Accessor to the title of Y axis.

Returns:
the title of Y axis.

getXAxis

public java.lang.String[] getXAxis()
Accessor to the vector of 3 values for the X axis.

Returns:
the vector of 3 values for the X axis.

getXAxisMin

public java.lang.String getXAxisMin()
Accessor to the value for the X axis min.

Returns:
the X axis min.

getXAxisMax

public java.lang.String getXAxisMax()
Accessor to the value for the X axis max.

Returns:
the X axis max.

getXAxisWidth

public java.lang.String getXAxisWidth()
Accessor to the value for the X axis width.

Returns:
the vector of 3 values for the X axis.

getYAxisMin

public java.lang.String getYAxisMin()
Accessor to the value for the Y axis min.

Returns:
the X axis min.

getYAxisMax

public java.lang.String getYAxisMax()
Accessor to the value for the X axis max.

Returns:
the X axis max.

getYAxisWidth

public java.lang.String getYAxisWidth()
Accessor to the value for the X axis width.

Returns:
the vector of 3 values for the X axis.

getYAxis

public java.lang.String[] getYAxis()
Accessor to the vector of 3 values for the Y axis.

Returns:
the vector of 3 values for the Y axis.

getXVerticalLabels

public boolean getXVerticalLabels()
Accessor to the type of X labels : vertical if true, horizontal if false.

Returns:
vertical if true, horizontal if false.

getXGrid

public boolean getXGrid()
Accessor to X Grid : enabled if true, disabled if false.

Returns:
enabled if true, disabled if false.

getYGrid

public boolean getYGrid()
Accessor to Y Grid : enabled if true, disabled if false.

Returns:
enabled if true, disabled if false.

get3dEffect

public boolean get3dEffect()
Accessor to 3D Effect : enabled if true, disabled if false.

Returns:
enabled if true, disabled if false.

getShowLegend

public boolean getShowLegend()
Accessor to legend : show if true, hide if false.

Returns:
show if true, hide if false.

getShowTips

public boolean getShowTips()
Accessor to label tips : show if true, hide (or show only when the mouse is over the point) if false.

Returns:
label tips : show if true, hide (or show only when the mouse is over the point) if false.

getRatios

public boolean getRatios()
Accessor to ratios : ratios if true, real values if false.

Returns:
the ratios : ratios if true, real values if false.

getPreference

public LyPreference getPreference()
Accessor to the preference of this chart.

Returns:
the preference of this chart.

getClassInfo

public LyClassInfo getClassInfo()
Gets the ClassInfo of current controller.

Specified by:
getClassInfo in interface LyGetClassInfoInterface
Returns:
the classInfo associated to the controller.

getImage

public java.lang.String getImage()
Method for retrieving the name of the image associated to the type of chart.

Returns:
Name of the image resource.

setId

public void setId(java.lang.String id)
Sets the id of the instance.

Parameters:
id - Identifier of the instance.

setName

public void setName(java.lang.String name)
Sets the name of the instance.

Parameters:
name - Name of the instance.

setClassInfoId

public void setClassInfoId(java.lang.String classInfoId)
Sets the classInfo of the chart.

Parameters:
classInfoId - the classInfo of the chart.

setSelectedYFieldsInfo

public void setSelectedYFieldsInfo(java.util.Vector<java.lang.String> selectedYFieldsInfo)
Sets the Y fields of the chart.

Parameters:
selectedYFieldsInfo - the Y fields of the chart.

setSelectedXFieldInfo

public void setSelectedXFieldInfo(java.lang.String selectedXFieldInfo)
Sets the X field of the chart.

Parameters:
selectedXFieldInfo - the X field of the chart.

setSelectedGroupFieldInfo

public void setSelectedGroupFieldInfo(java.lang.String selectedGroupFieldInfo)
Sets the group field of the chart.

Parameters:
selectedGroupFieldInfo - the group field of the chart.

setTypeVarY

public void setTypeVarY(LyChartInfo.Type typeVarY)
Sets the description of the type of y variables.

Parameters:
typeVarY - the description of the type of y variables.

setTypeVarX

public void setTypeVarX(LyChartInfo.Type typeVarX)
Sets the description of the type of x variable.

Parameters:
typeVarX - the description of the type of x variable.

setSelectedGraphType

public void setSelectedGraphType(LyChartInfo.GraphType selectedGraphType)
Sets the graphic type of the chart.

Parameters:
selectedGraphType - the graphic type of the chart.

setXVal

public void setXVal(LyChartInfo.ValType xVal)
Sets the x type of values of the chart (real, intervals).

Parameters:
xVal - the x type of values of the chart (real, intervals).

setYVal

public void setYVal(LyChartInfo.ValType yVal)
Sets the y type of values of the chart (real, sum or count by interval).

Parameters:
yVal - the y type of values of the chart (real, sum or count by interval).

setXIntervalBegin

public void setXIntervalBegin(java.lang.String xIntervalBegin)
Sets the x interval begin.


setXIntervalLength

public void setXIntervalLength(java.lang.String xIntervalLength)
Sets the x interval length.


setXIntervalUnit

public void setXIntervalUnit(java.lang.String xIntervalUnit)
Sets the x interval unit.


setXIntervals

public void setXIntervals(java.lang.String[] xIntervals)
Sets the X intervals of the chart.

Parameters:
xIntervals - the X intervals of the chart.

setYIntervalBegin

public void setYIntervalBegin(java.lang.String yIntervalBegin)
Sets the y interval begin.


setYIntervalLength

public void setYIntervalLength(java.lang.String yIntervalLength)
Sets the y interval length.


setYIntervalUnit

public void setYIntervalUnit(java.lang.String yIntervalUnit)
Sets the y interval unit.


setYIntervals

public void setYIntervals(java.lang.String[] yIntervals)
Sets the Y intervals of the chart.

Parameters:
yIntervals - the Y intervals of the chart.

setPieBy

public void setPieBy(boolean pieBy)
Sets the type of the pies, if there are any.

Parameters:
pieBy - the type of the pies, if there are any.

setTitle

public void setTitle(java.lang.String title)
Sets the title of the chart graphic.

Parameters:
title - the title of the chart graphic.

setXTitle

public void setXTitle(java.lang.String xTitle)
Sets the title of X axis.

Parameters:
xTitle - the title of X axis.

setYTitle

public void setYTitle(java.lang.String yTitle)
Sets the title of Y axis.

Parameters:
yTitle - the title of Y axis.

setYAxisMin

public void setYAxisMin(java.lang.String yAxisMin)
Sets the value for the Y axis min.


setYAxisMax

public void setYAxisMax(java.lang.String yAxisMax)
Sets the value for the Y axis max.


setYAxisWidth

public void setYAxisWidth(java.lang.String yAxixWidth)
Sets the value for the Y axis width.


setXAxisMin

public void setXAxisMin(java.lang.String xAxisMin)
Sets the value for the X axis min.


setXAxisMax

public void setXAxisMax(java.lang.String xAxisMax)
Sets the value for the X axis max.


setXAxisWidth

public void setXAxisWidth(java.lang.String xAxixWidth)
Sets the value for the X axis width.


setXAxis

public void setXAxis(java.lang.String[] xAxis)
Sets the vector of 3 values for the X axis.

Parameters:
xAxis - the vector of 3 values for the X axis.

setYAxis

public void setYAxis(java.lang.String[] yAxis)
Sets the vector of 3 values for the Y axis.

Parameters:
yAxis - the vector of 3 values for the Y axis.

setXVerticalLabels

public void setXVerticalLabels(boolean xVerticalLabels)
Sets the type of X labels : vertical if true, horizontal if false.

Parameters:
xVerticalLabels - vertical if true, horizontal if false.

setXGrid

public void setXGrid(boolean xGrid)
Sets X Grid : enabled if true, disabled if false.

Parameters:
xGrid - enabled if true, disabled if false.

setYGrid

public void setYGrid(boolean yGrid)
Sets Y Grid : enabled if true, disabled if false.

Parameters:
yGrid - enabled if true, disabled if false.

set3dEffect

public void set3dEffect(boolean d3Effect)
Sets 3D Effect : enabled if true, disabled if false.

Parameters:
d3Effect - enabled if true, disabled if false.

setShowLegend

public void setShowLegend(boolean showLegend)
Sets the legend : show if true, hide if false.

Parameters:
showLegend - show if true, hide if false.

setShowTips

public void setShowTips(boolean showTips)
Sets the label tips : show if true, hide if false.

Parameters:
showTips - show if true, hide if false.

setRatios

public void setRatios(boolean ratios)
Sets the ratios : ratios if true, real values if false.

Parameters:
ratios - ratios if true, real values if false.

setPreference

public void setPreference(LyPreference preference)
Sets the preference.

Parameters:
the - preference of this chart

addYField

public void addYField(java.lang.String yField)
Add an element in Y fields id vector.

Parameters:
yField - an element in Y fields id vector.

getFields

public LyInfoList<LyFieldInfo> getFields()
Gets all fields that this chart info needs to be drawed.

Returns:
List on needed fields.

toString2

public java.lang.String toString2()
Make a string representing the object.

Returns:
a string representing the object.

getUser

public java.lang.String getUser()
Get owner of this chart.

Specified by:
getUser in interface LyExtraInfoInterface
Returns:
The owner of this chart.

saveFile

public boolean saveFile(LyXmlWriterInterface writer)
Method for saving preference file.

Specified by:
saveFile in interface LyExtraInfoInterface
Returns:
True if successful.

free

public void free()
Method for freeing extra info (and sub-infos).

Specified by:
free in interface LyExtraInfoInterface

deleteFile

public boolean deleteFile()
Method for deleting preference file.

Specified by:
deleteFile in interface LyExtraInfoInterface
Returns:
True if successful.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean header,
                     boolean body)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in interface LyExtraInfoInterface
Parameters:
pw - The printWriter on which the XML is written.
header - Boolean indicating if header must be written.
header - Boolean indicating if body must be written.

writeXml

public void writeXml(java.io.PrintWriter pw)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in interface LyExtraInfoInterface
Parameters:
pw - the printWriter on which the XML is written.

(c) January 2013 - W4 S.A.

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