Class JFreeChartEntity

    • Constructor Detail

      • JFreeChartEntity

        public JFreeChartEntity​(Shape area,
                                JFreeChart chart)
        Creates a new chart entity.
        Parameters:
        area - the area (null not permitted).
        chart - the chart (null not permitted).
      • JFreeChartEntity

        public JFreeChartEntity​(Shape area,
                                JFreeChart chart,
                                String toolTipText)
        Creates a new chart entity.
        Parameters:
        area - the area (null not permitted).
        chart - the chart (null not permitted).
        toolTipText - the tool tip text (null permitted).
      • JFreeChartEntity

        public JFreeChartEntity​(Shape area,
                                JFreeChart chart,
                                String toolTipText,
                                String urlText)
        Creates a new chart entity.
        Parameters:
        area - the area (null not permitted).
        chart - the chart (null not permitted).
        toolTipText - the tool tip text (null permitted).
        urlText - the URL text for HTML image maps (null permitted).
    • Method Detail

      • getChart

        public JFreeChart getChart()
        Returns the chart that occupies the entity area.
        Returns:
        The chart (never null).
      • toString

        public String toString()
        Returns a string representation of the chart entity, useful for debugging.
        Overrides:
        toString in class ChartEntity
        Returns:
        A string.
      • equals

        public boolean equals​(Object obj)
        Tests the entity for equality with an arbitrary object.
        Overrides:
        equals in class ChartEntity
        Parameters:
        obj - the object to test against (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code for this instance.
        Overrides:
        hashCode in class ChartEntity
        Returns:
        A hash code.