org.swtchart.internal.axis.AxisSet Class Reference

An axis container. More...

Inheritance diagram for org.swtchart.internal.axis.AxisSet:
Inheritance graph
[legend]
Collaboration diagram for org.swtchart.internal.axis.AxisSet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AxisSet (Chart chart)
 Constructor.
int createXAxis ()
 Creates the X axis.
int createYAxis ()
 Creates the Y axis.
IAxis getXAxis (int id)
 Gets the X axis for the given id.
IAxis getYAxis (int id)
 Gets the Y axis for given index.
IAxis[] getXAxes ()
 Gets the array of X axes.
IAxis[] getYAxes ()
 Gets the array of Y axes.
IAxis[] getAxes ()
 Gets the array of all axes.
int[] getXAxisIds ()
 Gets the array of X axis ids.
int[] getYAxisIds ()
 Gets the array of Y axis ids.
void deleteXAxis (int id)
 Deletes the X Axis for given axis id.
void deleteYAxis (int id)
 Deletes the Y Axis for given id.
void adjustRange ()
 Adjusts the axis range of all axes.
void zoomIn ()
 Zooms in all axes.
void zoomOut ()
 Zooms out all axes.
void updateLayoutData ()
 Updates the layout data.
void refresh ()
 Refreshes the cache.
void dispose ()
 Disposes the resources.

Private Member Functions

HashMap< Integer, AxisgetAxisMap (Direction direction)
 Gets the axis map for given direction.
int createAxis (Direction direction)
 Creates the axis for given direction.
int getUniqueId (Direction direction)
 Gets a unique axis id.
IAxis getAxis (int id, Direction direction)
 Gets the axis with axis id for given direction.
int[] getAxisIds (Direction direction)
 Gets the axis ids for given direction.
void deleteAxis (int id, Direction direction)
 Deletes the axis with the axis id for given direction.

Private Attributes

HashMap< Integer, AxisxAxisMap
 the set of X axes
HashMap< Integer, AxisyAxisMap
 the set of Y axes
Chart chart
 the chart

Detailed Description

An axis container.

By default, axis set has X Axis and Y axis with axis id 0.

Definition at line 26 of file AxisSet.java.


Constructor & Destructor Documentation

org.swtchart.internal.axis.AxisSet.AxisSet ( Chart  chart  ) 

Constructor.

Parameters:
chart the chart

Definition at line 43 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.xAxisMap, and org.swtchart.internal.axis.AxisSet.yAxisMap.


Member Function Documentation

void org.swtchart.internal.axis.AxisSet.adjustRange (  ) 

Adjusts the axis range of all axes.

Implements org.swtchart.IAxisSet.

Definition at line 259 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.chart, org.swtchart.internal.axis.AxisSet.getAxes(), and org.swtchart.Chart.updateLayout().

Here is the call graph for this function:

int org.swtchart.internal.axis.AxisSet.createAxis ( Direction  direction  )  [private]

Creates the axis for given direction.

Parameters:
direction the direction of axis
Returns:
the created axis id

Definition at line 91 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.chart, org.swtchart.internal.series.SeriesSet.compressAllSeries(), org.swtchart.internal.axis.AxisSet.getAxisMap(), org.swtchart.Chart.getSeriesSet(), org.swtchart.internal.axis.AxisSet.getUniqueId(), and org.swtchart.Chart.updateLayout().

Referenced by org.swtchart.internal.axis.AxisSet.createXAxis(), and org.swtchart.internal.axis.AxisSet.createYAxis().

Here is the call graph for this function:

Here is the caller graph for this function:

int org.swtchart.internal.axis.AxisSet.createXAxis (  ) 

Creates the X axis.

This method is used for multiple axes chart.

Returns:
the axis id

Implements org.swtchart.IAxisSet.

Definition at line 73 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.createAxis().

Here is the call graph for this function:

int org.swtchart.internal.axis.AxisSet.createYAxis (  ) 

Creates the Y axis.

This method is used for multiple axes chart.

Returns:
the axis id

Implements org.swtchart.IAxisSet.

Definition at line 80 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.createAxis().

Here is the call graph for this function:

void org.swtchart.internal.axis.AxisSet.deleteAxis ( int  id,
Direction  direction 
) [private]
void org.swtchart.internal.axis.AxisSet.deleteXAxis ( int  id  ) 

Deletes the X Axis for given axis id.

The series on the deleted axis will be moved onto the axis id '0'. The axis whose id is '0' cannot be removed.

Parameters:
id the axis id
Exceptions:
IllegalArgumentException if the given axis id is '0', or if there is no axis for the given id.

Implements org.swtchart.IAxisSet.

Definition at line 211 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.deleteAxis().

Here is the call graph for this function:

void org.swtchart.internal.axis.AxisSet.deleteYAxis ( int  id  ) 

Deletes the Y Axis for given id.

