|
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
leon.view.common.LyCommonFreeChartConverter
public class LyCommonFreeChartConverter
This class implements the Chart object (as described in the dtd) for the viewer.
LyChart
Nested Class Summary | |
---|---|
static class |
LyCommonFreeChartConverter.LyLegendItem
Specific legend item implementation used to change legend items colors. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static float |
ALPHA_RATIO
Default alpha ratio for transparency. |
static int |
DEFAULT_CHART_HEIGHT
Default chart height. |
static int |
DEFAULT_CHART_WIDTH
Default chart width. |
static int |
LINK_HEIGHT
Height of the link used to display values in plot and 3D bar charts. |
static int |
MAX_LABEL_LINES
Max number of lines for splitting the labels in the chart action. |
static int |
SCATTER_PLOT_DECIMALS_NUMBER
Number of decimals for position tooltips in scatter plot mode. |
static char |
SCATTER_PLOT_INTERNAL_LABEL_SEPARATOR
Internal separator used for labels of multiple points in scatter plot mode |
static java.lang.String |
SCATTER_PLOT_LABEL_SEPARATOR
Separator used for labels of multiple points in scatter plot mode. |
static java.lang.String |
SCATTER_PLOT_TOOLTIP_SEPARATOR
Separator used for tooltips of points in scatter plot mode. |
static java.lang.String |
SCATTER_PLOT_VISIBLE_LABEL_SEPARATOR
Visible separator used for labels of multiple points in scatter plot mode |
Fields inherited from class leon.view.LyChartConverter |
---|
DEFAULT_HEIGHT, DEFAULT_WIDTH |
Constructor Summary | |
---|---|
LyCommonFreeChartConverter()
Constructor. |
|
LyCommonFreeChartConverter(LyChart chart)
Constructor. |
Method Summary | |
---|---|
org.jfree.data.category.CategoryDataset |
createCategoryDataset()
Creates and returns a category dataset for the charts. |
org.jfree.data.xy.DefaultTableXYDataset |
createTableXYDataset()
Creates and returns a XYDataset for the demo charts. |
org.jfree.data.xy.XYSeriesCollection |
createXYDataset(boolean groupValues)
Creates and returns a XYDataset for the demo charts. |
java.lang.String |
generateUrl(java.lang.String sourceId)
Generate an URL for a given source id (used in web mode only). |
org.jfree.chart.JFreeChart |
getFreeChart()
Retreives the Internal Free chart component. |
java.lang.String |
getMultiLineBegin()
Retrieve the beginning of the label when it has more than one line. |
java.lang.String |
getMultiLineEnd()
Retrieve the end of the label when it has more than one line. |
java.lang.String |
getMultiLineSep()
Retrieve the line separator of the label when it has more than one line. |
java.awt.Paint[] |
getPaints()
Returns the specific palette for colors used in chart component. |
void |
initialize()
Initialization method. |
void |
reset()
Reset the display from the underlying XML data Main method to construct the chart. |
void |
saveImg(java.lang.String tmpDir,
java.lang.String imageFile,
java.lang.StringBuffer buffer,
boolean deleteOnExit)
Save the image of the chart. |
void |
setBackgroundColor(java.awt.Color color)
Change the background color of the chart component. |
void |
setDimension(int width,
int height)
Sets the width and height of the generated image. |
void |
setLegendRightPosition(boolean rightPosition)
Sets the legendRightPosition parameter. |
void |
setPaints(java.awt.Paint[] paints)
Set a specific palette for colors used in chart component. |
void |
setSpecificLegendValue(java.util.Hashtable<java.lang.String,java.lang.String> values)
Set the specific legend values. |
Methods inherited from class leon.view.LyChartConverter |
---|
buildXLabels, buildXLabels, generateSensitiveAreas, generateSensitiveAreas, setChart, setContent, setIntervals |
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_CHART_WIDTH
public static int DEFAULT_CHART_HEIGHT
public static float ALPHA_RATIO
public static int LINK_HEIGHT
public static int MAX_LABEL_LINES
public static java.lang.String SCATTER_PLOT_VISIBLE_LABEL_SEPARATOR
public static char SCATTER_PLOT_INTERNAL_LABEL_SEPARATOR
public static java.lang.String SCATTER_PLOT_LABEL_SEPARATOR
public static java.lang.String SCATTER_PLOT_TOOLTIP_SEPARATOR
public static int SCATTER_PLOT_DECIMALS_NUMBER
Constructor Detail |
---|
public LyCommonFreeChartConverter()
public LyCommonFreeChartConverter(LyChart chart)
chart
- the chart created by LyChartControllerLyChartController
Method Detail |
---|
public void setDimension(int width, int height)
width
- the new width of the generated imageheight
- the new height of the generated imagepublic void initialize()
initialize
in class LyChartConverter
public void reset()
reset
in class LyChartConverter
public org.jfree.data.category.CategoryDataset createCategoryDataset()
public org.jfree.data.xy.XYSeriesCollection createXYDataset(boolean groupValues)
public org.jfree.data.xy.DefaultTableXYDataset createTableXYDataset()
public void setPaints(java.awt.Paint[] paints)
paints
- the array of new colors that must be used in the chart componentpublic java.awt.Paint[] getPaints()
public void setBackgroundColor(java.awt.Color color)
color
- the new background colorpublic void setSpecificLegendValue(java.util.Hashtable<java.lang.String,java.lang.String> values)
setSpecificLegendValue
in class LyChartConverter
values
- public void setLegendRightPosition(boolean rightPosition)
setLegendRightPosition
in class LyChartConverter
rightPosition
- the new legendRightPosition valuepublic java.lang.String getMultiLineBegin()
getMultiLineBegin
in class LyChartConverter
public java.lang.String getMultiLineEnd()
getMultiLineEnd
in class LyChartConverter
public java.lang.String getMultiLineSep()
getMultiLineSep
in class LyChartConverter
public void saveImg(java.lang.String tmpDir, java.lang.String imageFile, java.lang.StringBuffer buffer, boolean deleteOnExit)
saveImg
in class LyChartConverter
tmpDir
- temporary directoryimageFile
- the PNG Filebuffer
- the buffer where imagemap must be generateddeleteOnExit
- indicates whether the file must be deleted on exiting the applicationpublic java.lang.String generateUrl(java.lang.String sourceId)
sourceId
- the id of the source
public org.jfree.chart.JFreeChart getFreeChart()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |