public static class PiePlot.PiePlotLegend extends ValueLegend
AbstractLegend.AbstractSymbol, AbstractLegend.Item
Constructor and Description |
---|
PiePlot.PiePlotLegend(PiePlot plot)
Initializes a new instance with a specified plot.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Iterable<Row> |
getEntries(DataSource source)
Returns a sequence of items for the specified data source that should be
added to the legend.
|
Drawable |
getSymbol(Row row)
Returns a symbol for rendering a legend item.
|
add, dataAdded, dataRemoved, dataUpdated, getLabel, getLabelColumn, getLabelFormat, remove, setLabelColumn, setLabelFormat
clear, contains, draw, drawBackground, drawBorder, getAlignmentX, getAlignmentY, getBackground, getBorderColor, getBorderStroke, getFont, getGap, getOrientation, getSymbolSize, invalidate, isValid, refresh, refreshLayout, setAlignmentX, setAlignmentY, setBackground, setBorderColor, setBorderStroke, setBounds, setDrawableFonts, setFont, setGap, setOrientation, setSymbolSize
add, add, drawComponents, getConstraints, getDrawableAt, getInsets, getLayout, getPreferredSize, iterator, layout, remove, setBounds, setInsets, setLayout, size
getBounds, getHeight, getWidth, getX, getY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public PiePlot.PiePlotLegend(PiePlot plot)
plot
- Plot.protected java.lang.Iterable<Row> getEntries(DataSource source)
AbstractLegend
getEntries
in class ValueLegend
source
- Data source.