| java.lang.Object org.jfree.chart.plot.AbstractPieLabelDistributor org.jfree.chart.plot.PieLabelDistributor
PieLabelDistributor | public class PieLabelDistributor extends AbstractPieLabelDistributor (Code) | | This class distributes the section labels for one side of a pie chart so
that they do not overlap.
|
Method Summary | |
protected void | adjustDownwards(double minY, double height) Any labels that are overlapping are moved down in an attempt to
eliminate the overlaps. | protected void | adjustInwards() Adjusts the y-coordinate for the labels in towards the center in an
attempt to fix overlapping. | protected void | adjustUpwards(double minY, double height) Any labels that are overlapping are moved up in an attempt to eliminate
the overlaps. | public void | distributeLabels(double minY, double height) Distributes the labels. | public void | sort() Sorts the label records into ascending order by y-value. | protected void | spreadEvenly(double minY, double height) Labels are spaced evenly in the available space in an attempt to
eliminate the overlaps. | public String | toString() Returns a string containing a description of the object for
debugging purposes. |
PieLabelDistributor | public PieLabelDistributor(int labelCount)(Code) | | Creates a new distributor.
Parameters: labelCount - the number of labels (ignored). |
adjustDownwards | protected void adjustDownwards(double minY, double height)(Code) | | Any labels that are overlapping are moved down in an attempt to
eliminate the overlaps.
Parameters: minY - the minimum y value (in Java2D coordinate space). Parameters: height - the height available for all labels. |
adjustInwards | protected void adjustInwards()(Code) | | Adjusts the y-coordinate for the labels in towards the center in an
attempt to fix overlapping.
|
adjustUpwards | protected void adjustUpwards(double minY, double height)(Code) | | Any labels that are overlapping are moved up in an attempt to eliminate
the overlaps.
Parameters: minY - the minimum y value (in Java2D coordinate space). Parameters: height - the height available for all labels. |
distributeLabels | public void distributeLabels(double minY, double height)(Code) | | Distributes the labels.
Parameters: minY - the minimum y-coordinate in Java2D-space. Parameters: height - the available height (in Java2D units). |
sort | public void sort()(Code) | | Sorts the label records into ascending order by y-value.
|
spreadEvenly | protected void spreadEvenly(double minY, double height)(Code) | | Labels are spaced evenly in the available space in an attempt to
eliminate the overlaps.
Parameters: minY - the minimum y value (in Java2D coordinate space). Parameters: height - the height available for all labels. |
toString | public String toString()(Code) | | Returns a string containing a description of the object for
debugging purposes.
A string. |
Fields inherited from org.jfree.chart.plot.AbstractPieLabelDistributor | protected List labels(Code)(Java Doc)
|
|
|