org.archive.wayback.partition
Class PartitionsToGraph

java.lang.Object
  extended by org.archive.wayback.partition.PartitionsToGraph

public class PartitionsToGraph
extends Object

Author:
brad

Field Summary
static int NAV_COUNT
           
static int NAV_CURRENT
           
static int NAV_NEXT_CAPTURE
           
static int NAV_NEXT_DAY
           
static int NAV_NEXT_MONTH
           
static int NAV_NEXT_YEAR
           
static int NAV_PREV_CAPTURE
           
static int NAV_PREV_DAY
           
static int NAV_PREV_MONTH
           
static int NAV_PREV_YEAR
           
 
Constructor Summary
PartitionsToGraph()
           
 
Method Summary
static Graph convertYearMonth(List<Partition<Partition<CaptureSearchResult>>> years, int width, int height)
           
static String getFirstUrlMonth(Partition<CaptureSearchResult> month, ResultURIConverter c)
           
static String getFirstUrlYear(Partition<Partition<CaptureSearchResult>> year, ResultURIConverter c)
           
static String getLastUrlMonth(Partition<CaptureSearchResult> month, ResultURIConverter c)
           
static String getLastUrlYear(Partition<Partition<CaptureSearchResult>> year, ResultURIConverter c)
           
static String[] getNavigatorLinks(List<Partition<Partition<CaptureSearchResult>>> years, ResultURIConverter uc)
           
static String[] getNavigators(StringFormatter formatter, CaptureSearchResult current)
           
static CaptureSearchResult[] getResults(List<Partition<Partition<CaptureSearchResult>>> years)
           
static String[] getTitles(CaptureSearchResult[] results, StringFormatter formatter, String property)
           
static String[] getUrls(CaptureSearchResult[] results, ResultURIConverter c)
           
static String[] getUrls(CaptureSearchResult[] results, String suffix, ResultURIConverter c)
           
static Calendar getUTCCalendar()
           
static Graph partsOfPartsToGraph(List<Partition<Partition<CaptureSearchResult>>> ppcs, StringFormatter formatter, String formatKey, int width, int height)
           
static List<CaptureSearchResult> reverseCaps(List<CaptureSearchResult> caps)
           
static List<Partition<CaptureSearchResult>> reversePartsOfCaps(List<Partition<CaptureSearchResult>> parts)
           
static List<Partition<Partition<CaptureSearchResult>>> reversePartsOfParts(List<Partition<Partition<CaptureSearchResult>>> parts)
           
static List<Partition<CaptureSearchResult>> trimPartsOfCaps(List<Partition<CaptureSearchResult>> parts)
           
static List<Partition<Partition<CaptureSearchResult>>> trimPartsOfParts(List<Partition<Partition<CaptureSearchResult>>> parts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAV_COUNT

public static final int NAV_COUNT
See Also:
Constant Field Values

NAV_PREV_YEAR

public static final int NAV_PREV_YEAR
See Also:
Constant Field Values

NAV_PREV_MONTH

public static final int NAV_PREV_MONTH
See Also:
Constant Field Values

NAV_PREV_DAY

public static final int NAV_PREV_DAY
See Also:
Constant Field Values

NAV_PREV_CAPTURE

public static final int NAV_PREV_CAPTURE
See Also:
Constant Field Values

NAV_CURRENT

public static final int NAV_CURRENT
See Also:
Constant Field Values

NAV_NEXT_CAPTURE

public static final int NAV_NEXT_CAPTURE
See Also:
Constant Field Values

NAV_NEXT_DAY

public static final int NAV_NEXT_DAY
See Also:
Constant Field Values

NAV_NEXT_MONTH

public static final int NAV_NEXT_MONTH
See Also:
Constant Field Values

NAV_NEXT_YEAR

public static final int NAV_NEXT_YEAR
See Also:
Constant Field Values
Constructor Detail

PartitionsToGraph

public PartitionsToGraph()
Method Detail

getUTCCalendar

public static Calendar getUTCCalendar()

partsOfPartsToGraph

public static Graph partsOfPartsToGraph(List<Partition<Partition<CaptureSearchResult>>> ppcs,
                                        StringFormatter formatter,
                                        String formatKey,
                                        int width,
                                        int height)

reversePartsOfParts

public static List<Partition<Partition<CaptureSearchResult>>> reversePartsOfParts(List<Partition<Partition<CaptureSearchResult>>> parts)

reversePartsOfCaps

public static List<Partition<CaptureSearchResult>> reversePartsOfCaps(List<Partition<CaptureSearchResult>> parts)

reverseCaps

public static List<CaptureSearchResult> reverseCaps(List<CaptureSearchResult> caps)

trimPartsOfParts

public static List<Partition<Partition<CaptureSearchResult>>> trimPartsOfParts(List<Partition<Partition<CaptureSearchResult>>> parts)

trimPartsOfCaps

public static List<Partition<CaptureSearchResult>> trimPartsOfCaps(List<Partition<CaptureSearchResult>> parts)

convertYearMonth

public static Graph convertYearMonth(List<Partition<Partition<CaptureSearchResult>>> years,
                                     int width,
                                     int height)

getTitles

public static String[] getTitles(CaptureSearchResult[] results,
                                 StringFormatter formatter,
                                 String property)

getUrls

public static String[] getUrls(CaptureSearchResult[] results,
                               String suffix,
                               ResultURIConverter c)

getUrls

public static String[] getUrls(CaptureSearchResult[] results,
                               ResultURIConverter c)

getResults

public static CaptureSearchResult[] getResults(List<Partition<Partition<CaptureSearchResult>>> years)

getFirstUrlMonth

public static String getFirstUrlMonth(Partition<CaptureSearchResult> month,
                                      ResultURIConverter c)

getLastUrlMonth

public static String getLastUrlMonth(Partition<CaptureSearchResult> month,
                                     ResultURIConverter c)

getFirstUrlYear

public static String getFirstUrlYear(Partition<Partition<CaptureSearchResult>> year,
                                     ResultURIConverter c)

getLastUrlYear

public static String getLastUrlYear(Partition<Partition<CaptureSearchResult>> year,
                                    ResultURIConverter c)

getNavigatorLinks

public static String[] getNavigatorLinks(List<Partition<Partition<CaptureSearchResult>>> years,
                                         ResultURIConverter uc)

getNavigators

public static String[] getNavigators(StringFormatter formatter,
                                     CaptureSearchResult current)


Copyright © 2005-2011 Internet Archive. All Rights Reserved.