Class PieMapper
java.lang.Object
com.codename1.charts.views.PieMapper
Deprecated.
PieChart Segment Selection Management.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPieSegment(int dataIndex, float value, float startAngle, float angle) Deprecated.Add configuration for a PieChart SegmentbooleanareAllSegmentPresent(int datasetSize) Deprecated.If we have all PieChart Config then there is no point in reloading itvoidDeprecated.Clears the pie segments list.doubleDeprecated.Fetches angle relative to pie chart center point where 3 O'Clock is 0 and 12 O'Clock is 270degreesgetSegmentShape(int dataIndex) Deprecated.getSeriesAndPointForScreenCoordinate(Point screenPoint) Deprecated.Fetches the SeriesSelection for the PieSegment selected.booleanisOnPieChart(Point screenPoint) Deprecated.Checks if Point falls within PieChartvoidsetDimensions(int pieRadius, int centerX, int centerY) Deprecated.Set PieChart location on screen.
-
Constructor Details
-
PieMapper
public PieMapper()Deprecated.
-
-
Method Details
-
setDimensions
public void setDimensions(int pieRadius, int centerX, int centerY) Deprecated.Set PieChart location on screen.
Parameters
-
pieRadius -
centerX -
centerY
-
-
areAllSegmentPresent
public boolean areAllSegmentPresent(int datasetSize) Deprecated.If we have all PieChart Config then there is no point in reloading it
Parameters
datasetSize
Returns
true if cfg for each segment is present
-
addPieSegment
public void addPieSegment(int dataIndex, float value, float startAngle, float angle) Deprecated.Add configuration for a PieChart Segment
Parameters
-
dataIndex -
value -
startAngle -
angle
-
-
clearPieSegments
public void clearPieSegments()Deprecated.Clears the pie segments list. -
getAngle
Deprecated.Fetches angle relative to pie chart center point where 3 O'Clock is 0 and 12 O'Clock is 270degrees
Parameters
screenPoint
Returns
angle in degress from 0-360.
-
isOnPieChart
Deprecated.Checks if Point falls within PieChart
Parameters
screenPoint
Returns
true if in PieChart
-
getSeriesAndPointForScreenCoordinate
Deprecated.Fetches the SeriesSelection for the PieSegment selected.
Parameters
screenPoint: - the user tap location
Returns
null if screen point is not in PieChart or its config if it is
-
getSegmentShape
Deprecated.
-
com.codename1.ui.chartpackage instead.