|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.plot.PieLabelRecord
A structure that retains information about the label for a section in a pie chart.
Constructor Summary | |
PieLabelRecord(java.lang.Comparable key,
double angle,
double baseY,
TextBox label,
double labelHeight,
double gap,
double linkPercent)
Creates a new record. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares this object to an arbitrary object. |
double |
getAllocatedY()
Returns the allocated y-coordinate. |
double |
getAngle()
Returns the angle. |
double |
getBaseY()
Returns the base y-coordinate. |
double |
getGap()
Returns the gap. |
java.lang.Comparable |
getKey()
Returns the key for the section that the label applies to. |
TextBox |
getLabel()
Returns the label. |
double |
getLabelHeight()
Returns the label height. |
double |
getLinkPercent()
Returns the link percent. |
double |
getLowerY()
Returns the lower bound of the label. |
double |
getUpperY()
Returns the upper bound of the label. |
void |
setAllocatedY(double y)
Sets the allocated y-coordinate. |
void |
setBaseY(double base)
Sets the base y-coordinate. |
java.lang.String |
toString()
Returns a string describing the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PieLabelRecord(java.lang.Comparable key, double angle, double baseY, TextBox label, double labelHeight, double gap, double linkPercent)
key
- the key.angle
- the angle.baseY
- the base y-coordinate.label
- the label.labelHeight
- the label height (in Java2D units).gap
- the gap.linkPercent
- the link percent.Method Detail |
public double getBaseY()
public void setBaseY(double base)
base
- the base y-coordinate.public double getLowerY()
public double getUpperY()
public double getAngle()
public java.lang.Comparable getKey()
public TextBox getLabel()
public double getLabelHeight()
public double getAllocatedY()
public void setAllocatedY(double y)
y
- the y-coordinate.public double getGap()
public double getLinkPercent()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- the object to compare against.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |