public class Axis
extends java.lang.Object
| Constructor and Description |
|---|
Axis()
Initializes a new instance of the Axis class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
protected void |
firePropertyChanged(java.lang.String propertyName) |
boolean |
getAlignIntervals()
Gets a value indicating whether axis intervals should use rounded, user-friendly values.
|
double |
getEffectiveInterval()
Gets the effective size of axis intervals.
|
java.lang.Double |
getInterval()
Gets the size of axis intervals.
|
java.lang.Double |
getMaxValue()
Gets the largest value displayed on this axis.
|
java.lang.Double |
getMinValue()
Gets the smallest value displayed on this axis.
|
java.lang.String |
getNumberFormat()
Gets the number format of coordinate labels.
|
java.lang.Double |
getOrigin()
Gets the axis origin.
|
int |
getTargetDivisions()
Gets the target number of divisions for auto-calculated intervals.
|
java.lang.String |
getTitle()
Gets the axis title.
|
com.mindfusion.charting.builders.AxisBuilder |
init()
Returns an AxisBuilder object used to configure this Axis instance.
|
boolean |
inRange(double value)
Determines whether specified value is within the axis range.
|
double |
mapValueToPixelX(double value,
double viewSize)
Maps a value from this axis' coordinate system to a pixel position in specified view.
|
double |
mapValueToPixelY(double value,
double viewSize)
Maps a value from this axis' coordinate system to a pixel position in specified view.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
setAlignIntervals(boolean value)
Sets a value indicating whether axis intervals should use rounded, user-friendly values.
|
void |
setInterval(java.lang.Double value)
Sets the size of axis intervals.
|
void |
setMaxValue(java.lang.Double value)
Sets the largest value displayed on this axis.
|
void |
setMinValue(java.lang.Double value)
Sets the smallest value displayed on this axis.
|
void |
setNumberFormat(java.lang.String value)
Sets the number format of coordinate labels.
|
void |
setOrigin(java.lang.Double value)
Sets the axis origin.
|
void |
setTargetDivisions(int value)
Sets the target number of divisions for auto-calculated intervals.
|
void |
setTitle(java.lang.String value)
Sets the axis title.
|
static com.mindfusion.charting.builders.AxisBuilder |
with()
Returns an AxisBuilder object used to configure and create new Axis instances.
|
public static com.mindfusion.charting.builders.AxisBuilder with()
public com.mindfusion.charting.builders.AxisBuilder init()
public boolean inRange(double value)
value - A double value.public java.lang.String getTitle()
public void setTitle(java.lang.String value)
public java.lang.Double getMinValue()
public void setMinValue(java.lang.Double value)
public java.lang.Double getMaxValue()
public void setMaxValue(java.lang.Double value)
public java.lang.Double getOrigin()
public void setOrigin(java.lang.Double value)
value - A Double value specifying the axis origin.public java.lang.Double getInterval()
public void setInterval(java.lang.Double value)
public int getTargetDivisions()
public void setTargetDivisions(int value)
value - An integer specifying the number of intervals to divide the axis into.public boolean getAlignIntervals()
public void setAlignIntervals(boolean value)
value - true to use a rounded interval size,
such as 0.1, 0.5, 1, 5, 10, etc, or false otherwise.public java.lang.String getNumberFormat()
public void setNumberFormat(java.lang.String value)
public double getEffectiveInterval()
public double mapValueToPixelX(double value,
double viewSize)
value - A double value.viewSize - The view size.public double mapValueToPixelY(double value,
double viewSize)
value - A double value.viewSize - The view size.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
protected void firePropertyChanged(java.lang.String propertyName)