public abstract class TimeScaleMapper extends java.lang.Object implements ScaleMapper
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel, getNumTicks, getPixelLocation, getTotalPixels
protected int totalPixels
protected edu.iris.Fissures.model.MicroSecondDate minTick
protected edu.iris.Fissures.model.MicroSecondDate beginTime
protected edu.iris.Fissures.model.MicroSecondDate endTime
protected int firstMajorTick
protected int majorTickStep
protected double tickInc
protected int numTicks
protected int hintPixels
public TimeScaleMapper(int totalPixels, int hintPixels, edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
public TimeScaleMapper(int totalPixels, edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
public void setTotalPixels(int totalPixels)
public void setTotalPixels(int totalPixels, int hintPixels)
public void setHintPixels(int hintPixels)
public void setTimes(edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
public boolean isMajorTick(int i)
ScaleMapper
isMajorTick
in interface ScaleMapper
i
- The number of the tick of interest.public boolean isLabelTick(int i)
public java.lang.String getAxisLabel()
getAxisLabel
in interface ScaleMapper
protected abstract void calculateTicks()