|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sc.seis.fissuresUtil.display.TimeScaleCalc
public class TimeScaleCalc
TimeScaleCalc takes the total pixels of a given seismogram along with its beginning and ending times to make divisions that are decently human friendly for the time axis. Created: Thu May 16 13:36:24 2002
| Field Summary | |
|---|---|
static MicroSecondTimeRange |
roundTheEpoch
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static MicroSecondTimeRange roundTheEpoch
| Method Detail |
|---|
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 ScaleMapperi - the current tickpublic java.lang.String getAxisLabel()
getAxisLabel in interface ScaleMapperpublic int getPixelLocation(int i)
ScaleMapper
getPixelLocation in interface ScaleMapperi - the current tickpublic int getNumTicks()
ScaleMapper
getNumTicks in interface ScaleMapperpublic boolean isLabelTick(int i)
i - the current tickpublic boolean isMajorTick(int i)
ScaleMapper
isMajorTick in interface ScaleMapperi - the current tickpublic void updateTime(TimeEvent event)
updateTime in interface TimeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||