|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.style.AbstractStyle<AxisTextPaintTags>
lt.monarch.chart.chart2D.axis.LabelSettings
public class LabelSettings extends AbstractStyle<AxisTextPaintTags>
Axis label settings
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.style.AbstractStyle |
|---|
dirty |
| Modifier | Constructor and Description |
|---|---|
protected |
LabelSettings(Style style)
|
| Modifier and Type | Method and Description |
|---|---|
LinearLabelLayouter |
getLabelLayouter()
Gets the layouter value |
int |
getLabelOffset()
Gets label offset from the ticks |
float |
getRelativeLabelPosition()
Gets the relative label shift value |
double |
getRotationAngle()
Returns current axis labels rotation angle in radians |
double |
getRotationAngle(int level)
Returns current axis labels rotation angle in radians |
TextPaintMode |
getTextPaintMode()
Gets axis labels painting mode |
void |
setLabelLayouter(LinearLabelLayouter layouter)
Sets the layouter value |
void |
setLabelOffset(int offset)
Sets the label offset from the ticks |
void |
setRelativeLabelPosition(float position)
Sets relative labels position in range [-1;1]. |
void |
setRotationAngle(double theta)
Sets axis label rotation angle. |
void |
setRotationAngle(int level,
double theta)
Sets axis label rotation angle. |
void |
setTextPaintMode(TextPaintMode mode)
Sets axis labels painting mode. |
| Methods inherited from class lt.monarch.chart.style.AbstractStyle |
|---|
dispose, finalize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected LabelSettings(Style style)
| Method Detail |
|---|
public void setLabelOffset(int offset)
offset - label offset from the tickspublic int getLabelOffset()
public LinearLabelLayouter getLabelLayouter()
public void setLabelLayouter(LinearLabelLayouter layouter)
layouter - the layouter value
public void setRotationAngle(double theta)
throws java.lang.IllegalArgumentException
theta - labels rotation angle in radiansjava.lang.IllegalArgumentException - if theta < -Math.PI / 2.0d or
theta > Math.PI / 2.0d
public void setRotationAngle(int level,
double theta)
throws java.lang.IllegalArgumentException
level - specifies level for which sets rotation angle (0 - default)theta - labels rotation angle in radiansjava.lang.IllegalArgumentException - if theta < -Math.PI / 2.0d or
theta > Math.PI / 2.0d or level < 0public double getRotationAngle()
public double getRotationAngle(int level)
level - specifies level for which sets rotation angle (0 - default)public void setTextPaintMode(TextPaintMode mode)
mode - labels painting mode.public TextPaintMode getTextPaintMode()
public void setRelativeLabelPosition(float position)
position - relative label position in range [-1;1]public float getRelativeLabelPosition()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||