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 |
---|---|
org.eclipse.swt.graphics.Rectangle |
getBounds()
Gets the bounds of axis tick.
|
org.eclipse.swt.graphics.Font |
getFont()
Gets the font for tick labels.
|
org.eclipse.swt.graphics.Color |
getForeground()
Gets the foreground color of axis tick.
|
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(org.eclipse.swt.graphics.Font font)
Sets the font for tick labels.
|
void |
setForeground(org.eclipse.swt.graphics.Color color)
Sets the foreground color of axis tick.
|
void |
setFormat(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(org.eclipse.swt.graphics.Color color)
color
- the foreground color of axis tickorg.eclipse.swt.graphics.Color getForeground()
void setFont(org.eclipse.swt.graphics.Font font)
font
- the font for tick labelsorg.eclipse.swt.graphics.Font 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(Format format)
format
- the formatFormat getFormat()
org.eclipse.swt.graphics.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()
Copyright © 2013. All Rights Reserved.