|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.marker.SimpleLabelLayouter
public class SimpleLabelLayouter extends java.lang.Object implements LabelLayouter, java.io.Serializable
| Constructor and Description |
|---|
SimpleLabelLayouter()
Constructor of label layouter. |
| Modifier and Type | Method and Description |
|---|---|
LabelLayouts |
getLayoutType()
Returns label layout type. |
int |
getMaximumDistance()
Returns maximum distance from marker label to marker position. |
int |
getStep()
Returns layouting step - distance (in pixels) between layouting positions. |
void |
layout(Chart chart,
MarkerConstraints[][] constraints)
This method layouts labels that are specified in array of marker constraints. |
void |
setLayoutType(LabelLayouts layoutType)
Sets label layout type. |
void |
setMaximumDistance(int distance)
Sets maximum distance (in pixels) from marker label to marker position. |
void |
setStep(int step)
Sets layouting step. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleLabelLayouter()
| Method Detail |
|---|
public void layout(Chart chart,
MarkerConstraints[][] constraints)
layout in interface LabelLayouterchart - Chart is used to determine if labels are inside or outside chart area.constraints - Array of marker constraints.public void setStep(int step)
step - Distance (in pixels) between layouting positions.public int getStep()
public void setLayoutType(LabelLayouts layoutType)
layoutType - Label layout type.public LabelLayouts getLayoutType()
public void setMaximumDistance(int distance)
distance - Maximum distance (in pixels) from marker label to marker position.public int getMaximumDistance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||