edu.sc.seis.fissuresUtil.display
Class AbsTimeScaleMapper
java.lang.Object
edu.sc.seis.fissuresUtil.display.TimeScaleMapper
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
Constructor Summary |
AbsTimeScaleMapper(int totalPixels,
int hintPixels,
edu.iris.Fissures.model.MicroSecondDate beginTime,
edu.iris.Fissures.model.MicroSecondDate endTime)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
longTimeFormat
protected ThreadSafeSimpleDateFormat longTimeFormat
mediumTimeFormat
protected ThreadSafeSimpleDateFormat mediumTimeFormat
shortTimeFormat
protected ThreadSafeSimpleDateFormat shortTimeFormat
calendar
protected java.util.Calendar calendar
firstMajorTick
protected int firstMajorTick
AbsTimeScaleMapper
public AbsTimeScaleMapper(int totalPixels,
int hintPixels,
edu.iris.Fissures.model.MicroSecondDate beginTime,
edu.iris.Fissures.model.MicroSecondDate endTime)
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)