MIN_GRID_STEP_HINT| Modifier | Constructor and Description |
|---|---|
protected |
AxisTick(Chart chart,
Axis axis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AxisTickLabels |
getAxisTickLabels()
Gets the axis tick labels.
|
AxisTickMarks |
getAxisTickMarks()
Gets the axis tick marks.
|
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.
|
protected void |
updateLayoutData()
Updates the tick layout.
|
void |
updateTick(int length)
Updates the tick around per 64 pixel.
|
public AxisTickMarks getAxisTickMarks()
public AxisTickLabels getAxisTickLabels()
public void setForeground(org.eclipse.swt.graphics.Color color)
IAxisTicksetForeground in interface IAxisTickcolor - the foreground color of axis tickpublic org.eclipse.swt.graphics.Color getForeground()
IAxisTickgetForeground in interface IAxisTickpublic void setFont(org.eclipse.swt.graphics.Font font)
IAxisTickpublic org.eclipse.swt.graphics.Font getFont()
IAxisTickpublic boolean isVisible()
IAxisTickpublic void setVisible(boolean isVisible)
IAxisTicksetVisible in interface IAxisTickisVisible - true to make the tick marks visiblepublic int getTickMarkStepHint()
IAxisTickgetTickMarkStepHint in interface IAxisTickpublic void setTickMarkStepHint(int tickMarkStepHint)
IAxisTicksetTickMarkStepHint in interface IAxisTicktickMarkStepHint - the tick mark step hint with pixels (>
IAxisTick.MIN_GRID_STEP_HINT)public int getTickLabelAngle()
IAxisTickgetTickLabelAngle in interface IAxisTickpublic void setTickLabelAngle(int angle)
IAxisTicksetTickLabelAngle in interface IAxisTickangle - 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.public void setFormat(Format format)
IAxisTickpublic Format getFormat()
IAxisTickpublic org.eclipse.swt.graphics.Rectangle getBounds()
IAxisTickThis method is typically used for mouse listener to check whether mouse cursor is on axis tick. Mouse listener can be added to Chart.
public double[] getTickLabelValues()
IAxisTickgetTickLabelValues in interface IAxisTickpublic void updateTick(int length)
length - the axis lengthprotected void updateLayoutData()
Copyright © 2015. All Rights Reserved.