public interface IAxis
Modifier and Type | Interface and Description |
---|---|
static class |
IAxis.Direction
An axis direction
|
static class |
IAxis.Position
An axis position
|
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(IDisposeListener listener)
Adds the dispose listener.
|
void |
adjustRange()
Adjusts the axis range to the series belonging to the axis, so that all
series are completely shown.
|
void |
enableCategory(boolean enabled)
Enables category.
|
void |
enableLogScale(boolean enabled)
Enables the log scale.
|
String[] |
getCategorySeries()
Gets the category series.
|
double |
getDataCoordinate(int pixelCoordinate)
Gets the data coordinate corresponding to the given pixel coordinate on
plot area.
|
IAxis.Direction |
getDirection()
Gets the axis direction.
|
IGrid |
getGrid()
Gets the grid.
|
int |
getId()
Gets the axis id.
|
int |
getPixelCoordinate(double dataCoordinate)
Gets the pixel coordinate corresponding to the given data coordinate.
|
IAxis.Position |
getPosition()
Gets the axis position.
|
Range |
getRange()
Gets the axis range.
|
IAxisTick |
getTick()
Gets the axis tick.
|
ITitle |
getTitle()
Gets the axis title.
|
boolean |
isCategoryEnabled()
Gets the state indicating if category is enabled.
|
boolean |
isLogScaleEnabled()
Gets the state indicating if log scale is enabled.
|
void |
scrollDown()
Scrolls up the axis.
|
void |
scrollUp()
Scrolls up the axis.
|
void |
setCategorySeries(String[] series)
Sets the category series.
|
void |
setPosition(IAxis.Position position)
Sets the axis position.
|
void |
setRange(Range range)
Sets the axis range.
|
void |
zoomIn()
Zooms in the axis.
|
void |
zoomIn(double coordinate)
Zooms in the axis at the given coordinate.
|
void |
zoomOut()
Zooms out the axis.
|
void |
zoomOut(double coordinate)
Zooms out the axis at the given coordinate.
|
int getId()
An axis id is automatically assigned when axis is created.
IAxis.Direction getDirection()
The axis direction is set when axis is created, and won't be changed.
IAxis.Position getPosition()
void setPosition(IAxis.Position position)
position
- the axis positionvoid setRange(Range range)
range
- the axis rangeRange getRange()
ITitle getTitle()
IAxisTick getTick()
void enableLogScale(boolean enabled) throws IllegalStateException
enabled
- true if enabling log scalesIllegalStateException
- if minimum value of series belonging to this axis is less
than zero.boolean isLogScaleEnabled()
IGrid getGrid()
void adjustRange()
void zoomIn()
void zoomIn(double coordinate)
coordinate
- the coordinatevoid zoomOut()
void zoomOut(double coordinate)
coordinate
- the coordinatevoid scrollUp()
void scrollDown()
void enableCategory(boolean enabled)
enabled
- true if enabling categoryboolean isCategoryEnabled()
void setCategorySeries(String[] series)
series
- the category seriesString[] getCategorySeries()
int getPixelCoordinate(double dataCoordinate)
dataCoordinate
- the data coordinatedouble getDataCoordinate(int pixelCoordinate)
pixelCoordinate
- the pixel coordinate on plot areavoid addDisposeListener(IDisposeListener listener)
listener
- the dispose listenerCopyright © 2017. All rights reserved.