edu.sc.seis.fissuresUtil.display
Class TimeScaleMapper

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

public abstract class TimeScaleMapper
extends java.lang.Object
implements ScaleMapper

Abstract superclass of scale mappers that are for time scales. Created: Mon Oct 18 16:31:59 1999


Field Summary
protected  edu.iris.Fissures.model.MicroSecondDate beginTime
           
protected  edu.iris.Fissures.model.MicroSecondDate endTime
           
protected  int firstMajorTick
           
protected  int hintPixels
           
protected  int majorTickStep
           
protected  edu.iris.Fissures.model.MicroSecondDate minTick
           
protected  int numTicks
           
protected  double tickInc
           
protected  int totalPixels
           
 
Constructor Summary
TimeScaleMapper(int totalPixels, int hintPixels, edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
           
TimeScaleMapper(int totalPixels, edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
           
 
Method Summary
protected abstract  void calculateTicks()
           
 java.lang.String getAxisLabel()
           
 boolean isLabelTick(int i)
           
 boolean isMajorTick(int i)
          True if the ith tick is a major tick.
 void setHintPixels(int hintPixels)
           
 void setTimes(edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
           
 void setTotalPixels(int totalPixels)
           
 void setTotalPixels(int totalPixels, int hintPixels)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.sc.seis.fissuresUtil.display.ScaleMapper
getLabel, getNumTicks, getPixelLocation, getTotalPixels
 

Field Detail

totalPixels

protected int totalPixels

minTick

protected edu.iris.Fissures.model.MicroSecondDate minTick

beginTime

protected edu.iris.Fissures.model.MicroSecondDate beginTime

endTime

protected edu.iris.Fissures.model.MicroSecondDate endTime

firstMajorTick

protected int firstMajorTick

majorTickStep

protected int majorTickStep

tickInc

protected double tickInc

numTicks

protected int numTicks

hintPixels

protected int hintPixels
Constructor Detail

TimeScaleMapper

public TimeScaleMapper(int totalPixels,
                       int hintPixels,
                       edu.iris.Fissures.model.MicroSecondDate beginTime,
                       edu.iris.Fissures.model.MicroSecondDate endTime)

TimeScaleMapper

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

setTotalPixels

public void setTotalPixels(int totalPixels)

setTotalPixels

public void setTotalPixels(int totalPixels,
                           int hintPixels)

setHintPixels

public void setHintPixels(int hintPixels)

setTimes

public void setTimes(edu.iris.Fissures.model.MicroSecondDate beginTime,
                     edu.iris.Fissures.model.MicroSecondDate endTime)

isMajorTick

public boolean isMajorTick(int i)
Description copied from interface: ScaleMapper
True if the ith tick is a major tick. This could be used by the plotting component to draw major tick longer or thicker.

Specified by:
isMajorTick in interface ScaleMapper
Parameters:
i - The number of the tick of interest.

isLabelTick

public boolean isLabelTick(int i)

getAxisLabel

public java.lang.String getAxisLabel()
Specified by:
getAxisLabel in interface ScaleMapper

calculateTicks

protected abstract void calculateTicks()