Class StandardXYURLGenerator

    • Constructor Summary

      Constructors 
      Constructor Description
      StandardXYURLGenerator()
      Creates a new default generator.
      StandardXYURLGenerator​(java.lang.String prefix)
      Creates a new generator with the specified prefix.
      StandardXYURLGenerator​(java.lang.String prefix, java.lang.String seriesParameterName, java.lang.String itemParameterName)
      Constructor that overrides all the defaults
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Tests this generator for equality with an arbitrary object.
      java.lang.String generateURL​(XYDataset dataset, int series, int item)
      Generates a URL for a particular item within a series.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization.
        See Also:
        Constant Field Values
      • DEFAULT_PREFIX

        public static final java.lang.String DEFAULT_PREFIX
        The default prefix.
        See Also:
        Constant Field Values
      • DEFAULT_SERIES_PARAMETER

        public static final java.lang.String DEFAULT_SERIES_PARAMETER
        The default series parameter.
        See Also:
        Constant Field Values
      • DEFAULT_ITEM_PARAMETER

        public static final java.lang.String DEFAULT_ITEM_PARAMETER
        The default item parameter.
        See Also:
        Constant Field Values
      • prefix

        private java.lang.String prefix
        Prefix to the URL
      • seriesParameterName

        private java.lang.String seriesParameterName
        Series parameter name to go in each URL
      • itemParameterName

        private java.lang.String itemParameterName
        Item parameter name to go in each URL
    • Constructor Detail

      • StandardXYURLGenerator

        public StandardXYURLGenerator()
        Creates a new default generator. This constructor is equivalent to calling StandardXYURLGenerator("index.html", "series", "item");.
      • StandardXYURLGenerator

        public StandardXYURLGenerator​(java.lang.String prefix)
        Creates a new generator with the specified prefix. This constructor is equivalent to calling StandardXYURLGenerator(prefix, "series", "item");.
        Parameters:
        prefix - the prefix to the URL (null not permitted).
      • StandardXYURLGenerator

        public StandardXYURLGenerator​(java.lang.String prefix,
                                      java.lang.String seriesParameterName,
                                      java.lang.String itemParameterName)
        Constructor that overrides all the defaults
        Parameters:
        prefix - the prefix to the URL (null not permitted).
        seriesParameterName - the name of the series parameter to go in each URL (null not permitted).
        itemParameterName - the name of the item parameter to go in each URL (null not permitted).
    • Method Detail

      • generateURL

        public java.lang.String generateURL​(XYDataset dataset,
                                            int series,
                                            int item)
        Generates a URL for a particular item within a series.
        Specified by:
        generateURL in interface XYURLGenerator
        Parameters:
        dataset - the dataset.
        series - the series number (zero-based index).
        item - the item number (zero-based index).
        Returns:
        The generated URL.
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this generator for equality with an arbitrary object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object