public class AxisSettings
extends java.lang.Object
AxesChart
.Constructor and Description |
---|
AxisSettings()
Creates a new instance of the
AxisSettings class. |
Modifier and Type | Method and Description |
---|---|
void |
addSeriesListener(com.mindfusion.charting.SettingsListener toAdd)
Adds a listener for changes in the
AxisSettings class. |
float |
getInterval()
Gets the interval at this axis.
|
float |
getLabelOffset()
Gets the offset of the labels from the axis.
|
java.util.ArrayList<java.lang.String> |
getLabels()
Gets the custom labels drawn at this axis instead of
the axis intervals.
|
AxisLabelType |
getLabelType()
Gets the type of the labels drawn at this axis.
|
float |
getMax()
Gets the biggest number at this axis.
|
float |
getMin()
Gets the smallest number at this axis.
|
java.text.NumberFormat |
getNumberFormat()
Gets the format of numeric labels.
|
float |
getOrigin()
Gets the origin of this axis.
|
java.lang.String |
getTitle()
Gets the text of the title label for this axis.
|
int |
getTitleColor()
Gets the color for the axis title.
|
float |
getTitleOffset()
Gets the offset of the title label from the axis or
the axis labels, if drawn.
|
void |
removeSeriesListener(com.mindfusion.charting.SettingsListener toRemove)
Removes a
SettingsListener |
void |
setInterval(float interval)
Sets the interval of this axis.
|
void |
setLabelOffset(float labelOffset)
Sets the offset of the labels from the axis.
|
void |
setLabels(java.util.ArrayList<java.lang.String> labels)
Sets custom labels for this axis.
|
void |
setLabelType(AxisLabelType labelType)
Sets the type of the labels drawn at the axis.
|
void |
setMax(float max)
Sets the biggest number at the axis.
|
void |
setMin(float min)
Sets the smallest number at the axis.
|
void |
setNumberFormat(java.text.NumberFormat numberFormat)
Sets the format of numeric labels.
|
void |
setOrigin(float origin)
Sets the origin of the axis.
|
void |
setTitle(java.lang.String title)
Sets the text of the title label for this axis.
|
void |
setTitleColor(int tColor)
Sets the color for the axis title.
|
void |
setTitleOffset(float titleOffset)
Sets the offset of the title label from the axis or from the
axis labels, if any are drawn.
|
void |
UpdateLayout()
Updates the layout of the
AxesChart . |
public AxisSettings()
AxisSettings
class.public void addSeriesListener(com.mindfusion.charting.SettingsListener toAdd)
AxisSettings
class.toAdd
- A SettingsListener
object.public void removeSeriesListener(com.mindfusion.charting.SettingsListener toRemove)
SettingsListener
toRemove
- The SettingsListener
to remove.public void UpdateLayout()
AxesChart
.public void setTitleColor(int tColor)
tColor
- The color for the axis title.public int getTitleColor()
public void setTitle(java.lang.String title)
title
- The string that represents the title label.public java.lang.String getTitle()
public void setLabelOffset(float labelOffset)
labelOffset
- The offset of the axis labels from the axis, in pixels.public float getLabelOffset()
public void setTitleOffset(float titleOffset)
titleOffset
- The offset of the title label from the axis or
the axis labels, in pixels.public float getTitleOffset()
public void setMin(float min)
min
- The smallest number at the axis.public void setMax(float max)
max
- The biggest number at the axis.public void setInterval(float interval)
interval
- public float getMin()
public float getMax()
public float getInterval()
public float getOrigin()
public void setLabels(java.util.ArrayList<java.lang.String> labels)
labels
- ArrayList with string values.public java.util.ArrayList<java.lang.String> getLabels()
public void setOrigin(float origin)
origin
- The number at which this axis is crossed by the other axis.public AxisLabelType getLabelType()
AxisLabelType
enumeration values.public void setLabelType(AxisLabelType labelType)
labelType
- One of the AxisLabelType
enumeration values.public void setNumberFormat(java.text.NumberFormat numberFormat)
numberFormat
- public java.text.NumberFormat getNumberFormat()