public class TimeScaleCalc extends java.lang.Object implements ScaleMapper, TimeListener
| Modifier and Type | Field and Description |
|---|---|
static MicroSecondTimeRange |
roundTheEpoch |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateTicks() |
java.lang.String |
getAxisLabel() |
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()
read the number of pixels allocated for this scale;
|
boolean |
isLabelTick(int i) |
boolean |
isMajorTick(int i)
True if the ith tick is a major tick.
|
void |
setTimes(edu.iris.Fissures.model.MicroSecondDate beginTime,
edu.iris.Fissures.model.MicroSecondDate endTime) |
void |
setTotalPixels(int totalPixels) |
void |
updateTime(TimeEvent event) |
public static MicroSecondTimeRange roundTheEpoch
public void calculateTicks()
public void setTotalPixels(int totalPixels)
public int getTotalPixels()
getTotalPixels in interface ScaleMapperpublic void setTimes(edu.iris.Fissures.model.MicroSecondDate beginTime,
edu.iris.Fissures.model.MicroSecondDate endTime)
public java.lang.String getLabel(int i)
ScaleMappergetLabel in interface ScaleMapperi - the current tickpublic java.lang.String getAxisLabel()
getAxisLabel in interface ScaleMapperpublic int getPixelLocation(int i)
ScaleMappergetPixelLocation in interface ScaleMapperi - the current tickpublic int getNumTicks()
ScaleMappergetNumTicks in interface ScaleMapperpublic boolean isLabelTick(int i)
i - the current tickpublic boolean isMajorTick(int i)
ScaleMapperisMajorTick in interface ScaleMapperi - the current tickpublic void updateTime(TimeEvent event)
updateTime in interface TimeListener