edu.sc.seis.fissuresUtil.database.plottable
Class PlottableChunk

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.database.plottable.PlottableChunk

public class PlottableChunk
extends Object

Author:
groves Created on Oct 18, 2004

Field Summary
static TimeInterval ONE_DAY
           
 
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.
 
Method Summary
 PlottableChunk[] breakIntoDays()
           
 boolean equals(Object o)
           
 int getBeginPixel()
           
 MicroSecondDate getBeginTime()
           
 ChannelId getChannel()
           
 Plottable getData()
           
static MicroSecondDate getDate(int jday, int year)
           
 MicroSecondDate getEndTime()
           
 int getJDay()
           
static int getJDay(MicroSecondDate time)
           
 int getNumPixels()
           
static int getPixel(MicroSecondDate time, int pixelsPerDay)
           
 int getPixelsPerDay()
           
 MicroSecondDate getTime(int pixel)
           
static MicroSecondDate getTime(int pixel, int jday, int year, int pixelsPerDay)
           
 MicroSecondTimeRange getTimeRange()
           
 int getYear()
           
static int getYear(MicroSecondDate time)
           
 int hashCode()
           
static Calendar makeCal()
           
static Calendar makeCalWithDate(int jday, int year)
           
static MicroSecondDate stripToDay(Date d)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE_DAY

public static final TimeInterval ONE_DAY
Constructor Detail

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

Method Detail

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.