org.pentaho.platform.uifoundation.chart
Class PieDatasetChartDefinition

java.lang.Object
  extended by DefaultPieDataset
      extended by org.pentaho.platform.uifoundation.chart.PieDatasetChartDefinition
All Implemented Interfaces:
ChartDefinition

public class PieDatasetChartDefinition
extends DefaultPieDataset
implements ChartDefinition


Field Summary
 
Fields inherited from interface org.pentaho.platform.uifoundation.chart.ChartDefinition
AREA_CHART_STR, BACKGROUND_TYPE_ATTRIBUTE_NAME, BAR_CHART_STR, BAR_LINE_CHART_STR, BUBBLE_CHART_STR, CATAGORY_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, GRADIENT_TYPE_NAME, HEIGHT_NODE_NAME, HORIZONTAL_ORIENTATION, HOUR_PERIOD_TYPE_STR, IMAGE_TYPE_NAME, INCLUDE_LEGEND_NODE_NAME, LEGEND_FONT_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 Summary
PieDatasetChartDefinition(IPentahoResultSet data, boolean byRow, IPentahoSession session)
           
PieDatasetChartDefinition(IPentahoResultSet data, boolean byRow, Node chartAttributes, IPentahoSession session)
           
PieDatasetChartDefinition(IPentahoSession session)
           
 
Method Summary
 void addExplodedSlice(String slice)
           
 void addExplodedSlices(List nodes)
           
 void addSubTitle(String subTitle)
           
 void addSubTitles(List subTitleNodes)
           
 Paint getBorderPaint()
           
 Image getChartBackgroundImage()
           
 Paint getChartBackgroundPaint()
           
 List getExplodedSlices()
           
 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
static Log getLogger()
           
 String getNoDataMessage()
           
 Paint[] getPaintSequence()
           
 Image getPlotBackgroundImage()
           
 Paint getPlotBackgroundPaint()
           
 IPentahoSession getSession()
           
 double getStartAngle()
           
 List getSubtitles()
           
 String getTitle()
           
 Font getTitleFont()
           
 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 setBorderPaint(Paint borderPaint)
           
 void setBorderVisible(Node borderVisibleNode)
           
 void setChartBackground(Node chartBackgroundNode)
           
 void setChartBackgroundImage(Node chartBackgroundImageNode)
           
 void setChartBackgroundPaint(Paint chartBackgroundPaint)
           
 void setDisplayLabels(Node threeDNode)
           
 void setHeight(Node heightNode)
           
 void setLabelBackgroundPaint(Paint labelBackgroundPaint)
           
 void setLabelGap(Node labelGapNode)
           
 void setLabelPaint(Paint labelPaint)
           
 void setLegendBorderVisible(Node legendBorderVisibleNode)
           
 void setLegendFont(Font legendFont)
          Set java.awt.Font to be used to display the legend items
 void setLegendIncluded(Node legendNode)
           
 void setPaintSequence(Node paletteNode)
           
 void setPlotBackground(Node plotBackgroundNode)
           
 void setPlotBackgroundImage(Image plotBackgroundImage)
           
 void setPlotBackgroundPaint(Paint plotBackgroundPaint)
           
 void setSession(IPentahoSession session)
           
 void setThreeD(Node threeDNode)
           
 void setTitle(Node chartTitleNode)
           
 void setTitleFont(Font titleFont)
           
 void setTitlePosition(Node titlePositionNode)
           
 void setWidth(Node widthNode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PieDatasetChartDefinition

public PieDatasetChartDefinition(IPentahoSession session)

PieDatasetChartDefinition

public PieDatasetChartDefinition(IPentahoResultSet data,
                                 boolean byRow,
                                 IPentahoSession session)
Parameters:
data -

PieDatasetChartDefinition

public PieDatasetChartDefinition(IPentahoResultSet data,
                                 boolean byRow,
                                 Node chartAttributes,
                                 IPentahoSession session)
Method Detail

getLogger

public static Log getLogger()

setHeight

public void setHeight(Node heightNode)

getHeight

public int getHeight()
Specified by:
getHeight in interface ChartDefinition

setWidth

public void setWidth(Node widthNode)

getWidth

public int getWidth()
Specified by:
getWidth in interface ChartDefinition

setTitle

public void setTitle(Node chartTitleNode)

getTitle

public String getTitle()
Specified by:
getTitle in interface ChartDefinition

setTitleFont

public void setTitleFont(Font titleFont)

getTitleFont

public Font getTitleFont()
Specified by:
getTitleFont in interface ChartDefinition

addSubTitles

public void addSubTitles(List subTitleNodes)

addSubTitle

public void addSubTitle(String subTitle)

getSubtitles

public List getSubtitles()
Specified by:
getSubtitles in interface ChartDefinition

addExplodedSlices

public void addExplodedSlices(List nodes)

addExplodedSlice

public void addExplodedSlice(String slice)

getExplodedSlices

public List getExplodedSlices()

setChartBackground

public void setChartBackground(Node chartBackgroundNode)

setChartBackgroundPaint

public void setChartBackgroundPaint(Paint chartBackgroundPaint)
Parameters:
backgroundPaint - The backgroundPaint to set.

getChartBackgroundPaint

public Paint getChartBackgroundPaint()
Specified by:
getChartBackgroundPaint in interface ChartDefinition

setChartBackgroundImage

public void setChartBackgroundImage(Node chartBackgroundImageNode)

getChartBackgroundImage

public Image getChartBackgroundImage()
Specified by:
getChartBackgroundImage in interface ChartDefinition

setBorderVisible

public void setBorderVisible(Node borderVisibleNode)

isBorderVisible

public boolean isBorderVisible()
Specified by:
isBorderVisible in interface ChartDefinition

getBorderPaint

public Paint getBorderPaint()
Specified by:
getBorderPaint in interface ChartDefinition

setBorderPaint

public void setBorderPaint(Paint borderPaint)
Parameters:
borderPaint - The borderPaint to set.

setTitlePosition

public void setTitlePosition(Node titlePositionNode)

getTitlePosition

public RectangleEdge getTitlePosition()
Specified by:
getTitlePosition in interface ChartDefinition

setPaintSequence

public void setPaintSequence(Node paletteNode)

getPaintSequence

public Paint[] getPaintSequence()
Specified by:
getPaintSequence in interface ChartDefinition

setPlotBackground

public void setPlotBackground(Node plotBackgroundNode)

setPlotBackgroundPaint

public void setPlotBackgroundPaint(Paint plotBackgroundPaint)

getPlotBackgroundPaint

public Paint getPlotBackgroundPaint()
Specified by:
getPlotBackgroundPaint in interface ChartDefinition

setPlotBackgroundImage

public void setPlotBackgroundImage(Image plotBackgroundImage)
Parameters:
plotBackgroundImage - The plotBackgroundImage to set.

getPlotBackgroundImage

public Image getPlotBackgroundImage()
Specified by:
getPlotBackgroundImage in interface ChartDefinition

setLegendIncluded

public void setLegendIncluded(Node legendNode)

isLegendIncluded

public boolean isLegendIncluded()
Specified by:
isLegendIncluded in interface ChartDefinition

setThreeD

public void setThreeD(Node threeDNode)

isThreeD

public boolean isThreeD()
Specified by:
isThreeD in interface ChartDefinition

getInteriorGap

public double getInteriorGap()

getStartAngle

public double getStartAngle()

getLabelFont

public Font getLabelFont()

setLabelPaint

public void setLabelPaint(Paint labelPaint)
Parameters:
labelPaint - The labelPaint to set.

getLabelPaint

public Paint getLabelPaint()
Returns:
Returns the labelPaint.

getLabelBackgroundPaint

public Paint getLabelBackgroundPaint()

setLabelBackgroundPaint

public void setLabelBackgroundPaint(Paint labelBackgroundPaint)
Parameters:
labelBackgroundPaint - The labelBackgroundPaint to set.

getLabelGap

public double getLabelGap()

setLabelGap

public void setLabelGap(Node labelGapNode)
Parameters:
node - The labelGap to set.

isDisplayLabels

public boolean isDisplayLabels()
Specified by:
isDisplayLabels in interface ChartDefinition

setDisplayLabels

public void setDisplayLabels(Node threeDNode)

getSession

public IPentahoSession getSession()

setSession

public void setSession(IPentahoSession session)

getLegendFont

public Font getLegendFont()
Return the java.awt.Font to be used to display the legend items

Specified by:
getLegendFont in interface ChartDefinition
Returns:
Font The font for the legend items

setLegendFont

public void setLegendFont(Font legendFont)
Set java.awt.Font to be used to display the legend items

Parameters:
Font - The java.awt.Font for the legend items

setLegendBorderVisible

public void setLegendBorderVisible(Node legendBorderVisibleNode)

isLegendBorderVisible

public boolean isLegendBorderVisible()
Return the boolen that states if the legend border is visible

Specified by:
isLegendBorderVisible in interface ChartDefinition
Returns:
boolean Is the legend border visible

getNoDataMessage

public String getNoDataMessage()
Specified by:
getNoDataMessage in interface ChartDefinition