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