|
||||||||||
| 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 JFreeChart |
getChart(Dataset dataset,
String title,
String units,
int width,
int height,
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(Node fontNode)
Creates a java.awt.TexturePaint object from an XML node from the dial definition document |
static Paint |
getGradientPaint(Node gradientNode,
int width,
int height)
|
static Image |
getImage(Node chartBackgroundImageNode,
IPentahoSession session)
|
static Stroke |
getLineStyleStroke(String lineStyle,
float lineWidth)
|
static Paint |
getPaint(Node node)
Creates a java.awt.Paint object from an XML node from the dial definition document |
static Paint |
getPaint(Node node,
int width,
int height,
IPentahoSession session)
Creates a java.awt.Paint object from an XML node from the dial definition document |
static Paint |
getTexturePaint(Node textureNode,
int width,
int height,
IPentahoSession session)
|
static Color |
getTransparent()
|
static boolean |
isBarColumn(String[] barColumns,
String columnName)
|
static boolean |
isLineColumn(String[] lineColumns,
String columnName)
|
static void |
saveChart(Dataset dataset,
String title,
String units,
String fileName,
int width,
int height,
int outputType,
PrintWriter writer,
ChartRenderingInfo info,
ILogger logger)
Create an image file using dataset object. |
static void |
saveChart(Dataset dataset,
String title,
String units,
String fileName,
int width,
int height,
int outputType,
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(Dataset dataset,
String title,
String units,
String fileName,
int width,
int height,
int outputType,
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 to
public static void saveChart(Dataset dataset,
String title,
String units,
String fileName,
int width,
int height,
int outputType,
PrintWriter writer,
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 to
public static JFreeChart getChart(Dataset dataset,
String title,
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(String typeStr)
typeStr - String name for chart
for valid chart name strings and integerspublic static String getChartTypeName(int type)
type - int type for chart
for valid chart name stringspublic static Color getColor(String htmlColor)
htmlColor - The color string
public static Color getTransparent()
public static Paint getPaint(Node node,
int width,
int height,
IPentahoSession session)
width - of the chartheight - of the chartnode - XML Node from the dial definition
public static Font getFont(Node fontNode)
XML - Node from the dial definitionwidth - of the chartheight - of the chart
public static Paint getPaint(Node node)
node - XML Node from the chart definition
public static Paint getGradientPaint(Node gradientNode,
int width,
int height)
gradientNode - root node that hold gradient information
public static Paint getTexturePaint(Node textureNode,
int width,
int height,
IPentahoSession session)
textureNode - root node that holds texture information
public static Stroke getLineStyleStroke(String lineStyle,
float lineWidth)
public static Image getImage(Node chartBackgroundImageNode,
IPentahoSession session)
chartBackgroundImageNode - -
Node that contains a path to the images in its text element
public static boolean isBarColumn(String[] barColumns,
String columnName)
public static boolean isLineColumn(String[] lineColumns,
String columnName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||