|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.swtchart.internal.axis.AxisTick
public class AxisTick
An axis tick.
| Field Summary |
|---|
| Fields inherited from interface org.swtchart.IAxisTick |
|---|
MIN_GRID_STEP_HINT |
| Constructor Summary | |
|---|---|
protected |
AxisTick(Chart chart,
Axis axis)
Constructor. |
| Method Summary | |
|---|---|
AxisTickLabels |
getAxisTickLabels()
Gets the axis tick labels. |
AxisTickMarks |
getAxisTickMarks()
Gets the axis tick marks. |
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. |
protected void |
updateLayoutData()
Updates the tick layout. |
protected void |
updateTick(int length)
Updates the tick around per 64 pixel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AxisTick(Chart chart,
Axis axis)
chart - the chartaxis - the axis| Method Detail |
|---|
public AxisTickMarks getAxisTickMarks()
public AxisTickLabels getAxisTickLabels()
public void setForeground(Color color)
IAxisTick
setForeground in interface IAxisTickcolor - the foreground color of axis tickpublic Color getForeground()
IAxisTick
getForeground in interface IAxisTickpublic void setFont(Font font)
IAxisTick
setFont in interface IAxisTickfont - the font for tick labelspublic Font getFont()
IAxisTick
getFont in interface IAxisTickpublic boolean isVisible()
IAxisTick
isVisible in interface IAxisTickpublic void setVisible(boolean isVisible)
IAxisTick
setVisible in interface IAxisTickisVisible - true to make the tick marks visiblepublic int getTickMarkStepHint()
IAxisTick
getTickMarkStepHint in interface IAxisTickpublic void setTickMarkStepHint(int tickMarkStepHint)
IAxisTick
setTickMarkStepHint in interface IAxisTicktickMarkStepHint - the tick mark step hint with pixels (>
IAxisTick.MIN_GRID_STEP_HINT)public int getTickLabelAngle()
IAxisTick
getTickLabelAngle in interface IAxisTickpublic void setTickLabelAngle(int angle)
IAxisTick
setTickLabelAngle 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(java.text.Format format)
IAxisTick
setFormat in interface IAxisTickformat - the formatpublic java.text.Format getFormat()
IAxisTick
getFormat in interface IAxisTickpublic 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.
getBounds in interface IAxisTickpublic double[] getTickLabelValues()
IAxisTick
getTickLabelValues in interface IAxisTickprotected void updateTick(int length)
length - the axis lengthprotected void updateLayoutData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||