net.sf.jasperreports.components.spiderchart
Class StandardSpiderPlot

java.lang.Object
  extended by net.sf.jasperreports.components.spiderchart.StandardSpiderPlot
All Implemented Interfaces:
Serializable, Cloneable, ChartPlot, SpiderPlot, JRChangeEventsSupport, JRCloneable

public class StandardSpiderPlot
extends Object
implements SpiderPlot, JRChangeEventsSupport

Version:
$Id: StandardSpiderPlot.java 4595 2011-09-08 15:55:10Z teodord $
Author:
sanda zaharia (shertage@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  Color axisLineColor
           
protected  Float axisLineWidth
           
protected  Color backcolor
           
protected  Float backgroundAlpha
           
protected  Float foregroundAlpha
           
protected  Double headPercent
           
protected  Double interiorGap
           
protected  Color labelColor
           
protected  JRFont labelFont
           
protected  Double labelGap
           
protected  JRExpression maxValueExpression
           
static String PROPERTY_AXIS_LINE_COLOR
           
static String PROPERTY_AXIS_LINE_WIDTH
           
static String PROPERTY_BACKCOLOR
           
static String PROPERTY_BACKGROUND_ALPHA
           
static String PROPERTY_FOREGROUND_ALPHA
           
static String PROPERTY_HEAD_PERCENT
           
static String PROPERTY_INTERIOR_GAP
           
static String PROPERTY_LABEL_COLOR
           
static String PROPERTY_LABEL_FONT
           
static String PROPERTY_LABEL_GAP
           
static String PROPERTY_MAX_VALUE_EXPRESSION
           
static String PROPERTY_ROTATION
           
static String PROPERTY_START_ANGLE
           
static String PROPERTY_TABLE_ORDER
           
static String PROPERTY_WEB_FILLED
           
protected  SpiderRotationEnum rotation
           
protected  Double startAngle
           
protected  TableOrderEnum tableOrder
           
protected  Boolean webFilled
           
 
Constructor Summary
StandardSpiderPlot()
           
StandardSpiderPlot(SpiderPlot spiderPlot, JRBaseObjectFactory factory)
           
 
Method Summary
 Object clone()
           
 void collectExpressions(JRExpressionCollector collector)
           
 Color getAxisLineColor()
           
 Float getAxisLineWidth()
           
 Color getBackcolor()
          Gets the chart background color.
 Float getBackgroundAlpha()
          Gets the transparency factor for this plot background.
 JRPropertyChangeSupport getEventSupport()
          Returns the property change support object for this instance.
 Float getForegroundAlpha()
          Gets the transparency factor for this plot foreground.
 Double getHeadPercent()
           
 Double getInteriorGap()
           
 Color getLabelColor()
           
 JRFont getLabelFont()
           
 Double getLabelGap()
           
 JRExpression getMaxValueExpression()
           
 org.jfree.chart.plot.PlotOrientation getOrientation()
          Gets the plot orientation (horizontal or vertical).
 SpiderRotationEnum getRotation()
           
 Double getStartAngle()
           
 TableOrderEnum getTableOrder()
           
 Boolean getWebFilled()
           
 void setAxisLineColor(Color axisLineColor)
           
 void setAxisLineWidth(Float axisLineWidth)
           
 void setBackcolor(Color backcolor)
           
 void setBackgroundAlpha(Float backgroundAlpha)
           
 void setForegroundAlpha(Float foregroundAlpha)
           
 void setHeadPercent(Double headPercent)
           
 void setInteriorGap(Double interiorGap)
           
 void setLabelColor(Color labelColor)
           
 void setLabelFont(JRFont labelFont)
           
 void setLabelGap(Double labelGap)
           
 void setMaxValueExpression(JRExpression maxValueExpression)
           
 void setRotation(SpiderRotationEnum rotation)
           
 void setStartAngle(Double startAngle)
           
 void setTableOrder(TableOrderEnum tableOrder)
           
 void setWebFilled(Boolean webFilled)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_LABEL_FONT

public static final String PROPERTY_LABEL_FONT
See Also:
Constant Field Values

PROPERTY_MAX_VALUE_EXPRESSION

public static final String PROPERTY_MAX_VALUE_EXPRESSION
See Also:
Constant Field Values

PROPERTY_ROTATION

public static final String PROPERTY_ROTATION
See Also:
Constant Field Values

PROPERTY_TABLE_ORDER

public static final String PROPERTY_TABLE_ORDER
See Also:
Constant Field Values

PROPERTY_WEB_FILLED

public static final String PROPERTY_WEB_FILLED
See Also:
Constant Field Values

PROPERTY_START_ANGLE

public static final String PROPERTY_START_ANGLE
See Also:
Constant Field Values

PROPERTY_HEAD_PERCENT

public static final String PROPERTY_HEAD_PERCENT
See Also:
Constant Field Values

PROPERTY_INTERIOR_GAP

public static final String PROPERTY_INTERIOR_GAP
See Also:
Constant Field Values

PROPERTY_AXIS_LINE_COLOR

public static final String PROPERTY_AXIS_LINE_COLOR
See Also:
Constant Field Values

PROPERTY_AXIS_LINE_WIDTH

public static final String PROPERTY_AXIS_LINE_WIDTH
See Also:
Constant Field Values

PROPERTY_LABEL_GAP

public static final String PROPERTY_LABEL_GAP
See Also:
Constant Field Values

PROPERTY_LABEL_COLOR

public static final String PROPERTY_LABEL_COLOR
See Also:
Constant Field Values

PROPERTY_BACKCOLOR

public static final String PROPERTY_BACKCOLOR
See Also:
Constant Field Values

PROPERTY_BACKGROUND_ALPHA

public static final String PROPERTY_BACKGROUND_ALPHA
See Also:
Constant Field Values

PROPERTY_FOREGROUND_ALPHA

public static final String PROPERTY_FOREGROUND_ALPHA
See Also:
Constant Field Values

labelFont

protected JRFont labelFont

maxValueExpression

protected JRExpression maxValueExpression

rotation

protected SpiderRotationEnum rotation

tableOrder

protected TableOrderEnum tableOrder

webFilled

protected Boolean webFilled

startAngle

protected Double startAngle

headPercent

protected Double headPercent

interiorGap

protected Double interiorGap

axisLineColor

protected Color axisLineColor

axisLineWidth

protected Float axisLineWidth

labelGap

protected Double labelGap

labelColor

protected Color labelColor

backcolor

protected Color backcolor

backgroundAlpha

protected Float backgroundAlpha

foregroundAlpha

protected Float foregroundAlpha
Constructor Detail

StandardSpiderPlot

public StandardSpiderPlot()

StandardSpiderPlot

public StandardSpiderPlot(SpiderPlot spiderPlot,
                          JRBaseObjectFactory factory)
Method Detail

getLabelFont

public JRFont getLabelFont()
Specified by:
getLabelFont in interface SpiderPlot
Returns:
the labelFont

getMaxValueExpression

public JRExpression getMaxValueExpression()
Specified by:
getMaxValueExpression in interface SpiderPlot
Returns:
the maxValueExpression

getRotation

public SpiderRotationEnum getRotation()
Specified by:
getRotation in interface SpiderPlot
Returns:
the rotation

getTableOrder

public TableOrderEnum getTableOrder()
Specified by:
getTableOrder in interface SpiderPlot
Returns:
the tableOrder

getWebFilled

public Boolean getWebFilled()
Specified by:
getWebFilled in interface SpiderPlot
Returns:
the webFilled

getStartAngle

public Double getStartAngle()
Specified by:
getStartAngle in interface SpiderPlot
Returns:
the startAngle

getHeadPercent

public Double getHeadPercent()
Specified by:
getHeadPercent in interface SpiderPlot
Returns:
the headPercent

getInteriorGap

public Double getInteriorGap()
Specified by:
getInteriorGap in interface SpiderPlot
Returns:
the interiorGap

getAxisLineColor

public Color getAxisLineColor()
Specified by:
getAxisLineColor in interface SpiderPlot
Returns:
the axisLineColor

getAxisLineWidth

public Float getAxisLineWidth()
Specified by:
getAxisLineWidth in interface SpiderPlot
Returns:
the axisLineWidth

getLabelGap

public Double getLabelGap()
Specified by:
getLabelGap in interface SpiderPlot
Returns:
the labelGap

getLabelColor

public Color getLabelColor()
Specified by:
getLabelColor in interface SpiderPlot
Returns:
the labelColor

setLabelFont

public void setLabelFont(JRFont labelFont)

setMaxValueExpression

public void setMaxValueExpression(JRExpression maxValueExpression)

setRotation

public void setRotation(SpiderRotationEnum rotation)

setTableOrder

public void setTableOrder(TableOrderEnum tableOrder)

setWebFilled

public void setWebFilled(Boolean webFilled)

setStartAngle

public void setStartAngle(Double startAngle)

setHeadPercent

public void setHeadPercent(Double headPercent)

setInteriorGap

public void setInteriorGap(Double interiorGap)

setAxisLineColor

public void setAxisLineColor(Color axisLineColor)

setAxisLineWidth

public void setAxisLineWidth(Float axisLineWidth)

setLabelGap

public void setLabelGap(Double labelGap)

setLabelColor

public void setLabelColor(Color labelColor)

getBackcolor

public Color getBackcolor()
Description copied from interface: ChartPlot
Gets the chart background color.

Specified by:
getBackcolor in interface ChartPlot
Returns:
the backcolor

setBackcolor

public void setBackcolor(Color backcolor)
Parameters:
backcolor - the backcolor to set

getBackgroundAlpha

public Float getBackgroundAlpha()
Description copied from interface: ChartPlot
Gets the transparency factor for this plot background. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.

Specified by:
getBackgroundAlpha in interface ChartPlot
Returns:
the backgroundAlpha

setBackgroundAlpha

public void setBackgroundAlpha(Float backgroundAlpha)
Parameters:
backgroundAlpha - the backgroundAlpha to set

getForegroundAlpha

public Float getForegroundAlpha()
Description copied from interface: ChartPlot
Gets the transparency factor for this plot foreground. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.

Specified by:
getForegroundAlpha in interface ChartPlot
Returns:
the foregroundAlpha

setForegroundAlpha

public void setForegroundAlpha(Float foregroundAlpha)
Parameters:
foregroundAlpha - the foregroundAlpha to set

getOrientation

public org.jfree.chart.plot.PlotOrientation getOrientation()
Description copied from interface: ChartPlot
Gets the plot orientation (horizontal or vertical).

Specified by:
getOrientation in interface ChartPlot

collectExpressions

public void collectExpressions(JRExpressionCollector collector)

clone

public Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class Object

getEventSupport

public JRPropertyChangeSupport getEventSupport()
Description copied from interface: JRChangeEventsSupport
Returns the property change support object for this instance.

Specified by:
getEventSupport in interface JRChangeEventsSupport
Returns:
the property change support object for this instance


Copyright © 2012. All Rights Reserved.