edu.sc.seis.fissuresUtil.database.plottable
Class PlottableChunk
java.lang.Object
edu.sc.seis.fissuresUtil.database.plottable.PlottableChunk
public class PlottableChunk
- extends Object
- Author:
- groves Created on Oct 18, 2004
|
Constructor Summary |
PlottableChunk(Plottable data,
int startPixel,
int jday,
int year,
int pixelsPerDay,
ChannelId channel)
Creates a plottable chunk based on the plottable in data, starting
startPixel pixels into the jday and year at pixelsPerDay |
PlottableChunk(Plottable data,
int startPixel,
MicroSecondDate startDate,
int pixelsPerDay,
ChannelId channel)
Creates a plottable chunk based on the plottable in data, starting
startPixel pixels into the jday and year of start data at pixelsPerDay
NOTE: The start pixel should be relative to the beginning of the jday of
the start date. |
PlottableChunk(Plottable data,
int startPixel,
PlottableChunk otherStuff)
Creates a plottable chunk consisting of the plottable in data, starting
start pixels into the jday and year of otherstuff at
otherstuff.getPixelsPerDay ppd. |
ONE_DAY
public static final TimeInterval ONE_DAY
PlottableChunk
public PlottableChunk(Plottable data,
int startPixel,
PlottableChunk otherStuff)
- Creates a plottable chunk consisting of the plottable in data, starting
start pixels into the jday and year of otherstuff at
otherstuff.getPixelsPerDay ppd.
PlottableChunk
public PlottableChunk(Plottable data,
int startPixel,
MicroSecondDate startDate,
int pixelsPerDay,
ChannelId channel)
- Creates a plottable chunk based on the plottable in data, starting
startPixel pixels into the jday and year of start data at pixelsPerDay
NOTE: The start pixel should be relative to the beginning of the jday of
the start date. Otherwise, things get screwy.
PlottableChunk
public PlottableChunk(Plottable data,
int startPixel,
int jday,
int year,
int pixelsPerDay,
ChannelId channel)
- Creates a plottable chunk based on the plottable in data, starting
startPixel pixels into the jday and year at pixelsPerDay
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
makeCal
public static Calendar makeCal()
makeCalWithDate
public static Calendar makeCalWithDate(int jday,
int year)
getDate
public static MicroSecondDate getDate(int jday,
int year)
getTime
public static MicroSecondDate getTime(int pixel,
int jday,
int year,
int pixelsPerDay)
getJDay
public static int getJDay(MicroSecondDate time)
getYear
public static int getYear(MicroSecondDate time)
getPixel
public static int getPixel(MicroSecondDate time,
int pixelsPerDay)
stripToDay
public static MicroSecondDate stripToDay(Date d)
getChannel
public ChannelId getChannel()
getData
public Plottable getData()
getPixelsPerDay
public int getPixelsPerDay()
getBeginPixel
public int getBeginPixel()
getNumPixels
public int getNumPixels()
getTime
public MicroSecondDate getTime(int pixel)
getBeginTime
public MicroSecondDate getBeginTime()
getEndTime
public MicroSecondDate getEndTime()
getTimeRange
public MicroSecondTimeRange getTimeRange()
getJDay
public int getJDay()
getYear
public int getYear()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
breakIntoDays
public PlottableChunk[] breakIntoDays()
Copyright © 2002-2007 Seismology at the University of South Carolina. All Rights Reserved.