|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.render.noaxis.pie.PieLabelDistributor
public class PieLabelDistributor
Title: IJChart
Description: a chart library for the Java(tm) platform.
用于排列饼图的外部标签的类.Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
PieLabelDistributor()
构造器. |
Method Summary | |
---|---|
void |
addPieLabelRecord(PieLabelRecord record)
增加一个PieLabelRecord对象. |
protected void |
adjustDownwards(double minY,
double height)
在标签有重叠的时候,朝下方向调整y坐标. |
protected void |
adjustInwards()
在标签有重叠的时候,朝中心方向调整y坐标. |
protected void |
adjustUpwards(double minY,
double height)
在标签有重叠的时候,朝上方向调整y坐标. |
void |
clear()
删除所有的对象. |
void |
distributeLabels(double minY,
double height)
排列标签. |
int |
getItemCount()
返回PieLabelRecord对象的数量. |
PieLabelRecord |
getPieLabelRecord(int index)
根据索引查找PieLabelRecord对象. |
void |
sort()
根据y值排序. |
protected void |
spreadEvenly(double minY,
double height)
把标签排列均匀. |
java.lang.String |
toString()
覆盖toString方法. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PieLabelDistributor()
Method Detail |
---|
public PieLabelRecord getPieLabelRecord(int index)
index
- 索引.
public void addPieLabelRecord(PieLabelRecord record)
record
- PieLabelRecord对象.
public int getItemCount()
public void clear()
public void distributeLabels(double minY, double height)
minY
- 最小的y坐标值.
height
- 高度.
protected void adjustInwards()
protected void adjustDownwards(double minY, double height)
minY
- 最小的y值.
height
- 高度.
protected void adjustUpwards(double minY, double height)
minY
- 最小的y值.
height
- 高度.
protected void spreadEvenly(double minY, double height)
minY
- 最小的y值.
height
- 高度.
public void sort()
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 |