|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.series.AbstractPieLabelsLayouter
public abstract class AbstractPieLabelsLayouter extends java.lang.Object implements java.io.Serializable
Abstract pie labels layouter class. It defines what methods the pie labels layouter should implement and implements common methods for all layouter in it.
| Modifier and Type | Field and Description |
|---|---|
protected PieLabelAlignment |
labelAlignment
|
protected java.util.List<PieSliceLabelEntry> |
pieLabelList
|
| Constructor and Description |
|---|
AbstractPieLabelsLayouter()
|
| Modifier and Type | Method and Description |
|---|---|
protected Point2D |
calculateLabelPosition(double radius,
double angle,
Point2D center)
Calculate label position in pie charts |
PieLabelAlignment |
getPieLabelAlignment()
Gets alignment type of pie labels |
protected boolean |
isPieDifficult()
If labels angle is smaller minAngle, than pie is difficult |
abstract void |
layout(java.util.List<PieSliceLabelEntry> labelList,
Projector projector)
|
void |
setPieLabelAlignment(PieLabelAlignment alignment)
Sets alignment type of pie labels |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<PieSliceLabelEntry> pieLabelList
protected PieLabelAlignment labelAlignment
| Constructor Detail |
|---|
public AbstractPieLabelsLayouter()
| Method Detail |
|---|
public void setPieLabelAlignment(PieLabelAlignment alignment)
alignment - alignment typepublic PieLabelAlignment getPieLabelAlignment()
protected Point2D calculateLabelPosition(double radius,
double angle,
Point2D center)
radius - radius of pieangle - angle of slicecenter - point of the pieprotected boolean isPieDifficult()
public abstract void layout(java.util.List<PieSliceLabelEntry> labelList,
Projector projector)
labelList - list of labelsprojector - projector of charts
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||