public class AxisLabels extends TextShape
Title: AxisLabels class
Description: Axis Label characteristics
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
protected Axis |
axis |
protected java.lang.String |
axisvaluesformat |
protected boolean |
bExponent |
protected boolean |
bOnAxis |
protected int |
iAngle |
protected int |
iSeparation |
AxisLabelStyle |
iStyle |
protected int |
position |
protected java.lang.String |
sDatetimeformat |
protected java.text.DecimalFormat |
valuesDecimal |
defaultText, drawText
bBevel, bBorderRound, bBrush, bImageBevel, bTransparent, defaultVisible, pPen, shadow, shapeBounds, visible
chart, InternalUse
Constructor and Description |
---|
AxisLabels(Axis a)
Accesses the Label characteristics of Axis Labels.
|
Modifier and Type | Method and Description |
---|---|
AxisLabelAlign |
getAlign()
The position of Labels on an Axis.
The default position of an AxisLabel will depend on the Axis with which it is associated. |
boolean |
getAlternate()
Gets the axis labels to be drawn in two rows or columns.
|
int |
getAngle()
Defines the rotation degree applied to each Axis Label.
|
int |
getCustomSize()
Changes the spacing occupied by the axis labels between the Ticks and
the Title.
Default value: 0 |
java.lang.String |
getDateTimeFormat()
Standard DateTime formatting string specifier used to draw the
axis labels.
Default value: "" |
boolean |
getExactDateTime()
Determines whether Axis.Increment calculates Axis Labels in
exact DateTime steps.
|
boolean |
getExponent()
Enables/disables the display of Axis Labels in exponent format with
super-script fonts.
Default value: false |
AxisLabelsItems |
getItems()
Contains the custom labels.
|
boolean |
getMultiLine()
Automatically breaks DateTime Labels on occurence of a space " ".
|
boolean |
getOnAxis()
Determines whether the Labels at Axis Minimum and Maximum positions
will be shown or not.
Default value: true |
int |
getPosition() |
boolean |
getRoundFirstLabel()
Controls if Axis labels will be automatically "rounded" to the nearest
magnitude.
|
int |
getSeparation()
Specifies the minimum distance between Axis Labels as a percentage.
|
AxisLabelStyle |
getStyle()
The style of the labels.
|
java.lang.String |
getValueFormat()
Specifies the desired formatting string to be applied to Axis Labels.
|
int |
labelHeight(double value)
returns the Axis Label height of the Value parameter.
|
java.lang.String |
labelValue(double value)
returns the corresponding text representation of the Value parameter.
|
int |
labelWidth(double value)
returns the Axis Label width of the Value parameter.
|
protected java.lang.Object |
readResolve() |
void |
setAlign(AxisLabelAlign value)
Sets the position of Labels on an Axis.
Default value: Default position |
void |
setAlternate(boolean value)
Sets the axis labels to be drawn in two rows or columns.
|
void |
setAngle(int value)
Defines the rotation degree applied to each Axis Label.
Default value: 0 |
void |
setCustomSize(int value)
Changes the spacing occupied by the axis labels between the Ticks and
the Title.
Default value: 0 |
void |
setDateTimeFormat(java.lang.String value)
Standard DateTime formatting string specifier used to draw the
axis labels.
Default value: "" |
void |
setExactDateTime(boolean value)
Determines whether Axis.Increment calculates Axis Labels in
exact DateTime steps.
|
void |
setExponent(boolean value)
Enables/disables the display of Axis Labels in exponent format with
super-script fonts.
Default value: false |
void |
setMultiLine(boolean value)
Automatically breaks DateTime Labels on occurence of a space " ".
Default value: false |
void |
setOnAxis(boolean value)
Shows the Labels at Axis Minimum and Maximum positions when true.
Default value: true |
void |
setPosition(int value) |
void |
setRoundFirstLabel(boolean value)
Axis labels will be automatically "rounded" to the nearest magnitude when
true.
Default value: true |
void |
setSeparation(int value)
Specifies the minimum distance between Axis Labels as a percentage.
Default value: 10 |
void |
setStyle(AxisLabelStyle value)
Sets the style of the labels.
Default value: AxisLabelStyle.Auto |
void |
setValueFormat(java.lang.String value)
Specifies the desired formatting string to be applied to Axis Labels.
Default value: '#,##0.###' |
protected boolean |
shouldSerializeTransparent() |
java.lang.String |
splitInLines(java.lang.String s,
char separator)
Sets Separator Char to invoke 'new line' in String St.
|
java.lang.String |
splitInLines(java.lang.String s,
java.lang.String separator)
Sets Separator String to invoke 'new line' in String St.
|
assign, drawRectRotated, drawString, drawText, getAutoSize, getFont, getLines, getLinesLength, getShadowSize, getShapeStyle, getText, getTextFormat, paint, paint, paint, setAutoSize, setChart, setDrawText, setLines, setShadowSize, setShapeStyle, setText, setTextFormat
assign, getBevel, getBevelInner, getBevelOuter, getBevelWidth, getBorderRound, getBottom, getBrush, getColor, getGradient, getHeight, getImage, getImageBevel, getImageMode, getImageTransparent, getLeft, getPen, getRight, getShadow, getShapeBounds, getTop, getTransparency, getTransparent, getVisible, getWidth, setBevel, setBevelInner, setBevelOuter, setBevelWidth, setBorderRound, setBottom, setBrush, setColor, setDefaultVisible, setHeight, setImage, setImageMode, setImageTransparent, setLeft, setPen, setRight, setShapeBounds, setTop, setTransparency, setTransparent, setVisible, setWidth
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
protected int iAngle
protected boolean bOnAxis
protected int iSeparation
public AxisLabelStyle iStyle
protected boolean bExponent
protected int position
protected java.lang.String axisvaluesformat
protected transient java.text.DecimalFormat valuesDecimal
protected java.lang.String sDatetimeformat
protected transient Axis axis
public AxisLabels(Axis a)
a
- Axisprotected java.lang.Object readResolve()
readResolve
in class TextShape
protected boolean shouldSerializeTransparent()
public boolean getExactDateTime()
public void setExactDateTime(boolean value)
value
- booleanpublic int getAngle()
public void setAngle(int value)
value
- intpublic boolean getOnAxis()
public void setOnAxis(boolean value)
value
- booleanpublic int getSeparation()
public void setSeparation(int value)
value
- intpublic int getCustomSize()
public void setCustomSize(int value)
value
- intpublic AxisLabelStyle getStyle()
public void setStyle(AxisLabelStyle value)
value
- AxisLabelStylepublic boolean getRoundFirstLabel()
public void setRoundFirstLabel(boolean value)
value
- booleanpublic java.lang.String getDateTimeFormat()
public void setDateTimeFormat(java.lang.String value)
value
- Stringpublic java.lang.String getValueFormat()
public void setValueFormat(java.lang.String value)
value
- Stringpublic boolean getMultiLine()
public void setMultiLine(boolean value)
value
- booleanpublic java.lang.String splitInLines(java.lang.String s, java.lang.String separator)
s
- Input Stringseparator
- String to be used for new linepublic java.lang.String splitInLines(java.lang.String s, char separator)
s
- Input Stringseparator
- char to be used for new linepublic boolean getExponent()
public void setExponent(boolean value)
value
- booleanpublic AxisLabelAlign getAlign()
public void setAlign(AxisLabelAlign value)
value
- AxisLabelAlignpublic AxisLabelsItems getItems()
public int labelWidth(double value)
value
- double Axis valuepublic int labelHeight(double value)
value
- double Axis valuepublic java.lang.String labelValue(double value)
value
- doublepublic boolean getAlternate()
public void setAlternate(boolean value)
value
- booleanpublic int getPosition()
public void setPosition(int value)