|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.axis.layouters.SimpleLinearLabelLayouter
lt.monarch.chart.chart2D.axis.layouters.DefaultLinearLabelLayouter
public class DefaultLinearLabelLayouter extends SimpleLinearLabelLayouter
Layouts labels by eliminating overlapping ones. Does this by keeping lower level labels and eliminating higher level labels
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.chart2D.axis.layouters.SimpleLinearLabelLayouter |
|---|
calculatePreferredDimensions, levels, prefferedHeight, prefferedWidth, sparseMode, start, stop, titleArea |
| Constructor and Description |
|---|
DefaultLinearLabelLayouter()
Constructs a new DefaultLinearLabelLayouter object. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eliminateLevelsFrom(AbstractAxisLabel[] labels,
int level)
Eliminates the labels with level equal to or higher than the given one. |
protected void |
eliminateOutbound(AbstractAxisLabel[] labels)
Eliminates labels, falling outside the visible axis range. |
int |
getMinimumLabelSpacing()
Returns minimum spacing that must be kept between labels. |
void |
layout(AbstractAxisLabel[] labels)
Layouts the specified labels. |
void |
prepare(AbstractAxisLabel[] labels)
Non-API method. Calculates preferred size of all visible labels (maximum size of all labels). |
void |
setMinimumLabelSpacing(int spacing)
Sets the minimum spacing to be kept between labels. |
| Methods inherited from class lt.monarch.chart.chart2D.axis.layouters.SimpleLinearLabelLayouter |
|---|
clone, compareLabels, dispose, findMaxLevel, getMaxLevel, getPreferredHeight, getPreferredWidth, setSparseMode, setTitleArea, setVisibleRange, sort |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLinearLabelLayouter()
DefaultLinearLabelLayouter object.
| Method Detail |
|---|
public void setMinimumLabelSpacing(int spacing)
spacing - minimum spacing between labels in pixels.protected void eliminateOutbound(AbstractAxisLabel[] labels)
SimpleLinearLabelLayouter
eliminateOutbound in class SimpleLinearLabelLayouterlabels - labels to layoutpublic int getMinimumLabelSpacing()
public void layout(AbstractAxisLabel[] labels)
layout in interface LinearLabelLayouterlayout in class SimpleLinearLabelLayouterlabels - the labels to layout
protected void eliminateLevelsFrom(AbstractAxisLabel[] labels,
int level)
labels - label arraylevel - given level numberpublic void prepare(AbstractAxisLabel[] labels)
LinearLabelLayouter
prepare in interface LinearLabelLayouterprepare in class SimpleLinearLabelLayouterlabels - label array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||