public class PieSeriesModel extends DataPointSeriesModel<PieDataPoint>
RadPieChartView
's PieSeries
.ChartSeriesModel.DataPointsChangedListener
ChartElement.Predicate<T>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LABEL_FORMAT |
static String |
DEFAULT_NO_PERCENTAGE_LABEL_FORMAT |
static int |
LABEL_FORMAT_PROPERTY_KEY |
static int |
RANGE_PROPERTY_KEY |
DATA_POINTS_MODIFIED_MESSAGE_KEY
children
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
PieSeriesModel()
Creates a new instance of the
PieSeriesModel class. |
Modifier and Type | Method and Description |
---|---|
ModifyChildrenResult |
canAddChild(ChartNode child)
Gets a
ModifyChildrenResult value that determines if a child can be added to this element. |
boolean |
getDisplayPercentage()
Gets a boolean value determining whether percentage is displayed in the slice label.
|
String |
getLabelFormat()
Gets the String used to format the Percent value of each data point.
|
AngleRange |
getRange()
Gets the
AngleRange structure that defines the starting and sweep angles of the pie. |
double |
maxRelativeOffsetFromCenter()
Gets the maximum point offset from the center.
|
void |
setDisplayPercentage(boolean value)
Sets a boolean value determining whether percentage is displayed in the slice label.
|
void |
setLabelFormat(String value)
Sets the String used to format the Percent value of each data point.
|
void |
setRange(AngleRange value)
Sets the
AngleRange structure that defines the starting and sweep angles of the pie. |
dataPoints, getVirtualizationEnabled, setVirtualizationEnabled, updateVisibleDataPoints, visibleDataPoints
getCombinedPlotStrategy, getCombinedRoundLayoutStrategy, getDataPointsChangedListener, getDefaultPlotMode, selectPlotMode, setDataPointsChangedListener
enumDescendants, enumDescendants, enumDescendants, findAncestor, findDescendant, getPresenter, isAncestorOf, setPresenter
applyLayoutRounding, arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public static final int RANGE_PROPERTY_KEY
public static final int LABEL_FORMAT_PROPERTY_KEY
public static final String DEFAULT_LABEL_FORMAT
public static final String DEFAULT_NO_PERCENTAGE_LABEL_FORMAT
public PieSeriesModel()
PieSeriesModel
class.public String getLabelFormat()
public void setLabelFormat(String value)
public AngleRange getRange()
AngleRange
structure that defines the starting and sweep angles of the pie.public void setRange(AngleRange value)
AngleRange
structure that defines the starting and sweep angles of the pie.public double maxRelativeOffsetFromCenter()
public ModifyChildrenResult canAddChild(ChartNode child)
ChartElement
ModifyChildrenResult
value that determines if a child can be added to this element.canAddChild
in class ChartElement
child
- The child to be considered.public boolean getDisplayPercentage()
true
if percentage will be displayed, false
otherwise.public void setDisplayPercentage(boolean value)
value
- true
if percentage will be displayed, false
otherwise.