com.steema.teechart.styles
Class Pie.PieOtherSlice

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.styles.Pie.PieOtherSlice
Enclosing class:
Pie

public final class Pie.PieOtherSlice
extends TeeBase

Title: PieOtherSlice class

Description: Pie series uses this class in its Pie.OtherSlice.

Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

See Also:
Pie.getOtherSlice()

Field Summary
 
Fields inherited from class com.steema.teechart.TeeBase
chart, InternalUse
 
Constructor Summary
Pie.PieOtherSlice(IBaseChart c, Series s)
           
 
Method Summary
 Color getColor()
          The Color of the OtherSlice.
 Legend getLegend()
          Sets the properties of the PieOtherSlice Legend.
 PieOtherStyle getStyle()
          Either value or percentage to group the 'other' Pie slice.
 java.lang.String getText()
          Title for otherSlice.
 double getValue()
          Value (value or percentage) for Otherslice grouping.
 void setColor(Color value)
          Sets the Color of the OtherSlice.
 void setStyle(PieOtherStyle value)
          Sets either value or percentage to group the 'other' Pie slice.
 void setText(java.lang.String value)
          Title for otherSlice.
 void setValue(double value)
          Value (value or percentage) for Otherslice grouping.
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pie.PieOtherSlice

public Pie.PieOtherSlice(IBaseChart c,
                         Series s)
Method Detail

getColor

public Color getColor()
The Color of the OtherSlice.

Returns:
Color

setColor

public void setColor(Color value)
Sets the Color of the OtherSlice.

Parameters:
value - Color

getLegend

public Legend getLegend()
Sets the properties of the PieOtherSlice Legend.

Example This sample shows how to use PieOtherSlice Legend:

prepare "Other" to group values below 10
pie1.getOtherSlice().setStyle(PieOtherStyles.BELOWVALUE);
pie1.getOtherSlice().setValue(10);
pie1.getOtherSlice().setText("Other");
pie1.getOtherSlice().getLegend().setVisible( true );
pie1.getOtherSlice().getLegend().setCustomPosition( true );
pie1.getOtherSlice().getLegend().setLeft( 350 );
pie1.getOtherSlice().getLegend().setTop( 150 );

Returns:
Legend

getText

public java.lang.String getText()
Title for otherSlice.
Default value: Other

Returns:
String

setText

public void setText(java.lang.String value)
Title for otherSlice.
Default value: Other

Parameters:
value - String

getValue

public double getValue()
Value (value or percentage) for Otherslice grouping.

Returns:
double

setValue

public void setValue(double value)
Value (value or percentage) for Otherslice grouping.

Parameters:
value - double

getStyle

public PieOtherStyle getStyle()
Either value or percentage to group the 'other' Pie slice.

Returns:
PieOtherStyle

setStyle

public void setStyle(PieOtherStyle value)
Sets either value or percentage to group the 'other' Pie slice.

Parameters:
value - PieOtherStyles