|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.platform.uifoundation.chart.JFreeChartEngine
public class JFreeChartEngine
Field Summary | |
---|---|
static int |
AREA_CHART_TYPE
|
static int |
BAR_CHART_TYPE
|
static int |
BAR_LINE_CHART_TYPE
|
static int |
BUBBLE_CHART_TYPE
|
static int |
DIAL_CHART_TYPE
|
static int |
DIFFERENCE_CHART_TYPE
|
static int |
DOT_CHART_TYPE
|
static int |
LINE_CHART_TYPE
|
static int |
OUTPUT_CHART
|
static int |
OUTPUT_PNG
|
static int |
OUTPUT_PNG_BYTES
|
static int |
OUTPUT_SVG
|
static int |
PIE_CHART_TYPE
|
static int |
PIE_GRID_CHART_TYPE
|
static int |
STEP_AREA_CHART_TYPE
|
static int |
STEP_CHART_TYPE
|
static int |
THERMOMETER_CHART_TYPE
|
static int |
UNDEFINED_CHART_TYPE
|
Constructor Summary | |
---|---|
JFreeChartEngine()
|
Method Summary | |
---|---|
static org.jfree.chart.JFreeChart |
getChart(org.jfree.data.general.Dataset dataset,
java.lang.String title,
java.lang.String units,
int width,
int height,
ILogger logger)
Create a chart-object using dataset object. |
static int |
getChartType(java.lang.String typeStr)
|
static java.lang.String |
getChartTypeName(int type)
|
static java.awt.Color |
getColor(java.lang.String htmlColor)
Creates a java.awt.Color object from an HTML color definition, eg #80dd3f |
static java.awt.Font |
getFont(org.dom4j.Node fontNode)
Creates a java.awt.TexturePaint object from an XML node from the dial definition document |
static java.awt.Paint |
getGradientPaint(org.dom4j.Node gradientNode,
int width,
int height)
|
static java.awt.Image |
getImage(org.dom4j.Node chartBackgroundImageNode,
IPentahoSession session)
|
static java.awt.Image |
getImage(java.lang.String imageName,
IPentahoSession session)
|
static java.awt.Stroke |
getLineStyleStroke(java.lang.String lineStyle,
float lineWidth)
|
static java.awt.Paint |
getPaint(org.dom4j.Node node)
Creates a java.awt.Paint object from an XML node from the dial definition document |
static java.awt.Paint |
getPaint(org.dom4j.Node node,
int width,
int height,
IPentahoSession session)
Creates a java.awt.Paint object from an XML node from the dial definition document |
static java.awt.Paint |
getPaint(java.lang.String htmlColor)
Creates a java.awt.Paint object from an HTML color definition, eg #80ff3f |
static java.awt.Paint |
getTexturePaint(org.dom4j.Node textureNode,
int width,
int height,
IPentahoSession session)
|
static java.awt.Color |
getTransparent()
|
static boolean |
isBarColumn(java.lang.String[] barColumns,
java.lang.String columnName)
|
static boolean |
isLineColumn(java.lang.String[] lineColumns,
java.lang.String columnName)
|
static void |
saveChart(org.jfree.data.general.Dataset dataset,
java.lang.String title,
java.lang.String units,
java.lang.String fileName,
int width,
int height,
int outputType,
java.io.PrintWriter writer,
org.jfree.chart.ChartRenderingInfo info,
ILogger logger)
Create an image file using dataset object. |
static void |
saveChart(org.jfree.data.general.Dataset dataset,
java.lang.String title,
java.lang.String units,
java.lang.String fileName,
int width,
int height,
int outputType,
java.io.PrintWriter writer,
ILogger logger)
Create an image file using dataset object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OUTPUT_CHART
public static final int OUTPUT_PNG
public static final int OUTPUT_SVG
public static final int OUTPUT_PNG_BYTES
public static final int UNDEFINED_CHART_TYPE
public static final int DIAL_CHART_TYPE
public static final int THERMOMETER_CHART_TYPE
public static final int PIE_CHART_TYPE
public static final int PIE_GRID_CHART_TYPE
public static final int BAR_CHART_TYPE
public static final int LINE_CHART_TYPE
public static final int AREA_CHART_TYPE
public static final int STEP_CHART_TYPE
public static final int STEP_AREA_CHART_TYPE
public static final int DIFFERENCE_CHART_TYPE
public static final int DOT_CHART_TYPE
public static final int BAR_LINE_CHART_TYPE
public static final int BUBBLE_CHART_TYPE
Constructor Detail |
---|
public JFreeChartEngine()
Method Detail |
---|
public static void saveChart(org.jfree.data.general.Dataset dataset, java.lang.String title, java.lang.String units, java.lang.String fileName, int width, int height, int outputType, java.io.PrintWriter writer, ILogger logger)
dataset
- Thetitle
- The title of the chartunits
- The units of the chart valuefileName
- The path and file of the image to createwidth
- The width of the image to createheight
- The height of the image to createoutputType
- The type of the image to createwriter
- A writer to writer the image map intologger
- The logger to log any messages topublic static void saveChart(org.jfree.data.general.Dataset dataset, java.lang.String title, java.lang.String units, java.lang.String fileName, int width, int height, int outputType, java.io.PrintWriter writer, org.jfree.chart.ChartRenderingInfo info, ILogger logger)
dataset
- Thetitle
- The title of the chartunits
- The units of the chart valuefileName
- The path and file of the image to createwidth
- The width of the image to createheight
- The height of the image to createoutputType
- The type of the image to createwriter
- A writer to writer the image map intologger
- The logger to log any messages topublic static org.jfree.chart.JFreeChart getChart(org.jfree.data.general.Dataset dataset, java.lang.String title, java.lang.String units, int width, int height, ILogger logger)
dataset
- The datasettitle
- The title of the chartunits
- The units of the chart valuewidth
- The width of the image to createheight
- The height of the image to createlogger
- The logger to log any messages to
public static int getChartType(java.lang.String typeStr)
typeStr
- String name for chart
for valid chart name strings and integers
public static java.lang.String getChartTypeName(int type)
type
- int type for chart
for valid chart name strings
public static java.awt.Color getColor(java.lang.String htmlColor)
htmlColor
- The color string
public static java.awt.Color getTransparent()
public static java.awt.Paint getPaint(org.dom4j.Node node, int width, int height, IPentahoSession session)
width
- of the chartheight
- of the chartnode
- XML Node from the dial definition
public static java.awt.Font getFont(org.dom4j.Node fontNode)
XML
- Node from the dial definitionwidth
- of the chartheight
- of the chart
public static java.awt.Paint getPaint(org.dom4j.Node node)
node
- XML Node from the chart definition
public static java.awt.Paint getPaint(java.lang.String htmlColor)
htmlColor
- The color string
public static java.awt.Paint getGradientPaint(org.dom4j.Node gradientNode, int width, int height)
gradientNode
- root node that hold gradient information
public static java.awt.Paint getTexturePaint(org.dom4j.Node textureNode, int width, int height, IPentahoSession session)
textureNode
- root node that holds texture information
public static java.awt.Stroke getLineStyleStroke(java.lang.String lineStyle, float lineWidth)
public static java.awt.Image getImage(org.dom4j.Node chartBackgroundImageNode, IPentahoSession session)
chartBackgroundImageNode
- -
Node that contains a path to the images in its text element
public static java.awt.Image getImage(java.lang.String imageName, IPentahoSession session)
imageName
- String that contains a path to the image
public static boolean isBarColumn(java.lang.String[] barColumns, java.lang.String columnName)
public static boolean isLineColumn(java.lang.String[] lineColumns, java.lang.String columnName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |