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(MicroSecondDate beginTime,
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 ScaleMapper
public void setTimes(MicroSecondDate beginTime, MicroSecondDate endTime)
public java.lang.String getLabel(int i)
ScaleMapper
getLabel
in interface ScaleMapper
i
- the current tickpublic java.lang.String getAxisLabel()
getAxisLabel
in interface ScaleMapper
public int getPixelLocation(int i)
ScaleMapper
getPixelLocation
in interface ScaleMapper
i
- the current tickpublic int getNumTicks()
ScaleMapper
getNumTicks
in interface ScaleMapper
public boolean isLabelTick(int i)
i
- the current tickpublic boolean isMajorTick(int i)
ScaleMapper
isMajorTick
in interface ScaleMapper
i
- the current tickpublic void updateTime(TimeEvent event)
updateTime
in interface TimeListener