Class OpaqueXYTextAnnotation

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.jfree.chart.annotations.XYAnnotation, org.jfree.util.PublicCloneable

    public class OpaqueXYTextAnnotation
    extends org.jfree.chart.annotations.XYTextAnnotation
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OpaqueXYTextAnnotation.AnnotationSorter
      Sorts annotations along either the X or Y axis, depending on the plot orientation
    • Field Summary

      • Fields inherited from class org.jfree.chart.annotations.XYTextAnnotation

        DEFAULT_FONT, DEFAULT_PAINT, DEFAULT_ROTATION_ANCHOR, DEFAULT_ROTATION_ANGLE, DEFAULT_TEXT_ANCHOR
    • Constructor Summary

      Constructors 
      Constructor Description
      OpaqueXYTextAnnotation​(java.lang.String label, double x, double y)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calculateBounds​(java.awt.Graphics2D g2, org.jfree.chart.plot.XYPlot plot, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)  
      void draw​(java.awt.Graphics2D g2)  
      void draw​(java.awt.Graphics2D g2, org.jfree.chart.plot.XYPlot plot, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)  
      java.awt.Color getBackground()  
      java.awt.geom.Rectangle2D getBounds()  
      double getCenterY()  
      static double pickDouble​(org.jfree.chart.plot.PlotOrientation orientation, double verticalValue, double horizontalValue)
      Shortcut for ternary operator picking values based on plot orientation
      static float pickFloat​(org.jfree.chart.plot.PlotOrientation orientation, float verticalValue, float horizontalValue)
      Shortcut for ternary operator picking values based on plot orientation
      void setBackground​(java.awt.Color background)  
      • Methods inherited from class org.jfree.chart.annotations.XYTextAnnotation

        clone, equals, getFont, getPaint, getRotationAnchor, getRotationAngle, getText, getTextAnchor, getX, getY, hashCode, setFont, setPaint, setRotationAnchor, setRotationAngle, setText, setTextAnchor, setX, setY
      • Methods inherited from class org.jfree.chart.annotations.AbstractXYAnnotation

        addEntity, getToolTipText, getURL, setToolTipText, setURL
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpaqueXYTextAnnotation

        public OpaqueXYTextAnnotation​(java.lang.String label,
                                      double x,
                                      double y)
    • Method Detail

      • pickFloat

        public static float pickFloat​(org.jfree.chart.plot.PlotOrientation orientation,
                                      float verticalValue,
                                      float horizontalValue)
        Shortcut for ternary operator picking values based on plot orientation
      • pickDouble

        public static double pickDouble​(org.jfree.chart.plot.PlotOrientation orientation,
                                        double verticalValue,
                                        double horizontalValue)
        Shortcut for ternary operator picking values based on plot orientation
      • calculateBounds

        public void calculateBounds​(java.awt.Graphics2D g2,
                                    org.jfree.chart.plot.XYPlot plot,
                                    java.awt.geom.Rectangle2D dataArea,
                                    org.jfree.chart.axis.ValueAxis domainAxis,
                                    org.jfree.chart.axis.ValueAxis rangeAxis,
                                    int rendererIndex,
                                    org.jfree.chart.plot.PlotRenderingInfo info)
      • draw

        public void draw​(java.awt.Graphics2D g2,
                         org.jfree.chart.plot.XYPlot plot,
                         java.awt.geom.Rectangle2D dataArea,
                         org.jfree.chart.axis.ValueAxis domainAxis,
                         org.jfree.chart.axis.ValueAxis rangeAxis,
                         int rendererIndex,
                         org.jfree.chart.plot.PlotRenderingInfo info)
        Specified by:
        draw in interface org.jfree.chart.annotations.XYAnnotation
        Overrides:
        draw in class org.jfree.chart.annotations.XYTextAnnotation
      • draw

        public void draw​(java.awt.Graphics2D g2)
      • getBackground

        public java.awt.Color getBackground()
      • setBackground

        public void setBackground​(java.awt.Color background)
      • getBounds

        public java.awt.geom.Rectangle2D getBounds()
      • getCenterY

        public double getCenterY()