lt.monarch.chart.chart2D.series
Class PieLabelsOutsideLayouter

java.lang.Object
  extended by lt.monarch.chart.chart2D.series.AbstractPieLabelsLayouter
      extended by lt.monarch.chart.chart2D.series.PieLabelsOutsideLayouter
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PieLabelsOutsideWithElbowLayouter, PieLabelsOutsideWithLineLayouter

public class PieLabelsOutsideLayouter
extends AbstractPieLabelsLayouter

Pie labels layouter, when labels is outside the pie and don't have pointers to the segment.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart2D.series.AbstractPieLabelsLayouter
labelAlignment, pieLabelList
 
Constructor Summary
Constructor and Description
PieLabelsOutsideLayouter()
           
 
Method Summary
Modifier and Type Method and Description
protected  void corectLabel()
          Correct labels, when overlap
 void layout(java.util.List<PieSliceLabelEntry> labelList, Projector projector)
           
protected  void layoutCircular(Projector projector)
          Layout label, when alignment is CIRCULAR
protected  void layoutLeftRight(Projector projector)
          Layout label, when alignment is LEFT_RIGHT
 
Methods inherited from class lt.monarch.chart.chart2D.series.AbstractPieLabelsLayouter
calculateLabelPosition, getPieLabelAlignment, isPieDifficult, setPieLabelAlignment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PieLabelsOutsideLayouter

public PieLabelsOutsideLayouter()
Method Detail

layout

public void layout(java.util.List<PieSliceLabelEntry> labelList,
                   Projector projector)
Specified by:
layout in class AbstractPieLabelsLayouter
Parameters:
labelList - list of labels
projector - projector of charts

layoutCircular

protected void layoutCircular(Projector projector)
Layout label, when alignment is CIRCULAR

Parameters:
projector - projector of chart

layoutLeftRight

protected void layoutLeftRight(Projector projector)
Layout label, when alignment is LEFT_RIGHT

Parameters:
projector - projector of chart

corectLabel

protected void corectLabel()
Correct labels, when overlap