Class XYDataRangeAnnotation

    • Field Detail

      • minimumDomainRange

        private final Range minimumDomainRange
      • minimumRangeRange

        private final Range minimumRangeRange
    • Constructor Detail

      • XYDataRangeAnnotation

        public XYDataRangeAnnotation​(Range minimumDomainRange,
                                     Range minimumRangeRange)
        Creates a new instance.
        Parameters:
        minimumDomainRange - the range to ensure on the domain axis (null permitted).
        minimumRangeRange - the range to ensure on the range axis (null permitted).
    • Method Detail

      • getIncludeInDataBounds

        public boolean getIncludeInDataBounds()
        Description copied from interface: XYAnnotationBoundsInfo
        Returns a flag that determines whether or not the annotation's bounds should be taken into account for auto-range calculations on the axes that the annotation is plotted against.
        Specified by:
        getIncludeInDataBounds in interface XYAnnotationBoundsInfo
        Returns:
        A boolean.
      • draw

        public void draw​(java.awt.Graphics2D g2,
                         XYPlot plot,
                         java.awt.geom.Rectangle2D dataArea,
                         ValueAxis domainAxis,
                         ValueAxis rangeAxis,
                         int rendererIndex,
                         PlotRenderingInfo info)
        Description copied from class: AbstractXYAnnotation
        Draws the annotation.
        Specified by:
        draw in interface XYAnnotation
        Specified by:
        draw in class AbstractXYAnnotation
        Parameters:
        g2 - the graphics device.
        plot - the plot.
        dataArea - the data area.
        domainAxis - the domain axis.
        rangeAxis - the range axis.
        rendererIndex - the renderer index.
        info - if supplied, this info object will be populated with entity information.
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: AbstractXYAnnotation
        Tests this annotation for equality with an arbitrary object.
        Overrides:
        equals in class AbstractXYAnnotation
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.