|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.AbstractDrawable
de.erichseifert.gral.DrawableContainer
de.erichseifert.gral.plots.Plot
de.erichseifert.gral.plots.PiePlot
public class PiePlot
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 |
---|
public static final Settings.Key RADIUS
public static final Settings.Key RADIUS_INNER
Number
value for the inner
radius of the pie relative to the outer radius.
public static final Settings.Key COLORS
ColorMapper
instance used for the segments.
public static final Settings.Key CLOCKWISE
Boolean
value which decides
whether the segments should be ordered clockwise (true
) or
counterclockwise (false
).
public static final Settings.Key START
Number
value for the starting
angle of the first segment in degrees.
public static final Settings.Key GAP
Number
value for the width of
gaps between the segments.
Constructor Detail |
---|
public PiePlot(DataSource data)
PiePlot
object with the specified DataSource
.
data
- Data to be displayed.Method Detail |
---|
public void dataChanged(DataSource data)
DataListener
dataChanged
in interface DataListener
dataChanged
in class Plot
data
- data that has changed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |