edu.sc.seis.fissuresUtil.display
Class AbsTimeScaleMapper

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.display.TimeScaleMapper
      extended by edu.sc.seis.fissuresUtil.display.AbsTimeScaleMapper
All Implemented Interfaces:
ScaleMapper

public class AbsTimeScaleMapper
extends TimeScaleMapper

AbsTimeScaleMapper.java Created: Tue Oct 19 12:48:26 1999


Nested Class Summary
protected  class AbsTimeScaleMapper.StartTickReturn
           
 
Field Summary
protected  java.util.Calendar calendar
           
protected  int firstMajorTick
           
protected  ThreadSafeSimpleDateFormat longTimeFormat
           
protected  ThreadSafeSimpleDateFormat mediumTimeFormat
           
protected  ThreadSafeSimpleDateFormat shortTimeFormat
           
 
Fields inherited from class edu.sc.seis.fissuresUtil.display.TimeScaleMapper
beginTime, endTime, hintPixels, majorTickStep, minTick, numTicks, tickInc, totalPixels
 
Constructor Summary
AbsTimeScaleMapper(int totalPixels, int hintPixels, edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
           
 
Method Summary
protected  void calculateTicks()
           
 java.lang.String getLabel(int i)
          Gets the label if there is one for the ith tick.
 int getNumTicks()
          Gets the total number of ticks.
 int getPixelLocation(int i)
          Gets the pixel location for the ith tick.
 int getTotalPixels()
          returns the total pixels used to calculate map.
 AbsTimeScaleMapper.StartTickReturn startTick(double goalTickInc, java.util.Date startTime)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.display.TimeScaleMapper
getAxisLabel, isLabelTick, isMajorTick, setHintPixels, setTimes, setTotalPixels, setTotalPixels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

longTimeFormat

protected ThreadSafeSimpleDateFormat longTimeFormat

mediumTimeFormat

protected ThreadSafeSimpleDateFormat mediumTimeFormat

shortTimeFormat

protected ThreadSafeSimpleDateFormat shortTimeFormat

calendar

protected java.util.Calendar calendar

firstMajorTick

protected int firstMajorTick
Constructor Detail

AbsTimeScaleMapper

public AbsTimeScaleMapper(int totalPixels,
                          int hintPixels,
                          edu.iris.Fissures.model.MicroSecondDate beginTime,
                          edu.iris.Fissures.model.MicroSecondDate endTime)
Method Detail

getPixelLocation

public int getPixelLocation(int i)
Description copied from interface: ScaleMapper
Gets the pixel location for the ith tick.

Parameters:
i - The number of the tick of interest.

getLabel

public java.lang.String getLabel(int i)
Description copied from interface: ScaleMapper
Gets the label if there is one for the ith tick. If there is no label then a empty string should be returned instead of a null.


getNumTicks

public int getNumTicks()
Description copied from interface: ScaleMapper
Gets the total number of ticks.


getTotalPixels

public int getTotalPixels()
Description copied from interface: ScaleMapper
returns the total pixels used to calculate map. SBH

Returns:

calculateTicks

protected void calculateTicks()
Specified by:
calculateTicks in class TimeScaleMapper

startTick

public AbsTimeScaleMapper.StartTickReturn startTick(double goalTickInc,
                                                    java.util.Date startTime)