java.lang.Object | ||
↳ | org.jfree.chart.plot.AbstractPieLabelDistributor | |
↳ | org.jfree.chart.plot.PieLabelDistributor |
This class distributes the section labels for one side of a pie chart so that they do not overlap.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new distributor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Distributes the labels.
| |||||||||||
Sorts the label records into ascending order by y-value.
| |||||||||||
Returns a string containing a description of the object for
debugging purposes.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Any labels that are overlapping are moved down in an attempt to
eliminate the overlaps.
| |||||||||||
Adjusts the y-coordinate for the labels in towards the center in an
attempt to fix overlapping.
| |||||||||||
Any labels that are overlapping are moved up in an attempt to eliminate
the overlaps.
| |||||||||||
Labels are spaced evenly in the available space in an attempt to
eliminate the overlaps.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new distributor.
labelCount | the number of labels (ignored). |
---|
Distributes the labels.
minY | the minimum y-coordinate in Java2D-space. |
---|---|
height | the available height (in Java2D units). |
Sorts the label records into ascending order by y-value.
Returns a string containing a description of the object for debugging purposes.
Any labels that are overlapping are moved down in an attempt to eliminate the overlaps.
minY | the minimum y value (in Java2D coordinate space). |
---|---|
height | the height available for all labels. |
Adjusts the y-coordinate for the labels in towards the center in an attempt to fix overlapping.
Any labels that are overlapping are moved up in an attempt to eliminate the overlaps.
minY | the minimum y value (in Java2D coordinate space). |
---|---|
height | the height available for all labels. |
Labels are spaced evenly in the available space in an attempt to eliminate the overlaps.
minY | the minimum y value (in Java2D coordinate space). |
---|---|
height | the height available for all labels. |