lt.monarch.chart.chart3D.series
Class Pie3DChartSlice

java.lang.Object
  extended by lt.monarch.chart.chart2D.series.PieChartSlice
      extended by lt.monarch.chart.chart3D.series.Pie3DChartSlice
All Implemented Interfaces:
java.io.Serializable

public class Pie3DChartSlice
extends PieChartSlice
implements java.io.Serializable

Pie class representing single pie segment.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.series.PieChartSlice
endAngle, entireValues, explodeRadius, innerRadius, isCloseOutside, overallAngle, percents, sliceAngle, sliceHalfAngle, sliceLabelEntry, sliceRadius, startAngle, value
 
Constructor Summary
Constructor and Description
Pie3DChartSlice(Chart3D chart)
          Constructs PieChartSegment
 
Method Summary
Modifier and Type Method and Description
 Point3D calculateHalfSlicePoint(double radius)
          Return calculated point of specify radius
 java.util.List<java.awt.Shape> draw(AbstractGraphics g, int index, Style style, Projector projector, PaintMode paintMode)
          Draws the slice of pie
 Point3D getCenterPoint()
          Returns the center of pie
 double getHeight()
          Returns pie slice height.
 java.util.ArrayList<java.awt.Shape> getOutlines()
           
 PieSlice3D getSlice3D()
           
 PieSliceLabelEntry getSliceLabelEntry(java.lang.String s, double radius, double explode, double inner, double startAngle, double sliceAngle, Point2D center, java.awt.FontMetrics fm, double margin, java.awt.Image image)
           
 Pie3DSliceLabelEntry getSliceLabelEntry(java.lang.String s, double radius, double explode, double inner, double startAngle, double sliceAngle, Point3D center, java.awt.FontMetrics fm, double margin, double height, java.util.List<java.awt.Shape> sliceShapes2D, java.awt.Image image)
           
 void setCenterPoint(Point3D centerPoint)
          Set center of pie chart
 void setExplodeRadius(double radius)
          Sets pie slice explode radius.
 void setHeight(double height)
          Set pie slice height.
 
Methods inherited from class lt.monarch.chart.chart2D.series.PieChartSlice
calculateAngles, getEndAngle, getEntireValue, getExplodeRadius, getInnerRadius, getOuterAngle, getOutlineClose, getOverallAngle, getPercentage, getSlice, getSliceEntity, getSliceHalfAngle, getSliceRadius, getStartAngle, getValue, setCenterPoint, setEntireValue, setInnerRadius, setOutlineClose, setOverallAngle, setSliceRadius, setStartAngle, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pie3DChartSlice

public Pie3DChartSlice(Chart3D chart)
Constructs PieChartSegment

Method Detail

setExplodeRadius

public void setExplodeRadius(double radius)
Sets pie slice explode radius.

Overrides:
setExplodeRadius in class PieChartSlice
Parameters:
radius - explode radius of pie slice in range [0,0.5]

getHeight

public double getHeight()
Returns pie slice height.

Returns:
the height

setHeight

public void setHeight(double height)
Set pie slice height.

Parameters:
height - the pie

setCenterPoint

public void setCenterPoint(Point3D centerPoint)
Set center of pie chart

Parameters:
centerPoint - point of the center the pie

getCenterPoint

public Point3D getCenterPoint()
Returns the center of pie

Overrides:
getCenterPoint in class PieChartSlice
Returns:
Point2D center of pie

calculateHalfSlicePoint

public Point3D calculateHalfSlicePoint(double radius)
Return calculated point of specify radius

Overrides:
calculateHalfSlicePoint in class PieChartSlice
Parameters:
radius - radius of calculated point
Returns:
point of specify radius

draw

public java.util.List<java.awt.Shape> draw(AbstractGraphics g,
                                           int index,
                                           Style style,
                                           Projector projector,
                                           PaintMode paintMode)
Draws the slice of pie

Overrides:
draw in class PieChartSlice
Parameters:
g - graphics context
index - slice index
style - style object
projector - projector instance
paintMode - paint mode of slice

getSlice3D

public PieSlice3D getSlice3D()

getSliceLabelEntry

public PieSliceLabelEntry getSliceLabelEntry(java.lang.String s,
                                             double radius,
                                             double explode,
                                             double inner,
                                             double startAngle,
                                             double sliceAngle,
                                             Point2D center,
                                             java.awt.FontMetrics fm,
                                             double margin,
                                             java.awt.Image image)
Overrides:
getSliceLabelEntry in class PieChartSlice

getSliceLabelEntry

public Pie3DSliceLabelEntry getSliceLabelEntry(java.lang.String s,
                                               double radius,
                                               double explode,
                                               double inner,
                                               double startAngle,
                                               double sliceAngle,
                                               Point3D center,
                                               java.awt.FontMetrics fm,
                                               double margin,
                                               double height,
                                               java.util.List<java.awt.Shape> sliceShapes2D,
                                               java.awt.Image image)

getOutlines

public java.util.ArrayList<java.awt.Shape> getOutlines()