lt.monarch.chart.chart3D.series
Class Pie3DSliceLabelEntry

java.lang.Object
  extended by lt.monarch.chart.text.TextPainter
      extended by lt.monarch.chart.text.RotatedLabelPainter
          extended by lt.monarch.chart.text.LabelTextPainter
              extended by lt.monarch.chart.chart2D.series.PieSliceLabelEntry
                  extended by lt.monarch.chart.chart3D.series.Pie3DSliceLabelEntry
All Implemented Interfaces:
java.io.Serializable, AbstractTextPainter

public class Pie3DSliceLabelEntry
extends PieSliceLabelEntry

Defines label of pie chart slices

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  double height
           
 
Fields inherited from class lt.monarch.chart.chart2D.series.PieSliceLabelEntry
explode, fmetrics, halfAngle, image, imageMargin, inner, labelPosition, lmargin, radius, rotate, sliceAngle, startAngle
 
Fields inherited from class lt.monarch.chart.text.TextPainter
boundingBox, hAlignment, text, vAlignment, xMargin, yMargin
 
Constructor Summary
Constructor and Description
Pie3DSliceLabelEntry()
          Constructor the PieSliceLabelEntry
Pie3DSliceLabelEntry(java.lang.String s, double radius, double explode, double inner, double startAngle, double sliceAngle, Point3D center, java.awt.FontMetrics fm, double margin, double height)
          Constructor the PieSliceLabelEntry
Pie3DSliceLabelEntry(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)
          Constructor the PieSliceLabelEntry
 
Method Summary
Modifier and Type Method and Description
 Point3D getCenter()
          Return pie center point
 java.awt.Dimension getFullSize()
          Get full size of label (calculates with setted font metrics)
 double getHeight()
           
 Polygon3D getLine()
          Get straight or elbow lines of slices
 java.util.List<java.awt.Shape> getSliceShapes2D()
           
 double getZPosition()
           
 void refreshSliceLabelEntry(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)
          Refreshes the Pie3DSliceLabelEntry values
 void setHeight(double height)
           
 void setLine(Polygon3D line)
          Set straight or elbow lines of slices
 void setZPosition(double position)
           
 
Methods inherited from class lt.monarch.chart.chart2D.series.PieSliceLabelEntry
getAngle, getExplodeRadius, getFontMetrics, getFullArea, getHalfAngle, getIndex, getInner, getLabelPosition, getPieMargin, getPreferredBounds, getRadius, getRotate, getSliceLabelConnectorEntity, getSliceLabelEntity, getStartAngle, isOutsideLabel, paint, refreshSliceLabelEntry, setIndex, setLabelPosition, setLine, setOutsideLabel, setRotate
 
Methods inherited from class lt.monarch.chart.text.LabelTextPainter
findBounds, getFullArea, getFullSize, getRelativePosition, getRotationAngle, getRotationPoint, setRelativePosition, setRotationAngle, setRotationPoint, setText
 
Methods inherited from class lt.monarch.chart.text.TextPainter
dispose, getBounds, getHorizontalAlignment, getHorizontalMargin, getMarginInPixels, getMinimumHeight, getMinimumSize, getMinimumSize, getText, getVerticalAlignment, getVerticalMargin, getWrappingEnabled, setHorizontalAlignment, setHorizontalMargin, setMargin, setText, setVerticalAlignment, setVerticalMargin, setWrappingEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

height

protected double height
Constructor Detail

Pie3DSliceLabelEntry

public Pie3DSliceLabelEntry(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)
Constructor the PieSliceLabelEntry

Parameters:
s - text of label
radius - radius of slices
explode - explode of slice
inner - inner radius of slice
startAngle - start angle of slice
sliceAngle - angle of slice
center - center of pie
fm - font metrics of label
margin - margin of label
sliceShapes2D - pie slice shapes 2D

Pie3DSliceLabelEntry

public Pie3DSliceLabelEntry(java.lang.String s,
                            double radius,
                            double explode,
                            double inner,
                            double startAngle,
                            double sliceAngle,
                            Point3D center,
                            java.awt.FontMetrics fm,
                            double margin,
                            double height)
Constructor the PieSliceLabelEntry

Parameters:
s - text of label
radius - radius of slices
explode - explode of slice
inner - inner radius of slice
startAngle - start angle of slice
sliceAngle - angle of slice
center - center of pie
fm - font metrics of label
margin - margin of label

Pie3DSliceLabelEntry

public Pie3DSliceLabelEntry()
Constructor the PieSliceLabelEntry

Method Detail

refreshSliceLabelEntry

public void refreshSliceLabelEntry(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)
Refreshes the Pie3DSliceLabelEntry values

Parameters:
s - text of label
radius - radius of slices
explode - explode of slice
inner - inner radius of slice
startAngle - start angle of slice
sliceAngle - angle of slice
center - center of pie
fm - font metrics of label
margin - margin of label
sliceShapes2D - pie slice shapes 2D
image - image of label

getCenter

public Point3D getCenter()
Return pie center point

Overrides:
getCenter in class PieSliceLabelEntry
Returns:
center of pie

getLine

public Polygon3D getLine()
Get straight or elbow lines of slices

Overrides:
getLine in class PieSliceLabelEntry
Returns:
straight or elbow polygons of slices

setLine

public void setLine(Polygon3D line)
Set straight or elbow lines of slices

Parameters:
straight - or elbow polygons of slices

getHeight

public double getHeight()
Returns:
the height

setHeight

public void setHeight(double height)
Parameters:
height - the height to set

getZPosition

public double getZPosition()
Returns:
the zPosition

setZPosition

public void setZPosition(double position)
Parameters:
position - the zPosition to set

getSliceShapes2D

public java.util.List<java.awt.Shape> getSliceShapes2D()
Returns:
the sliceShapes2D

getFullSize

public java.awt.Dimension getFullSize()
Description copied from class: PieSliceLabelEntry
Get full size of label (calculates with setted font metrics)

Overrides:
getFullSize in class PieSliceLabelEntry
Returns:
full size dimensions