de.erichseifert.gral.plots
Class PiePlot

java.lang.Object
  extended by de.erichseifert.gral.AbstractDrawable
      extended by de.erichseifert.gral.DrawableContainer
          extended by de.erichseifert.gral.plots.Plot
              extended by de.erichseifert.gral.plots.PiePlot
All Implemented Interfaces:
Container, DataListener, Drawable, SettingsListener, SettingsStorage, Iterable<Drawable>

public class PiePlot
extends Plot
implements DataListener

Class that displays data in a pie plot.


Nested Class Summary
static class PiePlot.PiePlotArea2D
          Class that represents the drawing area of a PiePlot.
 
Field Summary
static Settings.Key CLOCKWISE
          Key for specifying a Boolean value which decides whether the segments should be ordered clockwise (true) or counterclockwise (false).
static Settings.Key COLORS
          Key for specifying the ColorMapper instance used for the segments.
static Settings.Key GAP
          Key for specifying a Number value for the width of gaps between the segments.
static Settings.Key RADIUS
          Key for specifying the radius of the pie relative to the plot area size.
static Settings.Key RADIUS_INNER
          Key for specifying a Number value for the inner radius of the pie relative to the outer radius.
static Settings.Key START
          Key for specifying a Number value for the starting angle of the first segment in degrees.
 
Fields inherited from class de.erichseifert.gral.plots.Plot
ANTIALISING, BACKGROUND, BORDER, COLOR, LEGEND, LEGEND_LOCATION, LEGEND_MARGIN, TITLE
 
Constructor Summary
PiePlot(DataSource data)
          Creates a new PiePlot object with the specified DataSource.
 
Method Summary
 void dataChanged(DataSource data)
          Method that is invoked by objects that provide support for DataListeners.
 
Methods inherited from class de.erichseifert.gral.plots.Plot
add, add, add, clear, contains, draw, get, getAxes, getAxis, getAxisRenderer, getAxisRenderer, getData, getLegend, getPlotArea, getSetting, getTitle, getVisibleData, isVisible, refresh, remove, removeAxis, removeSetting, removeSettingDefault, setAxis, setAxisRenderer, setAxisRenderer, setSetting, setSettingDefault, settingChanged, setVisible
 
Methods inherited from class de.erichseifert.gral.DrawableContainer
add, add, getConstraints, getInsets, getLayout, getPreferredSize, iterator, remove, setBounds, setBounds, setInsets, setLayout, size
 
Methods inherited from class de.erichseifert.gral.AbstractDrawable
getBounds, getHeight, getWidth, getX, getY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.erichseifert.gral.Container
getBounds
 

Field Detail

RADIUS

public static final Settings.Key RADIUS
Key for specifying the radius of the pie relative to the plot area size.


RADIUS_INNER

public static final Settings.Key RADIUS_INNER
Key for specifying a Number value for the inner radius of the pie relative to the outer radius.


COLORS

public static final Settings.Key COLORS
Key for specifying the ColorMapper instance used for the segments.


CLOCKWISE

public static final Settings.Key CLOCKWISE
Key for specifying a Boolean value which decides whether the segments should be ordered clockwise (true) or counterclockwise (false).


START

public static final Settings.Key START
Key for specifying a Number value for the starting angle of the first segment in degrees.


GAP

public static final Settings.Key GAP
Key for specifying a Number value for the width of gaps between the segments.

Constructor Detail

PiePlot

public PiePlot(DataSource data)
Creates a new PiePlot object with the specified DataSource.

Parameters:
data - Data to be displayed.
Method Detail

dataChanged

public void dataChanged(DataSource data)
Description copied from interface: DataListener
Method that is invoked by objects that provide support for DataListeners.

Specified by:
dataChanged in interface DataListener
Overrides:
dataChanged in class Plot
Parameters:
data - data that has changed


Copyright © 2009-2010. All Rights Reserved.