org.swtchart.IAxisTick Interface Reference

An axis tick. More...

Inheritance diagram for org.swtchart.IAxisTick:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void setForeground (Color color)
 Sets the foreground color of axis tick.
Color getForeground ()
 Gets the foreground color of axis tick.
void setFont (Font font)
 Sets the font for tick labels.
Font getFont ()
 Gets the font for tick labels.
boolean isVisible ()
 Gets the state indicating if tick marks are visible.
void setVisible (boolean isVisible)
 Sets the state indicating if tick marks are visible.
int getTickMarkStepHint ()
 Gets the tick mark step hint in pixels.
void setTickMarkStepHint (int tickMarkStepHint)
 Sets the tick mark step hint in pixels.
int getTickLabelAngle ()
 Gets the tick label angle.
void setTickLabelAngle (int angle)
 Sets the tick label angle.
void setFormat (Format format)
 Sets the format for axis tick label.
Format getFormat ()
 Gets the format for axis tick label.
Rectangle getBounds ()
 Gets the bounds of axis tick.
double[] getTickLabelValues ()
 Gets the tick label values.

Static Public Attributes

static final double MIN_GRID_STEP_HINT = 16
 the minimum grid step hint

Detailed Description

An axis tick.

Definition at line 18 of file IAxisTick.java.


Member Function Documentation

Rectangle org.swtchart.IAxisTick.getBounds (  ) 

Gets the bounds of axis tick.

This method is typically used for mouse listener to check whether mouse cursor is on axis tick. Mouse listener can be added to Chart.

Returns:
the bounds of axis tick.

Implemented in org.swtchart.internal.axis.AxisTick.

Font org.swtchart.IAxisTick.getFont (  ) 

Gets the font for tick labels.

Returns:
the font for tick labels

Implemented in org.swtchart.internal.axis.AxisTick.

Referenced by org.swtchart.ext.internal.properties.AxisTickPage.apply(), and org.swtchart.ext.internal.properties.AxisTickPage.selectInitialValues().

Here is the caller graph for this function:

Color org.swtchart.IAxisTick.getForeground (  ) 

Gets the foreground color of axis tick.

Returns:
the foreground color of axis tick

Implemented in org.swtchart.internal.axis.AxisTick.

Referenced by org.swtchart.ext.internal.properties.AxisTickPage.selectInitialValues().

Here is the caller graph for this function:

Format org.swtchart.IAxisTick.getFormat (  ) 

Gets the format for axis tick label.

Returns:
the format

Implemented in org.swtchart.internal.axis.AxisTick.

int org.swtchart.IAxisTick.getTickLabelAngle (  ) 

Gets the tick label angle.

Returns:
the tick label angle in degree

Implemented in org.swtchart.internal.axis.AxisTick.

double [] org.swtchart.IAxisTick.getTickLabelValues (  ) 

Gets the tick label values.

Returns:
the tick label values

Implemented in org.swtchart.internal.axis.AxisTick.

int org.swtchart.IAxisTick.getTickMarkStepHint (  ) 

Gets the tick mark step hint in pixels.

Returns:
the tick mark step hint in pixels

Implemented in org.swtchart.internal.axis.AxisTick.

boolean org.swtchart.IAxisTick.isVisible (  ) 

Gets the state indicating if tick marks are visible.

Returns:
true if tick marks are visible

Implemented in org.swtchart.internal.axis.AxisTick.

Referenced by org.swtchart.ext.internal.properties.AxisTickPage.selectInitialValues().

Here is the caller graph for this function:

void org.swtchart.IAxisTick.setFont ( Font  font  ) 

Sets the font for tick labels.

Parameters:
font the font for tick labels

Implemented in org.swtchart.internal.axis.AxisTick.

Referenced by org.swtchart.ext.internal.properties.AxisTickPage.apply().

Here is the caller graph for this function:

void org.swtchart.IAxisTick.setForeground ( Color  color  ) 

Sets the foreground color of axis tick.

Parameters:
color the foreground color of axis tick

Implemented in org.swtchart.internal.axis.AxisTick.

Referenced by org.swtchart.ext.internal.properties.AxisTickPage.apply(), and org.swtchart.examples.MultipleAxesExample.createChart().

Here is the caller graph for this function:

void org.swtchart.IAxisTick.setFormat ( Format  format  ) 

Sets the format for axis tick label.

DecimalFormat and DateFormat should be used for double[] series and Date[] series respectively.

Parameters:
format the format

Implemented in org.swtchart.internal.axis.AxisTick.

void org.swtchart.IAxisTick.setTickLabelAngle ( int  angle  ) 

Sets the tick label angle.

Parameters:
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.

Implemented in org.swtchart.internal.axis.AxisTick.

Referenced by org.swtchart.examples.AngledAxisTickLabelsExample.createChart().

Here is the caller graph for this function:

void org.swtchart.IAxisTick.setTickMarkStepHint ( int  tickMarkStepHint  ) 

Sets the tick mark step hint in pixels.

Parameters:
tickMarkStepHint the tick mark step hint with pixels (> IAxisTick.MIN_GRID_STEP_HINT)

Implemented in org.swtchart.internal.axis.AxisTick.

void org.swtchart.IAxisTick.setVisible ( boolean  isVisible  ) 

Sets the state indicating if tick marks are visible.

Parameters:
isVisible true to make the tick marks visible

Implemented in org.swtchart.internal.axis.AxisTick.

Referenced by org.swtchart.ext.internal.properties.AxisTickPage.apply().

Here is the caller graph for this function:


Member Data Documentation

final double org.swtchart.IAxisTick.MIN_GRID_STEP_HINT = 16 [static]

the minimum grid step hint

Definition at line 21 of file IAxisTick.java.

Referenced by org.swtchart.internal.axis.AxisTick.setTickMarkStepHint().


The documentation for this interface was generated from the following file:

Generated on 26 Oct 2015 for SWTChart.org by  doxygen 1.6.1