Class LegendItemBlockContainer

    • Field Detail

      • dataset

        private Dataset dataset
        The dataset.
      • seriesKey

        private java.lang.Comparable seriesKey
        The series key.
      • datasetIndex

        private int datasetIndex
        The dataset index.
      • series

        private int series
        The series index.
      • toolTipText

        private java.lang.String toolTipText
        The tool tip text (can be null).
      • urlText

        private java.lang.String urlText
        The URL text (can be null).
    • Constructor Detail

      • LegendItemBlockContainer

        public LegendItemBlockContainer​(Arrangement arrangement,
                                        Dataset dataset,
                                        java.lang.Comparable seriesKey)
        Creates a new legend item block.
        Parameters:
        arrangement - the arrangement.
        dataset - the dataset.
        seriesKey - the series key.
    • Method Detail

      • getDataset

        public Dataset getDataset()
        Returns a reference to the dataset for the associated legend item.
        Returns:
        A dataset reference.
      • getSeriesKey

        public java.lang.Comparable getSeriesKey()
        Returns the series key.
        Returns:
        The series key.
      • getSeriesIndex

        public int getSeriesIndex()
        Returns the series index.
        Returns:
        The series index.
      • getToolTipText

        public java.lang.String getToolTipText()
        Returns the tool tip text.
        Returns:
        The tool tip text (possibly null).
      • setToolTipText

        public void setToolTipText​(java.lang.String text)
        Sets the tool tip text.
        Parameters:
        text - the text (null permitted).
      • getURLText

        public java.lang.String getURLText()
        Returns the URL text.
        Returns:
        The URL text (possibly null).
      • setURLText

        public void setURLText​(java.lang.String text)
        Sets the URL text.
        Parameters:
        text - the text (null permitted).
      • draw

        public java.lang.Object draw​(java.awt.Graphics2D g2,
                                     java.awt.geom.Rectangle2D area,
                                     java.lang.Object params)
        Draws the block within the specified area.
        Specified by:
        draw in interface Block
        Overrides:
        draw in class BlockContainer
        Parameters:
        g2 - the graphics device.
        area - the area.
        params - passed on to blocks within the container (null permitted).
        Returns:
        An instance of EntityBlockResult, or null.