|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.chart.ChartUtils
org.pentaho.chart.plugin.jfreechart.utils.JFreeChartUtils
public class JFreeChartUtils
| Method Summary | |
|---|---|
static org.jfree.data.KeyToGroupMap |
createKeyToGroupMap(ChartDocument chartDocument,
ChartTableModel data,
org.jfree.data.category.CategoryDataset dataSet)
|
static ChartElement |
getBaseStackedGroupElement(ChartDocument chartDocument)
|
static ChartElement |
getChildGroup(ChartElement parentGroup)
|
static Color |
getColorFromCSSValue(org.pentaho.reporting.libraries.css.values.CSSValue value)
Retrieves the color information from the CSSValue parameter, creates a Color object and returns the same. |
static String |
getColumnName(ChartTableModel data,
int column)
|
static GradientPaint |
getGradientPaint(ChartElement ce)
Creates a GradientPaint object from the current series element using the gradient pertinent information. |
static boolean |
getIsStackedGrouped(ChartDocument chartDocument)
|
static float |
getMaximumBarWidth(ChartElement seriesElement)
Controls what the maximum bar width can be. |
static Object |
getRawRowName(ChartTableModel data,
ChartDocument chartDocument,
int row)
|
static double |
getScale(ChartDocument chartDocument)
Get the scale of the chart from the ChartTableModel. |
static int |
getSeriesColumn(ChartElement seriesElement,
ChartTableModel data,
int columnDefault)
|
static int |
getSeriesRow(ChartElement seriesElement,
int rowDefault)
|
static boolean |
getShowUrls(ChartDocument chartDocument)
If the chart URL template is defined in the plot tag with url value, then return true. |
static org.jfree.ui.StandardGradientPaintTransformer |
getStandardGradientPaintTrans(ChartElement ce)
Returns a new StandardGradientPaintTransformer object if the series element has gradient type of horizontal, vertical, center-horizontal and center-vertical. |
static String |
getURLText(ChartDocument chartDocument)
|
static void |
setPlotAttributes(org.jfree.chart.plot.CategoryPlot categoryPlot,
ChartDocument chartDocument)
Main method for setting ALL the plot attributes. |
static void |
setURLGeneration(org.jfree.chart.renderer.category.CategoryItemRenderer renderer,
ChartDocument chartDocument)
|
static boolean |
showItemLabel(ChartElement element)
Returns true if the item label visibility is set to true for the given element |
| Methods inherited from class org.pentaho.chart.ChartUtils |
|---|
getFont, getFont, getFontFamily, getFontSize, getFontStyle, getFontWeight |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object getRawRowName(ChartTableModel data,
ChartDocument chartDocument,
int row)
public static String getColumnName(ChartTableModel data,
int column)
data - column -
public static double getScale(ChartDocument chartDocument)
chartDocument - Contains actual chart definition
public static int getSeriesColumn(ChartElement seriesElement,
ChartTableModel data,
int columnDefault)
seriesElement - - series definition that has column-pos or column-name styledata - - the actual data (needed to locate the correct columns)columnDefault - - default column to return if either column-pos or column-name are
not defined or not found
public static int getSeriesRow(ChartElement seriesElement,
int rowDefault)
seriesElement - - series definition that has column-pos or column-name stylerowDefault - - default column to return if either column-pos or column-name are
not defined or not found
public static boolean getShowUrls(ChartDocument chartDocument)
chartDocument - - ChartDocument that defines what the series should look like
public static void setPlotAttributes(org.jfree.chart.plot.CategoryPlot categoryPlot,
ChartDocument chartDocument)
categoryPlot - - a CategoryPlot to manipulatechartDocument - - ChartDocument that contains the information for manipulating the plot
public static void setURLGeneration(org.jfree.chart.renderer.category.CategoryItemRenderer renderer,
ChartDocument chartDocument)
renderer - - Renderer for the current chartchartDocument - - ChartDocument that defines what the series should look likepublic static String getURLText(ChartDocument chartDocument)
chartDocument - - ChartDocument that defines what the series should look like
public static GradientPaint getGradientPaint(ChartElement ce)
ce - The ChartElement to be used to create the GradientPaint object.
public static Color getColorFromCSSValue(org.pentaho.reporting.libraries.css.values.CSSValue value)
value - CSSValue that has the color information.
public static org.jfree.ui.StandardGradientPaintTransformer getStandardGradientPaintTrans(ChartElement ce)
ce - Current series element
public static boolean showItemLabel(ChartElement element)
element - Current series element.
public static float getMaximumBarWidth(ChartElement seriesElement)
seriesElement - Maximum bar width setting for current series element
public static ChartElement getBaseStackedGroupElement(ChartDocument chartDocument)
public static ChartElement getChildGroup(ChartElement parentGroup)
public static boolean getIsStackedGrouped(ChartDocument chartDocument)
chartDocument -
public static org.jfree.data.KeyToGroupMap createKeyToGroupMap(ChartDocument chartDocument,
ChartTableModel data,
org.jfree.data.category.CategoryDataset dataSet)
chartDocument - data -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||