Class MultiAxisChartHyperlinkProvider

  • All Implemented Interfaces:
    Serializable, ChartHyperlinkProvider

    public class MultiAxisChartHyperlinkProvider
    extends Object
    implements ChartHyperlinkProvider
    A chart item hyperlink provider used for multiple axis charts. A separate hyperlink provider can be set for each axis/dataset in the multi chart. This provider then resolves the provider for each chart entity and delegates the hyperlink retrieval to it.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    See Also:
    Serialized Form
    • Constructor Detail

      • MultiAxisChartHyperlinkProvider

        public MultiAxisChartHyperlinkProvider()
        Creates a multiple axis chart hyperlink provider.
    • Method Detail

      • addHyperlinkProvider

        public void addHyperlinkProvider​(org.jfree.data.general.Dataset dataset,
                                         ChartHyperlinkProvider provider)
        Registers a hyperlink provider for a specific dataset. The dataset will be used to determine a provider for a chart entity.
        Parameters:
        dataset - the dataset
        provider - the hyperlink provider
      • hasHyperlinks

        public boolean hasHyperlinks()
        Returns true if any of the registered providers has hyperlinks.
        Specified by:
        hasHyperlinks in interface ChartHyperlinkProvider
      • getEntityHyperlink

        public JRPrintHyperlink getEntityHyperlink​(org.jfree.chart.entity.ChartEntity entity)
        Determines the provider for the chart entity based on its dataset, and delegates the call to it.
        Specified by:
        getEntityHyperlink in interface ChartHyperlinkProvider
      • resolveEntityProvider

        protected ChartHyperlinkProvider resolveEntityProvider​(org.jfree.chart.entity.ChartEntity entity)
      • getEntityDataset

        protected org.jfree.data.general.Dataset getEntityDataset​(org.jfree.chart.entity.ChartEntity entity)