JIDE 3.5.15

com.jidesoft.chart.style
Class PieStyle

java.lang.Object
  extended by com.jidesoft.chart.style.PieStyle

public class PieStyle
extends Object


Constructor Summary
PieStyle()
           
 
Method Summary
 float getExplosionRatio()
          Returns the amount by which pie segments are moved when selected and the exploded segments effect is in use.
 float getOffsetAngle()
          Returns the offset angle used when drawing a pie chart
 boolean isAlwaysExplodeSegments()
          Returns whether segments are always displayed in their exploded form
 void setAlwaysExplodeSegments(boolean alwaysExplodeSegments)
          When true, specify that segments should always be displayed in their exploded form, even when not selected
 void setExplosionRatio(float explosionRatio)
          Specifies the amount that a selected pie segment will be 'exploded' out from the rest of the pie chart when selected and when the exploded segments effect is active.
 void setOffsetAngle(float offsetAngle)
          Specify the offset angle to use when drawing a pie chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PieStyle

public PieStyle()
Method Detail

getOffsetAngle

public float getOffsetAngle()
Returns the offset angle used when drawing a pie chart

Returns:
the offset angle (in degrees)

setOffsetAngle

public void setOffsetAngle(float offsetAngle)
Specify the offset angle to use when drawing a pie chart. By default this is 0, which means that angles are measured from a line pointing pointing east and are subtended anti-clockwise. Opening animations are measured from this angle, and provided there is more than one segment in the pie chart, this angle will always be the dividing line between two segments.

Parameters:
offsetAngle - the offset angle (in degrees)

getExplosionRatio

public float getExplosionRatio()
Returns the amount by which pie segments are moved when selected and the exploded segments effect is in use.

Returns:
the amount by which segments are displaced as a ratio of the radius of the pie

setExplosionRatio

public void setExplosionRatio(float explosionRatio)
Specifies the amount that a selected pie segment will be 'exploded' out from the rest of the pie chart when selected and when the exploded segments effect is active. The amount is specified in terms of the radius of the pie chart.

Parameters:
explosionRatio - the amount by which pie segments are displaced ('exploded') from the rest of the pie

isAlwaysExplodeSegments

public boolean isAlwaysExplodeSegments()
Returns whether segments are always displayed in their exploded form

Returns:
a boolean to indicate whether segments are always exploded

setAlwaysExplodeSegments

public void setAlwaysExplodeSegments(boolean alwaysExplodeSegments)
When true, specify that segments should always be displayed in their exploded form, even when not selected

Parameters:
alwaysExplodeSegments - whether to display segments in their exploded form (regardless of selection)

JIDE 3.5.15