Axis Class Reference

An Axis is a property of a Dataset, containing a header and description and a set of either bins or points. More...

Inheritance diagram for Axis:

Inheritance graph
[legend]

Collaboration diagram for Axis:

Collaboration graph
[legend]

List of all members.


Public Member Functions

 Axis ()
 Default constructor.
 Axis (String header)
 Axis (String header, Unit unit)
String getHeader ()
 Get the axis header.
Axis setHeader (String header)
 Set the axis header.
Unit getUnit ()
 Get the Unit in which values on this axis are measured.
Axis setUnit (Unit unit)
 Set the Unit in which values on this axis are measured.
String toString ()
 Do-nothing string representation of this axis: should be overridden.

Package Functions

.hibernate.annotations. Type (type="cedar.hepdata.db.UnitUserType") private Unit _unit
 Unit which the points on this axis are measured in.
Logger log ()
 Neat method to allow every class to get hold of a custom-named Logger.

Detailed Description

An Axis is a property of a Dataset, containing a header and description and a set of either bins or points.

XAxis and YAxis are concrete implementations. One Dataset may have multiple Axes. Every Axis has an associated Unit.

Author:
Andy Buckley
Version:
Date
2007-06-06 18:04:02 +0100 (Wed, 06 Jun 2007)
Revision
1002

Definition at line 18 of file Axis.java.


Constructor & Destructor Documentation

Axis (  ) 

Default constructor.

Definition at line 38 of file Axis.java.

00038 {}

Axis ( String  header  ) 

Definition at line 40 of file Axis.java.

00040                                {
00041         this();
00042         setHeader(header);
00043     }

Axis ( String  header,
Unit  unit 
)

Definition at line 45 of file Axis.java.

00045                                           {
00046         this(header);
00047         setUnit(unit);
00048     }


Member Function Documentation

.hibernate.annotations. Type ( type  = "cedar.hepdata.db.UnitUserType"  )  [package]

Unit which the points on this axis are measured in.

String getHeader (  ) 

Get the axis header.

Definition at line 55 of file Axis.java.

00055                               {
00056         return _header;
00057     }

Axis setHeader ( String  header  ) 

Set the axis header.

Definition at line 59 of file Axis.java.

00059                                          {
00060         _header = header;
00061         return this;
00062     }

Unit getUnit (  ) 

Get the Unit in which values on this axis are measured.

Definition at line 66 of file Axis.java.

00066                           {
00067         return _unit;
00068     }

Axis setUnit ( Unit  unit  ) 

Set the Unit in which values on this axis are measured.

Definition at line 71 of file Axis.java.

00071                                    {
00072         _unit = unit;
00073         return this;
00074     }

String toString (  ) 

Do-nothing string representation of this axis: should be overridden.

Reimplemented from Storeable.

Reimplemented in XAxis, and YAxis.

Definition at line 81 of file Axis.java.

00081                              {
00082        return "";
00083     }

Logger log (  )  [package, inherited]


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


Generated on Tue Apr 21 15:54:42 2009 for HepData object model by  doxygen 1.5.5