jscicalc.graph.Axis Class Reference

This object represents an axis. More...

Inheritance diagram for jscicalc.graph.Axis:

jscicalc.graph.Element jscicalc.graph.HAxis jscicalc.graph.VAxis
Collaboration diagram for jscicalc.graph.Axis:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Axis ()
 Constructor.
void setShowMajorUnit (boolean value)
 Set whether (true) or not (false) we should show the major units on the axis.
void setShowMinorUnit (boolean value)
 Set whether (true) or not (false) we should show the minor units on the axis.
boolean getShowMajorUnit ()
 Get the value of showMajorUnit.
boolean getShowMinorUnit ()
 Get the value of showMinorUnit.
int getMajorUnitTickLength ()
 Get the length of tick used for major unit.
int getMinorUnitTickLength ()
 Get the length of tick used for major unit.
String convertDouble (double d)
 Convert a number to a string.

Protected Attributes

boolean showMajorUnit
 Whether the major unit is shown.
boolean showMinorUnit
 Whether the minor unit is shown.
int majorUnitTick
 The length of major unit ticks in View units.
int minorUnitTick
 The length of major unit ticks in View units.

Package Attributes

java.text.NumberFormat numberFormat
 Used to convert numbers to strings.


Detailed Description

This object represents an axis.

Author:
J. D. Lamb
Version:
Revision
1.2

Constructor & Destructor Documentation

jscicalc.graph.Axis.Axis (  ) 


Member Function Documentation

void jscicalc.graph.Axis.setShowMajorUnit ( boolean  value  ) 

Set whether (true) or not (false) we should show the major units on the axis.

Parameters:
value Set true to show major unit, false not to show it

References jscicalc.graph.Axis.showMajorUnit.

Referenced by jscicalc.graph.AxisDialog.apply(), jscicalc.graph.Axis.Axis(), jscicalc.graph.AxisDialog.cancel(), and jscicalc.graph.AxisDialog.undo().

void jscicalc.graph.Axis.setShowMinorUnit ( boolean  value  ) 

Set whether (true) or not (false) we should show the minor units on the axis.

Parameters:
value Set true to show minor unit, false not to show it

References jscicalc.graph.Axis.showMinorUnit.

Referenced by jscicalc.graph.AxisDialog.apply(), jscicalc.graph.Axis.Axis(), jscicalc.graph.AxisDialog.cancel(), and jscicalc.graph.AxisDialog.undo().

boolean jscicalc.graph.Axis.getShowMajorUnit (  ) 

Get the value of showMajorUnit.

Returns:
true if we should show major units; false otherwise

References jscicalc.graph.Axis.showMajorUnit.

Referenced by jscicalc.graph.VAxis.draw(), and jscicalc.graph.HAxis.draw().

boolean jscicalc.graph.Axis.getShowMinorUnit (  ) 

Get the value of showMinorUnit.

Returns:
true if we should show minor units; false otherwise

References jscicalc.graph.Axis.showMinorUnit.

Referenced by jscicalc.graph.VAxis.draw(), and jscicalc.graph.HAxis.draw().

int jscicalc.graph.Axis.getMajorUnitTickLength (  ) 

Get the length of tick used for major unit.

Returns:
the length of tick used for major unit

References jscicalc.graph.Axis.majorUnitTick.

Referenced by jscicalc.graph.VAxis.draw(), and jscicalc.graph.HAxis.draw().

int jscicalc.graph.Axis.getMinorUnitTickLength (  ) 

Get the length of tick used for major unit.

Returns:
the length of tick used for major unit

References jscicalc.graph.Axis.minorUnitTick.

Referenced by jscicalc.graph.VAxis.draw(), and jscicalc.graph.HAxis.draw().

String jscicalc.graph.Axis.convertDouble ( double  d  ) 

Convert a number to a string.

References jscicalc.graph.Axis.numberFormat.

Referenced by jscicalc.graph.VAxis.draw(), and jscicalc.graph.HAxis.draw().


Member Data Documentation

boolean jscicalc.graph.Axis.showMajorUnit [protected]

Whether the major unit is shown.

Referenced by jscicalc.graph.Axis.getShowMajorUnit(), and jscicalc.graph.Axis.setShowMajorUnit().

boolean jscicalc.graph.Axis.showMinorUnit [protected]

Whether the minor unit is shown.

Referenced by jscicalc.graph.Axis.getShowMinorUnit(), and jscicalc.graph.Axis.setShowMinorUnit().

The length of major unit ticks in View units.

Referenced by jscicalc.graph.Axis.Axis(), and jscicalc.graph.Axis.getMajorUnitTickLength().

The length of major unit ticks in View units.

Referenced by jscicalc.graph.Axis.Axis(), and jscicalc.graph.Axis.getMinorUnitTickLength().

java.text.NumberFormat jscicalc.graph.Axis.numberFormat [package]

Used to convert numbers to strings.

Referenced by jscicalc.graph.Axis.Axis(), and jscicalc.graph.Axis.convertDouble().


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

Generated on Sun Jun 1 08:58:09 2008 for Java Scientific Calculator by  doxygen 1.5.5