• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.github.mikephil.charting.interfaces.datasets;
2 
3 import androidx.annotation.Nullable;
4 
5 import com.github.mikephil.charting.data.PieDataSet;
6 import com.github.mikephil.charting.data.PieEntry;
7 
8 /**
9  * Created by Philipp Jahoda on 03/11/15.
10  */
11 public interface IPieDataSet extends IDataSet<PieEntry> {
12 
13     /**
14      * Returns the space that is set to be between the piechart-slices of this
15      * DataSet, in pixels.
16      *
17      * @return
18      */
getSliceSpace()19     float getSliceSpace();
20 
21     /**
22      * When enabled, slice spacing will be 0.0 when the smallest value is going to be
23      *   smaller than the slice spacing itself.
24      *
25      * @return
26      */
isAutomaticallyDisableSliceSpacingEnabled()27     boolean isAutomaticallyDisableSliceSpacingEnabled();
28 
29     /**
30      * Returns the distance a highlighted piechart slice is "shifted" away from
31      * the chart-center in dp.
32      *
33      * @return
34      */
getSelectionShift()35     float getSelectionShift();
36 
getXValuePosition()37     PieDataSet.ValuePosition getXValuePosition();
getYValuePosition()38     PieDataSet.ValuePosition getYValuePosition();
39 
40     /**
41      * When valuePosition is OutsideSlice, indicates line color
42      * */
getValueLineColor()43     int getValueLineColor();
44 
45     /**
46      * When valuePosition is OutsideSlice and enabled, line will have the same color as the slice
47      * */
isUseValueColorForLineEnabled()48     boolean isUseValueColorForLineEnabled();
49 
50     /**
51      *  When valuePosition is OutsideSlice, indicates line width
52      *  */
getValueLineWidth()53     float getValueLineWidth();
54 
55     /**
56      * When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size
57      * */
getValueLinePart1OffsetPercentage()58     float getValueLinePart1OffsetPercentage();
59 
60     /**
61      * When valuePosition is OutsideSlice, indicates length of first half of the line
62      * */
getValueLinePart1Length()63     float getValueLinePart1Length();
64 
65     /**
66      * When valuePosition is OutsideSlice, indicates length of second half of the line
67      * */
getValueLinePart2Length()68     float getValueLinePart2Length();
69 
70     /**
71      * When valuePosition is OutsideSlice, this allows variable line length
72      * */
isValueLineVariableLength()73     boolean isValueLineVariableLength();
74 
75     /**
76      * Gets the color for the highlighted sector
77      * */
78     @Nullable
getHighlightColor()79     Integer getHighlightColor();
80 
81 }
82 
83