The series on the deleted axis will be moved onto the axis id '0'. The axis whose id is '0' cannot be removed.

Parameters:
id the axis id
Exceptions:
IllegalArgumentException if the given axis id is '0', or if there is no axis for the given id.

Implements org.swtchart.IAxisSet.

Definition at line 218 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.deleteAxis().

Here is the call graph for this function:

void org.swtchart.internal.axis.AxisSet.dispose (  ) 

Disposes the resources.

Definition at line 305 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxes().

Referenced by org.swtchart.internal.axis.AxisSet.deleteAxis(), and org.swtchart.Chart.dispose().

Here is the call graph for this function:

Here is the caller graph for this function:

IAxis [] org.swtchart.internal.axis.AxisSet.getAxes (  ) 
IAxis org.swtchart.internal.axis.AxisSet.getAxis ( int  id,
Direction  direction 
) [private]

Gets the axis with axis id for given direction.

Parameters:
id the axis id
direction the direction
Returns:
the axis

Definition at line 144 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxisMap().

Referenced by org.swtchart.internal.axis.AxisSet.deleteAxis(), org.swtchart.internal.axis.AxisSet.getXAxis(), and org.swtchart.internal.axis.AxisSet.getYAxis().

Here is the call graph for this function:

Here is the caller graph for this function:

int [] org.swtchart.internal.axis.AxisSet.getAxisIds ( Direction  direction  )  [private]

Gets the axis ids for given direction.

Parameters:
direction the direction
Returns:
the axis ids

Definition at line 195 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxisMap().

Referenced by org.swtchart.internal.axis.AxisSet.getXAxisIds(), and org.swtchart.internal.axis.AxisSet.getYAxisIds().

Here is the call graph for this function:

Here is the caller graph for this function:

HashMap<Integer, Axis> org.swtchart.internal.axis.AxisSet.getAxisMap ( Direction  direction  )  [private]
int org.swtchart.internal.axis.AxisSet.getUniqueId ( Direction  direction  )  [private]

Gets a unique axis id.

Parameters:
direction the axis direction
Returns:
a unique axis id

Definition at line 111 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxisMap().

Referenced by org.swtchart.internal.axis.AxisSet.createAxis().

Here is the call graph for this function:

Here is the caller graph for this function:

IAxis [] org.swtchart.internal.axis.AxisSet.getXAxes (  ) 

Gets the array of X axes.

Returns:
the array of X axes

Implements org.swtchart.IAxisSet.

Definition at line 151 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.xAxisMap.

IAxis org.swtchart.internal.axis.AxisSet.getXAxis ( int  id  ) 

Gets the X axis for the given id.

Parameters:
id the axis id
Returns:
the X axis for the given axis id, or null if there is no corresponding axis.

Implements org.swtchart.IAxisSet.

Definition at line 124 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxis().

Here is the call graph for this function:

int [] org.swtchart.internal.axis.AxisSet.getXAxisIds (  ) 

Gets the array of X axis ids.

Returns:
the array of X axis ids

Implements org.swtchart.IAxisSet.

Definition at line 177 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxisIds().

Here is the call graph for this function:

IAxis [] org.swtchart.internal.axis.AxisSet.getYAxes (  ) 

Gets the array of Y axes.

Returns:
the array of Y axes

Implements org.swtchart.IAxisSet.

Definition at line 159 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.yAxisMap.

IAxis org.swtchart.internal.axis.AxisSet.getYAxis ( int  id  ) 

Gets the Y axis for given index.

Parameters:
id the axis id
Returns:
the Y axis for the given axis id, or null if there is no corresponding axis.

Implements org.swtchart.IAxisSet.

Definition at line 131 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxis().

Here is the call graph for this function:

int [] org.swtchart.internal.axis.AxisSet.getYAxisIds (  ) 

Gets the array of Y axis ids.

Returns:
the array of Y axis ids

Implements org.swtchart.IAxisSet.

Definition at line 184 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxisIds().

Here is the call graph for this function:

void org.swtchart.internal.axis.AxisSet.refresh (  ) 

Refreshes the cache.

Definition at line 296 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxes().

Referenced by org.swtchart.Chart.updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.swtchart.internal.axis.AxisSet.updateLayoutData (  ) 

Updates the layout data.

Definition at line 287 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxes().

Referenced by org.swtchart.Chart.updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.swtchart.internal.axis.AxisSet.zoomIn (  ) 

Zooms in all axes.

Implements org.swtchart.IAxisSet.

Definition at line 269 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxes().

Here is the call graph for this function:

void org.swtchart.internal.axis.AxisSet.zoomOut (  ) 

Zooms out all axes.

Implements org.swtchart.IAxisSet.

Definition at line 278 of file AxisSet.java.

References org.swtchart.internal.axis.AxisSet.getAxes().

Here is the call graph for this function:


Member Data Documentation


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

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