org.jfree.chart.plot
Class PieLabelDistributor
- java.lang.Object
-
- org.jfree.chart.plot.AbstractPieLabelDistributor
-
- org.jfree.chart.plot.PieLabelDistributor
-
- All Implemented Interfaces:
- java.io.Serializable
public class PieLabelDistributor extends AbstractPieLabelDistributor
This class distributes the section labels for one side of a pie chart so that they do not overlap.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PieLabelDistributor(int labelCount)Creates a new distributor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddistributeLabels(double minY, double height)Distributes the labels.voidsort()Sorts the label records into ascending order by y-value.java.lang.StringtoString()Returns a string containing a description of the object for debugging purposes.-
Methods inherited from class org.jfree.chart.plot.AbstractPieLabelDistributor
addPieLabelRecord, clear, getItemCount, getPieLabelRecord
-
-
-
-
Constructor Detail
-
PieLabelDistributor
public PieLabelDistributor(int labelCount)
Creates a new distributor.- Parameters:
labelCount- the number of labels (ignored).
-
-
Method Detail
-
distributeLabels
public void distributeLabels(double minY, double height)Distributes the labels.- Specified by:
distributeLabelsin classAbstractPieLabelDistributor- Parameters:
minY- the minimum y-coordinate in Java2D-space.height- the available height (in Java2D units).
-
sort
public void sort()
Sorts the label records into ascending order by y-value.
-
toString
public java.lang.String toString()
Returns a string containing a description of the object for debugging purposes.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string.
-
-
DMelt 3.0 © DataMelt by jWork.ORG