public class JFreeChartEngine extends Object
Modifier and Type | Field and Description |
---|---|
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 |
protected static org.apache.commons.logging.Log |
log |
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 and Description |
---|
JFreeChartEngine() |
Modifier and Type | Method and Description |
---|---|
static org.jfree.chart.JFreeChart |
getChart(org.jfree.data.general.Dataset dataset,
String title,
String units,
int width,
int height,
org.pentaho.platform.api.engine.ILogger logger)
Create a chart-object using dataset object.
|
static int |
getChartType(String typeStr) |
static String |
getChartTypeName(int type) |
static Color |
getColor(String htmlColor)
Creates a java.awt.Color object from an HTML color definition, eg #80dd3f
|
static Font |
getFont(org.dom4j.Node fontNode)
Creates a java.awt.TexturePaint object from an XML node from the dial definition document
|
static Paint |
getGradientPaint(org.dom4j.Node gradientNode,
int width,
int height) |
static Image |
getImage(org.dom4j.Node chartBackgroundImageNode,
org.pentaho.platform.api.engine.IPentahoSession session) |
static Image |
getImage(String imageName,
org.pentaho.platform.api.engine.IPentahoSession session) |
static Stroke |
getLineStyleStroke(String lineStyle,
float lineWidth) |
static Paint |
getPaint(org.dom4j.Node node)
Creates a java.awt.Paint object from an XML node from the dial definition document
|
static Paint |
getPaint(org.dom4j.Node node,
int width,
int height,
org.pentaho.platform.api.engine.IPentahoSession session)
Creates a java.awt.Paint object from an XML node from the dial definition document
|
static Paint |
getPaint(String htmlColor)
Creates a java.awt.Paint object from an HTML color definition, eg #80ff3f
|
static Paint |
getTexturePaint(org.dom4j.Node textureNode,
int width,
int height,
org.pentaho.platform.api.engine.IPentahoSession session) |
static Color |
getTransparent() |
static boolean |
isBarColumn(String[] barColumns,
String columnName) |
static boolean |
isLineColumn(String[] lineColumns,
String columnName) |
static void |
saveChart(org.jfree.data.general.Dataset dataset,
String title,
String units,
String fileName,
int width,
int height,
int outputType,
PrintWriter writer,
org.jfree.chart.ChartRenderingInfo info,
org.pentaho.platform.api.engine.ILogger logger)
Create an image file using dataset object.
|
static void |
saveChart(org.jfree.data.general.Dataset dataset,
String title,
String units,
String fileName,
int width,
int height,
int outputType,
PrintWriter writer,
org.pentaho.platform.api.engine.ILogger logger)
Create an image file using dataset object.
|
protected static final org.apache.commons.logging.Log log
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
public static void saveChart(org.jfree.data.general.Dataset dataset, String title, String units, String fileName, int width, int height, int outputType, PrintWriter writer, org.pentaho.platform.api.engine.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, String title, String units, String fileName, int width, int height, int outputType, PrintWriter writer, org.jfree.chart.ChartRenderingInfo info, org.pentaho.platform.api.engine.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, String title, String units, int width, int height, org.pentaho.platform.api.engine.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 topublic static int getChartType(String typeStr)
typeStr
- String name for chartfor valid chart name strings and integers
public static String getChartTypeName(int type)
type
- int type for chartfor valid chart name strings
public static Color getColor(String htmlColor)
htmlColor
- The color stringpublic static Color getTransparent()
public static Paint getPaint(org.dom4j.Node node, int width, int height, org.pentaho.platform.api.engine.IPentahoSession session)
width
- of the chartheight
- of the chartnode
- XML Node from the dial definitionpublic static Font getFont(org.dom4j.Node fontNode)
XML
- Node from the dial definitionwidth
- of the chartheight
- of the chartpublic static Paint getPaint(org.dom4j.Node node)
node
- XML Node from the chart definitionpublic static Paint getPaint(String htmlColor)
htmlColor
- The color stringpublic static Paint getGradientPaint(org.dom4j.Node gradientNode, int width, int height)
gradientNode
- root node that hold gradient informationpublic static Paint getTexturePaint(org.dom4j.Node textureNode, int width, int height, org.pentaho.platform.api.engine.IPentahoSession session)
textureNode
- root node that holds texture informationpublic static Image getImage(org.dom4j.Node chartBackgroundImageNode, org.pentaho.platform.api.engine.IPentahoSession session)
chartBackgroundImageNode
- - Node that contains a path to the images in its text elementpublic static Image getImage(String imageName, org.pentaho.platform.api.engine.IPentahoSession session)
imageName
- String that contains a path to the imageCopyright © 2019 Hitachi Vantara. All rights reserved.