//  -------------------------------------------------------------------------->
DateTimeAxisTest = function  () {
  this.id = 'DateTimeAxisTest';
  this.axisType = this.dateTimeAxisType;
  var wordy = false;
//  alert (new Date().setZero().toString([0,5]));
};

DateTimeAxisTest.prototype = new AxisTest ();

//  -------------------------------------------------------------------------->
  DateTimeAxisTest.prototype.setData = function () {
//    alert (this.id+'.set ('+this.p2d+', '+this.axisType+', '+this.titleText+', '+this.xMin+', '+this.xMax+', '+this.axisText+', '+this.textFormatIndex+')');
    this.axisText = new Array ('several years', 'hours during day', 'minute range', 'overnight', '> 1 year', '~ 1 week', 'incl. year change', 'Feb. to Apr.'); // '~ 1/2 hour');
    this.textFormatIndex = new Array (8,7,7,9,8,8,8,7);
    this.xMin = this.transformToDate (new Array ('01/01/1975', '02/07/2010 09:30', '02/07/2010 00:00:01', '02/07/2010 20:00', '05/19/2008', '02/15/2010', '12/02/2009', '02/13/2003 08:00')); // '02/07/2010 9:45'
    this.xMax = this.transformToDate (new Array ('01/01/2015', '02/07/2010 19:45', '02/07/2010 00:01:01', '02/08/2010 08:00', '09/31/2009', '02/23/2010', '02/07/2010', '04/22/2003 15:59')); // '02/07/2010 10:15'
//    document.onclick = doRightClick;
    this.titleText = "date & time axis test";
    this.headerText = "create a date-time axis";
//    alert (this.id+'.set ('+this.titleText+', '+this.xMin+', '+this.xMax+', '+this.axisText+', '+this.textFormatIndex+')');
    return this;
 };

//  ----------------------------------------------------------------------------
  DateTimeAxisTest.prototype.transformToDate = function  (values) {
    for (var i=0; i < values.length; i++) 
      values[i] = new Date().fromString(values[i]);
    return values;
  };

//  ----------------------------------------------------------------------------
DateTimeAxisTest.prototype.parsePosition = function  (pos) {
//   alert (pos+'-->'+new Date().fromString(pos).toString());
  return new Date().fromString(pos);
};

//  ----------------------------------------------------------------------------
