|
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.LyChartConverter
public abstract class LyChartConverter
This class implements the Chart object (as described in the dtd) for the viewer.
LyChart
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
DEFAULT_HEIGHT
Height of the window. |
static int |
DEFAULT_WIDTH
Width of the window. |
Constructor Summary | |
---|---|
LyChartConverter()
Constructor. |
|
LyChartConverter(LyChart chart)
Constructor. |
Method Summary | |
---|---|
java.lang.String[] |
buildXLabels(java.util.Vector<java.lang.String> xSerie,
LyChartBase.XVal xVal,
LyChartBase.Type xType,
java.lang.String xDateType)
Build the labels corresponding to X. |
java.lang.String[] |
buildXLabels(java.util.Vector<java.lang.String> xSerie,
LyChartBase.XVal xVal,
LyChartBase.Type xType,
java.lang.String xDateType,
boolean addBlankForLabel)
Build the labels corresponding to X. |
boolean |
generateSensitiveAreas()
Returns the generateSensitiveAreas parameter. |
void |
generateSensitiveAreas(boolean generate)
Sets the generateSensitiveAreas parameter. |
abstract java.lang.String |
getMultiLineBegin()
Retrieve the beginning of the label when it has more than one line. |
abstract java.lang.String |
getMultiLineEnd()
Retrieve the end of the label when it has more than one line. |
abstract java.lang.String |
getMultiLineSep()
Retrieve the line separator of the label when it has more than one line. |
void |
initialize()
Initialization method. |
abstract void |
reset()
Reset the display from the underlying XML data Main method to construct the chart. |
abstract void |
saveImg(java.lang.String tmpDir,
java.lang.String imageFile,
java.lang.StringBuffer buffer,
boolean deleteOnExit)
Save the image of the chart. |
void |
setChart(LyChart chart)
Affect a chart to this view. |
void |
setContent()
Sets the content of this view. |
void |
setIntervals()
If needed : replace all x values by the beginning of x intervals, replace all y values by the middle of y intervals. |
void |
setLegendRightPosition(boolean rightPosition)
Sets the legendRightPosition parameter. |
void |
setSpecificLegendValue(java.util.Hashtable<java.lang.String,java.lang.String> values)
Set the specific legend values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static int DEFAULT_WIDTH
public static int DEFAULT_HEIGHT
Constructor Detail |
---|
public LyChartConverter()
public LyChartConverter(LyChart chart)
chart
- the chart created by LyChartControllerLyChartController
Method Detail |
---|
public void initialize()
public void setChart(LyChart chart)
chart
- the chart created by LyChartControllerLyChartController
public void setContent()
public abstract void reset()
public void setSpecificLegendValue(java.util.Hashtable<java.lang.String,java.lang.String> values)
values
- public void setLegendRightPosition(boolean rightPosition)
rightPosition
- the new legendRightPosition valuepublic void generateSensitiveAreas(boolean generate)
generate
- the new generateSensitiveAreas valuepublic boolean generateSensitiveAreas()
public java.lang.String[] buildXLabels(java.util.Vector<java.lang.String> xSerie, LyChartBase.XVal xVal, LyChartBase.Type xType, java.lang.String xDateType)
xSerie
- Vector of the real values of the series.xVal
- type of study for X : real values or intervalsxType
- type X values : text, numeric or datexDateType
- type X dates (if needed): date, time, etc.
public java.lang.String[] buildXLabels(java.util.Vector<java.lang.String> xSerie, LyChartBase.XVal xVal, LyChartBase.Type xType, java.lang.String xDateType, boolean addBlankForLabel)
xSerie
- Vector of the real values of the series.xVal
- type of study for X : real values or intervalsxType
- type X values : text, numeric or datexDateType
- type X dates (if needed): date, time, etc.addBlankForLabel
- indicates if blank must be added before ending line.
public void setIntervals()
public abstract void saveImg(java.lang.String tmpDir, java.lang.String imageFile, java.lang.StringBuffer buffer, boolean deleteOnExit)
tmpDir
- temporary directoryimageFile
- the PNG Filebuffer
- the buffer where imagemap must be generateddeleteOnExit
- indicates whether the file must be deleted on exiting the applicationpublic abstract java.lang.String getMultiLineBegin()
public abstract java.lang.String getMultiLineEnd()
public abstract java.lang.String getMultiLineSep()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |