edu.sc.seis.fissuresUtil.display
Class TimeScaleMapper
java.lang.Object
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
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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()