public class AbsTimeScaleMapper extends TimeScaleMapper
Modifier and Type | Class and Description |
---|---|
protected class |
AbsTimeScaleMapper.StartTickReturn |
Modifier and Type | Field and Description |
---|---|
protected java.util.Calendar |
calendar |
protected int |
firstMajorTick |
protected ThreadSafeSimpleDateFormat |
longTimeFormat |
protected ThreadSafeSimpleDateFormat |
mediumTimeFormat |
protected ThreadSafeSimpleDateFormat |
shortTimeFormat |
beginTime, endTime, hintPixels, majorTickStep, minTick, numTicks, tickInc, totalPixels
Constructor and Description |
---|
AbsTimeScaleMapper(int totalPixels,
int hintPixels,
edu.iris.Fissures.model.MicroSecondDate beginTime,
edu.iris.Fissures.model.MicroSecondDate endTime) |
Modifier and Type | Method and Description |
---|---|
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) |
getAxisLabel, isLabelTick, isMajorTick, setHintPixels, setTimes, setTotalPixels, setTotalPixels
protected ThreadSafeSimpleDateFormat longTimeFormat
protected ThreadSafeSimpleDateFormat mediumTimeFormat
protected ThreadSafeSimpleDateFormat shortTimeFormat
protected java.util.Calendar calendar
protected int firstMajorTick
public AbsTimeScaleMapper(int totalPixels, int hintPixels, edu.iris.Fissures.model.MicroSecondDate beginTime, edu.iris.Fissures.model.MicroSecondDate endTime)
public int getPixelLocation(int i)
ScaleMapper
i
- The number of the tick of interest.public java.lang.String getLabel(int i)
ScaleMapper
public int getNumTicks()
ScaleMapper
public int getTotalPixels()
ScaleMapper
protected void calculateTicks()
calculateTicks
in class TimeScaleMapper
public AbsTimeScaleMapper.StartTickReturn startTick(double goalTickInc, java.util.Date startTime)