|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.Shape
com.steema.teechart.TextShape
com.steema.teechart.axis.AxisLabels
public class AxisLabels
Axis Label characteristic
Title: AxisLabels class
Description: Axis Label characteristics
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary | |
---|---|
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 MessageFormat |
valuesDecimal
|
Fields inherited from class com.steema.teechart.TextShape |
---|
defaultText, drawText |
Fields inherited from class com.steema.teechart.Shape |
---|
bBevel, bBorderRound, bBrush, bImageBevel, bTransparent, defaultVisible, pPen, shadow, shapeBounds, visible |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
AxisLabels(Axis a)
Accesses the Label characteristics of Axis Labels. |
Method Summary | |
---|---|
static java.lang.String |
formatNumber(double number,
int decimals,
java.lang.String digitGrouping)
|
AxisLabelAlign |
getAlign()
The position of Labels on an Axis. |
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. |
java.lang.String |
getDateTimeFormat()
Standard DateTime formatting string specifier used to draw the axis labels. |
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. |
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. |
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. |
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. |
void |
setCustomSize(int value)
Changes the spacing occupied by the axis labels between the Ticks and the Title. |
void |
setDateTimeFormat(java.lang.String value)
Standard DateTime formatting string specifier used to draw the axis labels. |
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. |
void |
setMultiLine(boolean value)
Automatically breaks DateTime Labels on occurence of a space " ". |
void |
setOnAxis(boolean value)
Shows the Labels at Axis Minimum and Maximum positions when true. |
void |
setRoundFirstLabel(boolean value)
Axis labels will be automatically "rounded" to the nearest magnitude when true. |
void |
setSeparation(int value)
Specifies the minimum distance between Axis Labels as a percentage. |
void |
setStyle(AxisLabelStyle value)
Sets the style of the labels. |
void |
setValueFormat(java.lang.String value)
Specifies the desired formatting string to be applied to Axis Labels. |
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. |
Methods inherited from class com.steema.teechart.TextShape |
---|
assign, drawRectRotated, drawString, drawText, getAutoSize, getFont, getLines, getLinesLength, getShadowSize, getShapeStyle, getText, getTextFormat, paint, paint, paint, setAutoSize, setChart, setDrawText, setLines, setShadowSize, setShapeStyle, setText, setTextFormat |
Methods inherited from class com.steema.teechart.Shape |
---|
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 |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 MessageFormat valuesDecimal
protected java.lang.String sDatetimeformat
protected transient Axis axis
Constructor Detail |
---|
public AxisLabels(Axis a)
a
- AxisMethod Detail |
---|
protected 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 line
public java.lang.String splitInLines(java.lang.String s, char separator)
s
- Input Stringseparator
- char to be used for new line
public 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 value
public int labelHeight(double value)
value
- double Axis value
public static java.lang.String formatNumber(double number, int decimals, java.lang.String digitGrouping)
public java.lang.String labelValue(double value)
value
- double
public boolean getAlternate()
public void setAlternate(boolean value)
value
- booleanpublic int getPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |