public abstract class

AbstractPieLabelDistributor

extends Object
implements Serializable
java.lang.Object
   ↳ org.jfree.chart.plot.AbstractPieLabelDistributor
Known Direct Subclasses

Class Overview

A base class for handling the distribution of pie section labels. Create your own subclass and set it using the setLabelDistributor(AbstractPieLabelDistributor) method if you want to customise the label distribution.

Summary

Fields
protected List labels The label records.
Public Constructors
AbstractPieLabelDistributor()
Creates a new instance.
Public Methods
void addPieLabelRecord(PieLabelRecord record)
Adds a label record.
void clear()
Clears the list of labels.
abstract void distributeLabels(double minY, double height)
Called by the PiePlot class.
int getItemCount()
Returns the number of items in the list.
PieLabelRecord getPieLabelRecord(int index)
Returns a label record from the list.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected List labels

The label records.

Public Constructors

public AbstractPieLabelDistributor ()

Creates a new instance.

Public Methods

public void addPieLabelRecord (PieLabelRecord record)

Adds a label record.

Parameters
record the label record (null not permitted).

public void clear ()

Clears the list of labels.

public abstract void distributeLabels (double minY, double height)

Called by the PiePlot class. Implementations should distribute the labels in this.labels then return.

Parameters
minY the y-coordinate for the top of the label area.
height the height of the label area.

public int getItemCount ()

Returns the number of items in the list.

Returns
  • The item count.

public PieLabelRecord getPieLabelRecord (int index)

Returns a label record from the list.

Parameters
index the index.
Returns
  • The label record.