org.swtchart
public interface IAxisTick
Modifier and Type | Field and Description |
---|---|
static double |
MIN_GRID_STEP_HINT
the minimum grid step hint
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
getBounds()
Gets the bounds of axis tick.
|
Font |
getFont()
Gets the font for tick labels.
|
Color |
getForeground()
Gets the foreground color of axis tick.
|
java.text.Format |
getFormat()
Gets the format for axis tick label.
|
int |
getTickLabelAngle()
Gets the tick label angle.
|
double[] |
getTickLabelValues()
Gets the tick label values.
|
int |
getTickMarkStepHint()
Gets the tick mark step hint in pixels.
|
boolean |
isVisible()
Gets the state indicating if tick marks are visible.
|
void |
setFont(Font font)
Sets the font for tick labels.
|
void |
setForeground(Color color)
Sets the foreground color of axis tick.
|
void |
setFormat(java.text.Format format)
Sets the format for axis tick label.
|
void |
setTickLabelAngle(int angle)
Sets the tick label angle.
|
void |
setTickMarkStepHint(int tickMarkStepHint)
Sets the tick mark step hint in pixels.
|
void |
setVisible(boolean isVisible)
Sets the state indicating if tick marks are visible.
|
static final double MIN_GRID_STEP_HINT
void setForeground(Color color)
color
- the foreground color of axis tickColor getForeground()
void setFont(Font font)
font
- the font for tick labelsFont getFont()
boolean isVisible()
void setVisible(boolean isVisible)
isVisible
- true to make the tick marks visibleint getTickMarkStepHint()
void setTickMarkStepHint(int tickMarkStepHint)
tickMarkStepHint
- the tick mark step hint with pixels (>
IAxisTick.MIN_GRID_STEP_HINT)int getTickLabelAngle()
void setTickLabelAngle(int angle)
angle
- the angle in degree between 0 and 90. The default value is 0.
If setting 0, tick labels are horizontally shown. If setting
90, tick labels are vertically shown.void setFormat(java.text.Format format)
format
- the formatjava.text.Format getFormat()
Rectangle getBounds()
This method is typically used for mouse listener to check whether mouse cursor is on axis tick. Mouse listener can be added to Chart.
double[] getTickLabelValues()