public class ToolBarData extends Object
Modifier and Type | Field and Description |
---|---|
CaptureSearchResult |
curResult
current result being shown
|
CaptureSearchResult |
monthNextResult
Earliest Result one month after current, or null
|
List<Partition<CaptureSearchResult>> |
monthPartitions
List
|
CaptureSearchResult |
monthPrevResult
Latest Result one month before current, or null
|
CaptureSearchResult |
nextResult
Earliest Result after current, or null
|
CaptureSearchResult |
prevResult
Latest Result before current, or null
|
CaptureSearchResults |
results
the CaptureSearchResults object from the ResourceIndex.
|
CaptureSearchResult |
yearNextResult
Earliest Result one year after current, or null
|
List<Partition<Partition<CaptureSearchResult>>> |
yearPartitions
List
|
CaptureSearchResult |
yearPrevResult
Latest Result one year before current, or null
|
Constructor and Description |
---|
ToolBarData(UIResults uiResults) |
Modifier and Type | Method and Description |
---|---|
static Date |
addDay(Date date,
int amt)
Increment a Date object by +/- some days
|
static Date |
addMonth(Date date,
int amt)
Increment a Date object by +/- some months
|
static Date |
addYear(Date date,
int amt)
Increment a Date object by +/- some years
|
String |
computeGraphString(String formatKey,
int width,
int height) |
Date |
getFirstResultDate() |
Date |
getLastResultDate() |
long |
getResultCount() |
String |
makeReplayURL(CaptureSearchResult result) |
public CaptureSearchResult yearPrevResult
public CaptureSearchResult monthPrevResult
public CaptureSearchResult prevResult
public CaptureSearchResult nextResult
public CaptureSearchResult monthNextResult
public CaptureSearchResult yearNextResult
public CaptureSearchResult curResult
public CaptureSearchResults results
public List<Partition<Partition<CaptureSearchResult>>> yearPartitions
public List<Partition<CaptureSearchResult>> monthPartitions
public ToolBarData(UIResults uiResults)
uiResults
- the UIResults holding replay infopublic String computeGraphString(String formatKey, int width, int height)
formatKey
- String template for format Dateswidth
- pixel width of resulting graphheight
- pixel height of resulting graphpublic String makeReplayURL(CaptureSearchResult result)
result
- Restul to draw replay URL forpublic long getResultCount()
public Date getFirstResultDate()
public Date getLastResultDate()
public static Date addYear(Date date, int amt)
date
- Date to +/- some years fromamt
- number of years to add/removepublic static Date addMonth(Date date, int amt)
date
- Date to +/- some months fromamt
- number of months to add/removeCopyright © 2005–2015 IIPC. All rights reserved.