public class PieDatasetChartDefinition extends org.jfree.data.general.DefaultPieDataset implements ChartDefinition
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
AREA_CHART_STR, BACKGROUND_ALPHA_NODE_NAME, BACKGROUND_TYPE_ATTRIBUTE_NAME, BAR_CHART_STR, BAR_LINE_CHART_STR, BUBBLE_CHART_STR, CATEGORY_DATASET_STR, CHART_BACKGROUND_NODE_NAME, CHART_BORDER_PAINT_NODE_NAME, CHART_BORDER_VISIBLE_NODE_NAME, COLOR_NODE_NAME, COLOR_TYPE_NAME, DATASET_TYPE_NODE_NAME, DAY_PERIOD_TYPE_STR, DIAL_CHART_STR, DIFFERENCE_CHART_STR, DISPLAY_LABELS_NODE_NAME, DISPLAY_LEGEND_BORDER_NODE_NAME, DOT_CHART_STR, DOT_HEIGHT_NODE_NAME, DOT_WIDTH_NODE_NAME, FIXEDMILLISECOND_PERIOD_TYPE_STR, FOREGROUND_ALPHA_NODE_NAME, GRADIENT_TYPE_NAME, HEIGHT_NODE_NAME, HORIZONTAL_ORIENTATION, HOUR_PERIOD_TYPE_STR, IMAGE_TYPE_NAME, INCLUDE_LEGEND_NODE_NAME, LEGEND_FONT_NODE_NAME, LEGEND_POSITION_NODE_NAME, LINE_CHART_STR, LINE_STYLE_DASH_STR, LINE_STYLE_DASHDOT_STR, LINE_STYLE_DASHDOTDOT_STR, LINE_STYLE_DOT_STR, LINE_STYLE_NODE_NAME, LINE_STYLE_SOLID_STR, LINE_WIDTH_NODE_NAME, MARKER_VISIBLE_NODE_NAME, MILLISECOND_PERIOD_TYPE_STR, MINUTE_PERIOD_TYPE_STR, MONTH_PERIOD_TYPE_STR, PALETTE_NODE_NAME, PIE_CHART_STR, PIE_GRID_CHART_STR, PLOT_BACKGROUND_NODE_NAME, QUARTER_PERIOD_TYPE_STR, SECOND_PERIOD_TYPE_STR, STACKED_NODE_NAME, STEP_AREA_CHART_STR, STEP_CHART_STR, SUBTITLE_NODE_NAME, SUBTITLES_NODE_NAME, TEXTURE_TYPE_NAME, THREED_NODE_NAME, TIME_SERIES_COLLECTION_STR, TITLE_FONT_NODE_NAME, TITLE_NODE_NAME, TITLE_POSITION_NODE_NAME, TYPE_NODE_NAME, VERTICAL_ORIENTATION, WEEK_PERIOD_TYPE_STR, WIDTH_NODE_NAME, XY_SERIES_COLLECTION_STR, XYZ_SERIES_COLLECTION_STR, YEAR_PERIOD_TYPE_STR
Constructor and Description |
---|
PieDatasetChartDefinition(org.pentaho.commons.connection.IPentahoResultSet data,
boolean byRow,
org.pentaho.platform.api.engine.IPentahoSession session) |
PieDatasetChartDefinition(org.pentaho.commons.connection.IPentahoResultSet data,
boolean byRow,
org.dom4j.Node chartAttributes,
org.pentaho.platform.api.engine.IPentahoSession session) |
PieDatasetChartDefinition(org.pentaho.platform.api.engine.IPentahoSession session) |
Modifier and Type | Method and Description |
---|---|
void |
addExplodedSlice(String slice) |
void |
addExplodedSlices(List nodes) |
void |
addSubTitle(String subTitle) |
void |
addSubTitles(List subTitleNodes) |
Float |
getBackgroundAlpha() |
Paint |
getBorderPaint() |
Image |
getChartBackgroundImage() |
Paint |
getChartBackgroundPaint() |
List |
getExplodedSlices() |
Float |
getForegroundAlpha() |
int |
getHeight() |
double |
getInteriorGap() |
Paint |
getLabelBackgroundPaint() |
Font |
getLabelFont() |
double |
getLabelGap() |
Paint |
getLabelPaint() |
Font |
getLegendFont()
Return the java.awt.Font to be used to display the legend items
|
org.jfree.ui.RectangleEdge |
getLegendPosition() |
static org.apache.commons.logging.Log |
getLogger() |
String |
getNoDataMessage() |
Paint[] |
getPaintSequence() |
Image |
getPlotBackgroundImage() |
Paint |
getPlotBackgroundPaint() |
org.pentaho.platform.api.engine.IPentahoSession |
getSession() |
double |
getStartAngle() |
List |
getSubtitles() |
String |
getTitle() |
Font |
getTitleFont() |
org.jfree.ui.RectangleEdge |
getTitlePosition() |
int |
getWidth() |
boolean |
isBorderVisible() |
boolean |
isDisplayLabels() |
boolean |
isLegendBorderVisible()
Return the boolen that states if the legend border is visible
|
boolean |
isLegendIncluded() |
boolean |
isThreeD() |
void |
setBackgroundAlpha(org.dom4j.Node backgroundAlphaNode) |
void |
setBorderPaint(Paint borderPaint) |
void |
setBorderVisible(boolean borderVisible) |
void |
setBorderVisible(org.dom4j.Node borderVisibleNode) |
void |
setChartBackground(org.dom4j.Node chartBackgroundNode) |
void |
setChartBackgroundImage(Image chartBackgroundImage) |
void |
setChartBackgroundImage(org.dom4j.Node chartBackgroundImageNode) |
void |
setChartBackgroundPaint(Paint chartBackgroundPaint) |
void |
setDisplayLabels(boolean displayLabels) |
void |
setDisplayLabels(org.dom4j.Node threeDNode) |
void |
setForegroundAlpha(org.dom4j.Node foregroundAlphaNode) |
void |
setHeight(int height) |
void |
setHeight(org.dom4j.Node heightNode) |
void |
setInteriorGap(double interiorGap) |
void |
setLabelBackgroundPaint(Paint labelBackgroundPaint) |
void |
setLabelFont(Font font) |
void |
setLabelGap(double labelGap) |
void |
setLabelGap(org.dom4j.Node labelGapNode) |
void |
setLabelPaint(Paint labelPaint) |
void |
setLegendBorderVisible(boolean legendBorderVisible) |
void |
setLegendBorderVisible(org.dom4j.Node legendBorderVisibleNode) |
void |
setLegendFont(Font legendFont)
Set java.awt.Font to be used to display the legend items
|
void |
setLegendFont(org.dom4j.Node legendFontNode) |
void |
setLegendIncluded(boolean legendIncluded) |
void |
setLegendIncluded(org.dom4j.Node legendNode) |
void |
setLegendPosition(org.dom4j.Node legendPositionNode) |
void |
setLegendPosition(org.jfree.ui.RectangleEdge legendPosition) |
void |
setPaintSequence(org.dom4j.Node paletteNode) |
void |
setPaintSequence(Paint[] paintSequence) |
void |
setPlotBackground(org.dom4j.Node plotBackgroundNode) |
void |
setPlotBackgroundImage(Image plotBackgroundImage) |
void |
setPlotBackgroundImage(org.dom4j.Node plotBackgroundImageNode) |
void |
setPlotBackgroundPaint(Paint plotBackgroundPaint) |
void |
setSession(org.pentaho.platform.api.engine.IPentahoSession session) |
void |
setStartAngle(double startAngle) |
void |
setThreeD(boolean threeD) |
void |
setThreeD(org.dom4j.Node threeDNode) |
void |
setTitle(org.dom4j.Node chartTitleNode) |
void |
setTitle(String title) |
void |
setTitleFont(Font titleFont) |
void |
setTitleFont(org.dom4j.Node titleFontNode) |
void |
setTitlePosition(org.dom4j.Node titlePositionNode) |
void |
setTitlePosition(org.jfree.ui.RectangleEdge titlePosition) |
void |
setWidth(int width) |
void |
setWidth(org.dom4j.Node widthNode) |
clear, clone, equals, getIndex, getItemCount, getKey, getKeys, getValue, getValue, hashCode, insertValue, insertValue, remove, setValue, setValue, sortByKeys, sortByValues
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
public PieDatasetChartDefinition(org.pentaho.platform.api.engine.IPentahoSession session)
public PieDatasetChartDefinition(org.pentaho.commons.connection.IPentahoResultSet data, boolean byRow, org.pentaho.platform.api.engine.IPentahoSession session)
data
- public PieDatasetChartDefinition(org.pentaho.commons.connection.IPentahoResultSet data, boolean byRow, org.dom4j.Node chartAttributes, org.pentaho.platform.api.engine.IPentahoSession session)
public static org.apache.commons.logging.Log getLogger()
public void setHeight(org.dom4j.Node heightNode)
public void setHeight(int height)
height
- The height to set.public int getHeight()
getHeight
in interface ChartDefinition
public void setWidth(org.dom4j.Node widthNode)
public void setWidth(int width)
width
- The width to set.public int getWidth()
getWidth
in interface ChartDefinition
public void setTitle(org.dom4j.Node chartTitleNode)
public void setTitle(String title)
title
- The title to set.public String getTitle()
getTitle
in interface ChartDefinition
public void setTitleFont(Font titleFont)
public void setTitleFont(org.dom4j.Node titleFontNode)
public Font getTitleFont()
getTitleFont
in interface ChartDefinition
public void addSubTitles(List subTitleNodes)
public void addSubTitle(String subTitle)
public List getSubtitles()
getSubtitles
in interface ChartDefinition
public void addExplodedSlices(List nodes)
public void addExplodedSlice(String slice)
public List getExplodedSlices()
public void setChartBackground(org.dom4j.Node chartBackgroundNode)
public void setChartBackgroundPaint(Paint chartBackgroundPaint)
backgroundPaint
- The backgroundPaint to set.public Paint getChartBackgroundPaint()
getChartBackgroundPaint
in interface ChartDefinition
public void setChartBackgroundImage(org.dom4j.Node chartBackgroundImageNode)
public void setChartBackgroundImage(Image chartBackgroundImage)
chartBackgroundImage
- The chartBackgroundImage to set.public Image getChartBackgroundImage()
getChartBackgroundImage
in interface ChartDefinition
public void setBorderVisible(org.dom4j.Node borderVisibleNode)
public void setBorderVisible(boolean borderVisible)
borderVisible
- The borderVisible to set.public boolean isBorderVisible()
isBorderVisible
in interface ChartDefinition
public Paint getBorderPaint()
getBorderPaint
in interface ChartDefinition
public void setBorderPaint(Paint borderPaint)
borderPaint
- The borderPaint to set.public void setTitlePosition(org.dom4j.Node titlePositionNode)
public org.jfree.ui.RectangleEdge getTitlePosition()
getTitlePosition
in interface ChartDefinition
public void setTitlePosition(org.jfree.ui.RectangleEdge titlePosition)
titlePosition
- The titlePosition to set.public void setLegendPosition(org.dom4j.Node legendPositionNode)
public org.jfree.ui.RectangleEdge getLegendPosition()
getLegendPosition
in interface ChartDefinition
public void setLegendPosition(org.jfree.ui.RectangleEdge legendPosition)
public void setPaintSequence(org.dom4j.Node paletteNode)
public void setPaintSequence(Paint[] paintSequence)
paintSequence
- The paintSequence to set.public Paint[] getPaintSequence()
getPaintSequence
in interface ChartDefinition
public void setPlotBackground(org.dom4j.Node plotBackgroundNode)
public void setPlotBackgroundPaint(Paint plotBackgroundPaint)
public Paint getPlotBackgroundPaint()
getPlotBackgroundPaint
in interface ChartDefinition
public void setPlotBackgroundImage(Image plotBackgroundImage)
plotBackgroundImage
- The plotBackgroundImage to set.public void setPlotBackgroundImage(org.dom4j.Node plotBackgroundImageNode)
public Image getPlotBackgroundImage()
getPlotBackgroundImage
in interface ChartDefinition
public void setLegendIncluded(org.dom4j.Node legendNode)
public void setLegendIncluded(boolean legendIncluded)
legendIncluded
- The legendIncluded to set.public boolean isLegendIncluded()
isLegendIncluded
in interface ChartDefinition
public void setThreeD(org.dom4j.Node threeDNode)
public void setThreeD(boolean threeD)
threeD
- The threeD to set.public boolean isThreeD()
isThreeD
in interface ChartDefinition
public void setInteriorGap(double interiorGap)
interiorGap
- The interiorGap to set.public double getInteriorGap()
public void setStartAngle(double startAngle)
startAngle
- The startAngle to set.public double getStartAngle()
public void setLabelFont(Font font)
public Font getLabelFont()
public void setLabelPaint(Paint labelPaint)
labelPaint
- The labelPaint to set.public Paint getLabelPaint()
public Paint getLabelBackgroundPaint()
public void setLabelBackgroundPaint(Paint labelBackgroundPaint)
labelBackgroundPaint
- The labelBackgroundPaint to set.public double getLabelGap()
public void setLabelGap(org.dom4j.Node labelGapNode)
node
- The labelGap to set.public void setLabelGap(double labelGap)
public boolean isDisplayLabels()
isDisplayLabels
in interface ChartDefinition
public void setDisplayLabels(org.dom4j.Node threeDNode)
public void setDisplayLabels(boolean displayLabels)
public org.pentaho.platform.api.engine.IPentahoSession getSession()
public void setSession(org.pentaho.platform.api.engine.IPentahoSession session)
public Font getLegendFont()
getLegendFont
in interface ChartDefinition
public void setLegendFont(Font legendFont)
Font
- The java.awt.Font for the legend itemspublic void setLegendFont(org.dom4j.Node legendFontNode)
public void setLegendBorderVisible(org.dom4j.Node legendBorderVisibleNode)
public void setLegendBorderVisible(boolean legendBorderVisible)
boolean
- legendBorderVisible Set the visibility of the legend border.public boolean isLegendBorderVisible()
isLegendBorderVisible
in interface ChartDefinition
public String getNoDataMessage()
getNoDataMessage
in interface ChartDefinition
public Float getBackgroundAlpha()
getBackgroundAlpha
in interface ChartDefinition
public void setBackgroundAlpha(org.dom4j.Node backgroundAlphaNode)
public Float getForegroundAlpha()
getForegroundAlpha
in interface ChartDefinition
public void setForegroundAlpha(org.dom4j.Node foregroundAlphaNode)
Copyright © 2019 Hitachi Vantara. All rights reserved.