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.
|
protected 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)
IAxisTick
setForeground
in interface IAxisTick
color
- the foreground color of axis tickpublic org.eclipse.swt.graphics.Color getForeground()
IAxisTick
getForeground
in interface IAxisTick
public void setFont(org.eclipse.swt.graphics.Font font)
IAxisTick
public org.eclipse.swt.graphics.Font getFont()
IAxisTick
public boolean isVisible()
IAxisTick
public void setVisible(boolean isVisible)
IAxisTick
setVisible
in interface IAxisTick
isVisible
- true to make the tick marks visiblepublic int getTickMarkStepHint()
IAxisTick
getTickMarkStepHint
in interface IAxisTick
public void setTickMarkStepHint(int tickMarkStepHint)
IAxisTick
setTickMarkStepHint
in interface IAxisTick
tickMarkStepHint
- the tick mark step hint with pixels (>
IAxisTick.MIN_GRID_STEP_HINT)public int getTickLabelAngle()
IAxisTick
getTickLabelAngle
in interface IAxisTick
public void setTickLabelAngle(int angle)
IAxisTick
setTickLabelAngle
in interface IAxisTick
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.public void setFormat(Format format)
IAxisTick
public Format getFormat()
IAxisTick
public org.eclipse.swt.graphics.Rectangle getBounds()
IAxisTick
This 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()
IAxisTick
getTickLabelValues
in interface IAxisTick
protected void updateTick(int length)
length
- the axis lengthprotected void updateLayoutData()
Copyright © 2013. All Rights Reserved.