|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.render.noaxis.pie.PieLabelRecord
public class PieLabelRecord
Title: IJChart
Description: a chart library for the Java(tm) platform.
A structure that retains information about the label for a section in a pie chart.Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
PieLabelRecord(java.lang.Comparable key,
double angle,
double baseY,
java.awt.geom.Rectangle2D labelRect,
java.lang.String label,
double labelHeight,
double gap,
double linkPercent)
The constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
int |
compareTo(java.lang.Object obj)
Compares this object to an arbitrary object. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
double |
getAllocatedY()
Returns the allocated y-coordinate. |
double |
getAngle()
Returns the angle of the centre of the section (in radians). |
double |
getBaseY()
Returns the base y-coordinate. |
double |
getGap()
Returns the gap. |
java.lang.Comparable |
getKey()
Returns the section key. |
java.lang.String |
getLabel()
The label. |
double |
getLabelHeight()
Returns the label height. |
java.awt.geom.Rectangle2D |
getLabelRect()
Returns the rectangle containing the label. |
double |
getLinkPercent()
Returns the link percent. |
double |
getLowerY()
Returns the lower bound of the label. |
double |
getUpperY()
Returns the upper bound of the label. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setAllocatedY(double y)
Sets the allocated y-coordinate. |
void |
setAngle(double angle)
Sets the angle of the centre of the section (in radians). |
void |
setBaseY(double y)
Returns the base y-coordinate. |
void |
setGap(double gap)
Sets the gap. |
void |
setKey(java.lang.Comparable key)
Sets the section key. |
void |
setLabel(java.lang.String label)
The label. |
void |
setLabelHeight(double height)
Sets the label height. |
void |
setLabelRect(java.awt.geom.Rectangle2D labelRect)
Sets the rectangle containing the label. |
void |
setLinkPercent(double percent)
Sets the link percent. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PieLabelRecord(java.lang.Comparable key, double angle, double baseY, java.awt.geom.Rectangle2D labelRect, java.lang.String label, double labelHeight, double gap, double linkPercent)
key
- Comparable
The section key.angle
- double
The angle of the centre of the section (in radians).baseY
- double
The base y-coordinate.labelRect
- Rectangle2D
Rectangle containing the label.label
- String
The label.labelHeight
- double
The label height.gap
- double
The gap.linkPercent
- double
The link percent.Method Detail |
---|
public java.lang.Comparable getKey()
public void setKey(java.lang.Comparable key)
key
- Comparable
The key.public double getAngle()
public void setAngle(double angle)
angle
- double
The angle.public double getBaseY()
public void setBaseY(double y)
y
- double
The base y-coordinate.public double getAllocatedY()
public void setAllocatedY(double y)
y
- double
The base y-coordinate.public java.awt.geom.Rectangle2D getLabelRect()
public void setLabelRect(java.awt.geom.Rectangle2D labelRect)
labelRect
- Rectangle2D
Rectangle containing the label.public void setLabel(java.lang.String label)
label
- String
The label (null permitted).public java.lang.String getLabel()
public double getLabelHeight()
public void setLabelHeight(double height)
height
- double
The height.public double getGap()
public void setGap(double gap)
gap
- double
The gap.public double getLinkPercent()
public void setLinkPercent(double percent)
percent
- double
The percent.public double getLowerY()
public double getUpperY()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- The object to compare against.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null permitted).
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |