|
|||||||||
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.
描述饼图外部标签的结构.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)
构造器. |
Method Summary | |
---|---|
java.lang.Object |
clone()
返回克隆的对象. |
int |
compareTo(java.lang.Object obj)
比较两个对象的大小. |
boolean |
equals(java.lang.Object obj)
测试两个对象是否相等. |
double |
getAllocatedY()
返回分配给y的坐标. |
double |
getAngle()
返回饼图中心的角度(单位是弧度). |
double |
getBaseY()
返回y坐标. |
double |
getGap()
返回间距. |
java.lang.Comparable |
getKey()
返回饼图标签的键值. |
java.lang.String |
getLabel()
标签. |
double |
getLabelHeight()
返回标签的高度. |
java.awt.geom.Rectangle2D |
getLabelRect()
返回包含标签的矩形. |
double |
getLinkPercent()
返回链接的百分比. |
double |
getLowerY()
返回标签在下边界的y值. |
double |
getUpperY()
返回标签在上边界的y值. |
int |
hashCode()
计算对象的hashcode值. |
void |
setAllocatedY(double y)
设置分配给y的坐标. |
void |
setAngle(double angle)
设置饼图中心的角度(单位是弧度). |
void |
setBaseY(double y)
返回y坐标. |
void |
setGap(double gap)
设置间距. |
void |
setKey(java.lang.Comparable key)
设置饼图标签的键值. |
void |
setLabel(java.lang.String label)
标签. |
void |
setLabelHeight(double height)
设置标签的高度. |
void |
setLabelRect(java.awt.geom.Rectangle2D labelRect)
设置包含标签的矩形. |
void |
setLinkPercent(double percent)
设置链接的百分比. |
java.lang.String |
toString()
覆盖toString方法. |
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 饼图标签的键值.
angle
- double 饼图中心的角度(单位是弧度).
baseY
- double y坐标.
labelRect
- Rectangle2D 包含标签的矩形.
label
- String 标签.
labelHeight
- double 标签的高度.
gap
- double 间距.
linkPercent
- double 链接的百分比.
Method Detail |
---|
public java.lang.Comparable getKey()
public void setKey(java.lang.Comparable key)
key
- Comparable 键值.
public double getAngle()
public void setAngle(double angle)
angle
- double 角度.
public double getBaseY()
public void setBaseY(double y)
y
- double y坐标.
public double getAllocatedY()
public void setAllocatedY(double y)
y
- double y坐标.
public java.awt.geom.Rectangle2D getLabelRect()
public void setLabelRect(java.awt.geom.Rectangle2D labelRect)
labelRect
- Rectangle2D 包含标签的矩形.
public void setLabel(java.lang.String label)
label
- String 标签 (可为null).
public java.lang.String getLabel()
public double getLabelHeight()
public void setLabelHeight(double height)
height
- double 高度.
public double getGap()
public void setGap(double gap)
gap
- double 间距.
public double getLinkPercent()
public void setLinkPercent(double percent)
percent
- double 百分比.
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 |