Class PieDatasetChartDefinition

    • Field Detail

      • logger

        protected static final org.apache.commons.logging.Log logger
    • Constructor Detail

      • PieDatasetChartDefinition

        public PieDatasetChartDefinition​(org.pentaho.platform.api.engine.IPentahoSession session)
      • PieDatasetChartDefinition

        public PieDatasetChartDefinition​(org.pentaho.commons.connection.IPentahoResultSet data,
                                         boolean byRow,
                                         org.pentaho.platform.api.engine.IPentahoSession session)
        Parameters:
        data -
      • PieDatasetChartDefinition

        public PieDatasetChartDefinition​(org.pentaho.commons.connection.IPentahoResultSet data,
                                         boolean byRow,
                                         org.dom4j.Node chartAttributes,
                                         org.pentaho.platform.api.engine.IPentahoSession session)
    • Method Detail

      • getLogger

        public static org.apache.commons.logging.Log getLogger()
      • setHeight

        public void setHeight​(org.dom4j.Node heightNode)
      • setHeight

        public void setHeight​(int height)
        Parameters:
        height - The height to set.
      • setWidth

        public void setWidth​(org.dom4j.Node widthNode)
      • setWidth

        public void setWidth​(int width)
        Parameters:
        width - The width to set.
      • setTitle

        public void setTitle​(org.dom4j.Node chartTitleNode)
      • setTitle

        public void setTitle​(String title)
        Parameters:
        title - The title to set.
      • setTitleFont

        public void setTitleFont​(Font titleFont)
      • setTitleFont

        public void setTitleFont​(org.dom4j.Node titleFontNode)
      • addSubTitles

        public void addSubTitles​(List subTitleNodes)
      • addSubTitle

        public void addSubTitle​(String subTitle)
      • addExplodedSlices

        public void addExplodedSlices​(List nodes)
      • addExplodedSlice

        public void addExplodedSlice​(String slice)
      • getExplodedSlices

        public List getExplodedSlices()
      • setChartBackground

        public void setChartBackground​(org.dom4j.Node chartBackgroundNode)
      • setChartBackgroundPaint

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

        public void setChartBackgroundImage​(org.dom4j.Node chartBackgroundImageNode)
      • setChartBackgroundImage

        public void setChartBackgroundImage​(Image chartBackgroundImage)
        Parameters:
        chartBackgroundImage - The chartBackgroundImage to set.
      • setBorderVisible

        public void setBorderVisible​(org.dom4j.Node borderVisibleNode)
      • setBorderVisible

        public void setBorderVisible​(boolean borderVisible)
        Parameters:
        borderVisible - The borderVisible to set.
      • setBorderPaint

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

        public void setTitlePosition​(org.dom4j.Node titlePositionNode)
      • getTitlePosition

        public org.jfree.ui.RectangleEdge getTitlePosition()
        Specified by:
        getTitlePosition in interface ChartDefinition
        Returns:
        Returns the titlePosition.
      • setTitlePosition

        public void setTitlePosition​(org.jfree.ui.RectangleEdge titlePosition)
        Parameters:
        titlePosition - The titlePosition to set.
      • setLegendPosition

        public void setLegendPosition​(org.dom4j.Node legendPositionNode)
      • setLegendPosition

        public void setLegendPosition​(org.jfree.ui.RectangleEdge legendPosition)
      • setPaintSequence

        public void setPaintSequence​(org.dom4j.Node paletteNode)
      • setPaintSequence

        public void setPaintSequence​(Paint[] paintSequence)
        Parameters:
        paintSequence - The paintSequence to set.
      • setPlotBackground

        public void setPlotBackground​(org.dom4j.Node plotBackgroundNode)
      • setPlotBackgroundPaint

        public void setPlotBackgroundPaint​(Paint plotBackgroundPaint)
      • setPlotBackgroundImage

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

        public void setPlotBackgroundImage​(org.dom4j.Node plotBackgroundImageNode)
      • setLegendIncluded

        public void setLegendIncluded​(org.dom4j.Node legendNode)
      • setLegendIncluded

        public void setLegendIncluded​(boolean legendIncluded)
        Parameters:
        legendIncluded - The legendIncluded to set.
      • setThreeD

        public void setThreeD​(org.dom4j.Node threeDNode)
      • setThreeD

        public void setThreeD​(boolean threeD)
        Parameters:
        threeD - The threeD to set.
      • setInteriorGap

        public void setInteriorGap​(double interiorGap)
        Parameters:
        interiorGap - The interiorGap to set.
      • getInteriorGap

        public double getInteriorGap()
      • setStartAngle

        public void setStartAngle​(double startAngle)
        Parameters:
        startAngle - The startAngle to set.
      • getStartAngle

        public double getStartAngle()
      • setLabelFont

        public void setLabelFont​(Font font)
      • 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​(org.dom4j.Node labelGapNode)
        Parameters:
        node - The labelGap to set.
      • setLabelGap

        public void setLabelGap​(double labelGap)
      • setDisplayLabels

        public void setDisplayLabels​(org.dom4j.Node threeDNode)
      • setDisplayLabels

        public void setDisplayLabels​(boolean displayLabels)
      • getSession

        public org.pentaho.platform.api.engine.IPentahoSession getSession()
      • setSession

        public void setSession​(org.pentaho.platform.api.engine.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
      • setLegendFont

        public void setLegendFont​(org.dom4j.Node legendFontNode)
      • setLegendBorderVisible

        public void setLegendBorderVisible​(org.dom4j.Node legendBorderVisibleNode)
      • setLegendBorderVisible

        public void setLegendBorderVisible​(boolean legendBorderVisible)
        Parameters:
        boolean - legendBorderVisible Set the visibility of the legend border.
      • 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
      • setBackgroundAlpha

        public void setBackgroundAlpha​(org.dom4j.Node backgroundAlphaNode)
      • setForegroundAlpha

        public void setForegroundAlpha​(org.dom4j.Node foregroundAlphaNode)