public class BubbleCalendarData extends Object
Despite name, this class is generally useful for different calendar styles.
Initialize with UIResults
that is set up with CaptureSearchResults
and WaybackRequest
.
Caveat: Although fields are all public for historical reasons, please use getters for reading their values. Field access-level will be changed in the future.
Modifier and Type | Field and Description |
---|---|
long |
dataEndMSSE |
long |
dataStartMSSE |
Date |
firstResultDate |
String |
firstResultReplayUrl |
Date |
lastResultDate |
String |
lastResultReplayUrl |
List<Partition<Partition<CaptureSearchResult>>> |
monthsByDay |
long |
numResults |
UIResults |
results |
Date |
searchEndDate |
Date |
searchStartDate |
String |
searchUrlForHTML |
String |
searchUrlForJS |
int |
yearNum |
Constructor and Description |
---|
BubbleCalendarData()
default constructor for use in JSP.
|
BubbleCalendarData(UIResults results) |
Modifier and Type | Method and Description |
---|---|
List<List<Partition<CaptureSearchResult>>> |
getCaptureCalendar()
return
CaptureSearchResult partitions for the month grouped
by week. |
long |
getDataEndMSSE() |
long |
getDataStartMSSE() |
Date |
getFirstResultDate() |
String |
getFirstResultReplayUrl() |
Date |
getLastResultDate() |
String |
getLastResultReplayUrl() |
Date |
getMonthDate() |
Partition<Partition<CaptureSearchResult>> |
getMonthPartition() |
List<Partition<Partition<CaptureSearchResult>>> |
getMonthsByDay() |
long |
getNumResults() |
String |
getSearchUrlForHTML() |
String |
getSearchUrlForJS() |
int |
getThisYear() |
static Calendar |
getUTCCalendar()
Deprecated.
1.8.1, use
Calendar.getInstance(TimeZone.getTimeZone("UTC")) . |
int |
getYearNum() |
String |
getYearsGraphString(int imgWidth,
int imgHeight) |
protected void |
init() |
void |
setMonth(int month)
Set month for
getCaptureCalendar() |
void |
setResults(UIResults results) |
public UIResults results
public String searchUrlForJS
public String searchUrlForHTML
public Date searchStartDate
public Date searchEndDate
public Date firstResultDate
public Date lastResultDate
public int yearNum
public long dataStartMSSE
public long dataEndMSSE
public long numResults
public String firstResultReplayUrl
public String lastResultReplayUrl
public List<Partition<Partition<CaptureSearchResult>>> monthsByDay
public BubbleCalendarData()
UIResults
.public BubbleCalendarData(UIResults results)
public void setResults(UIResults results)
protected void init()
public String getYearsGraphString(int imgWidth, int imgHeight)
public static Calendar getUTCCalendar()
Calendar.getInstance(TimeZone.getTimeZone("UTC"))
.public String getSearchUrlForJS()
public String getSearchUrlForHTML()
public Date getFirstResultDate()
public Date getLastResultDate()
public int getYearNum()
public long getDataStartMSSE()
public long getDataEndMSSE()
public long getNumResults()
public String getFirstResultReplayUrl()
public String getLastResultReplayUrl()
public List<Partition<Partition<CaptureSearchResult>>> getMonthsByDay()
public int getThisYear()
public void setMonth(int month)
getCaptureCalendar()
month
- integer 0 (January) through 11 (December)public Partition<Partition<CaptureSearchResult>> getMonthPartition()
public Date getMonthDate()
Date
for month
public List<List<Partition<CaptureSearchResult>>> getCaptureCalendar()
CaptureSearchResult
partitions for the month grouped
by week.
Call this method after designating desired month with setMonth(int)
.
Each week group has exactly seven elements, where out-of-month slots are
null
.Partition
sIllegalStateException
- if month
is not in 0..11 range.Copyright © 2005–2015 IIPC. All rights reserved.