Class SceneryPointArrowAnnotation

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

    public class SceneryPointArrowAnnotation
    extends org.jfree.chart.annotations.AbstractXYAnnotation
    implements org.jfree.chart.util.PublicCloneable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static double DEFAULT_BASE_RADIUS
      The default tip radius (in Java2D units).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void draw​(Graphics2D g2, org.jfree.chart.plot.XYPlot plot, Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)
      Draws the annotation.
      boolean equals​(Object obj)  
      Paint getArrowPaint()
      Returns the paint used for the arrow.
      Stroke getArrowStroke()
      Returns the stroke used to draw the arrow line.
      double getBaseRadius()
      Returns the base radius.
      double getDuration()  
      Comparable<String> getSeriesKey()  
      double getVolumeDelta()  
      double getX()
      Returns the x coordinate for the text anchor point (measured against the domain axis).
      double getY()
      Returns the y coordinate for the text anchor point (measured against the range axis).
      int hashCode()  
      void setArrowPaint​(Paint paint)
      Sets the paint used for the arrow and sends an AnnotationChangeEvent to all registered listeners.
      void setArrowStroke​(Stroke stroke)
      Sets the stroke used to draw the arrow line and sends an AnnotationChangeEvent to all registered listeners.
      void setBaseRadius​(double radius)
      Sets the base radius and sends an AnnotationChangeEvent to all registered listeners.
      void setDuration​(double duration)  
      void setVolumeDelta​(double volumeDelta)  
      void setX​(double x)
      Sets the x coordinate for the text anchor point (measured against the domain axis) and sends an AnnotationChangeEvent to all registered listeners.
      void setY​(double y)
      Sets the y coordinate for the text anchor point (measured against the range axis) and sends an AnnotationChangeEvent to all registered listeners.
      • Methods inherited from class org.jfree.chart.annotations.AbstractXYAnnotation

        addEntity, getToolTipText, getURL, setToolTipText, setURL
      • Methods inherited from class org.jfree.chart.annotations.AbstractAnnotation

        addChangeListener, clone, fireAnnotationChanged, getNotify, hasListener, notifyListeners, removeChangeListener, setNotify
      • Methods inherited from interface org.jfree.chart.annotations.Annotation

        addChangeListener, removeChangeListener
      • Methods inherited from interface org.jfree.chart.util.PublicCloneable

        clone
    • Field Detail

      • DEFAULT_BASE_RADIUS

        public static final double DEFAULT_BASE_RADIUS
        The default tip radius (in Java2D units).
        See Also:
        Constant Field Values
    • Constructor Detail

      • SceneryPointArrowAnnotation

        public SceneryPointArrowAnnotation​(Comparable<String> seriesKey,
                                           double x,
                                           double y,
                                           int duration,
                                           int volumeDelta)
    • Method Detail

      • getX

        public double getX()
        Returns the x coordinate for the text anchor point (measured against the domain axis).
        Returns:
        The x coordinate (in data space).
        See Also:
        setX(double)
      • setX

        public void setX​(double x)
        Sets the x coordinate for the text anchor point (measured against the domain axis) and sends an AnnotationChangeEvent to all registered listeners.
        Parameters:
        x - the x coordinate (in data space).
        See Also:
        getX()
      • getY

        public double getY()
        Returns the y coordinate for the text anchor point (measured against the range axis).
        Returns:
        The y coordinate (in data space).
        See Also:
        setY(double)
      • setY

        public void setY​(double y)
        Sets the y coordinate for the text anchor point (measured against the range axis) and sends an AnnotationChangeEvent to all registered listeners.
        Parameters:
        y - the y coordinate.
        See Also:
        getY()
      • getDuration

        public double getDuration()
        Returns:
        the duration
      • setDuration

        public void setDuration​(double duration)
        Parameters:
        duration - the duration to set
      • getVolumeDelta

        public double getVolumeDelta()
        Returns:
        the volumeDelta
      • setVolumeDelta

        public void setVolumeDelta​(double volumeDelta)
        Parameters:
        volumeDelta - the volumeDelta to set
      • getArrowStroke

        public Stroke getArrowStroke()
        Returns the stroke used to draw the arrow line.
        Returns:
        The arrow stroke (never null).
        See Also:
        setArrowStroke(Stroke)
      • setArrowStroke

        public void setArrowStroke​(Stroke stroke)
        Sets the stroke used to draw the arrow line and sends an AnnotationChangeEvent to all registered listeners.
        Parameters:
        stroke - the stroke (null not permitted).
        See Also:
        getArrowStroke()
      • getArrowPaint

        public Paint getArrowPaint()
        Returns the paint used for the arrow.
        Returns:
        The arrow paint (never null).
        See Also:
        setArrowPaint(Paint)
      • setArrowPaint

        public void setArrowPaint​(Paint paint)
        Sets the paint used for the arrow and sends an AnnotationChangeEvent to all registered listeners.
        Parameters:
        paint - the arrow paint (null not permitted).
        See Also:
        getArrowPaint()
      • getBaseRadius

        public double getBaseRadius()
        Returns the base radius.
        Returns:
        The base radius (in Java2D units).
        See Also:
        setBaseRadius(double)
      • setBaseRadius

        public void setBaseRadius​(double radius)
        Sets the base radius and sends an AnnotationChangeEvent to all registered listeners.
        Parameters:
        radius - the radius (in Java2D units).
      • draw

        public void draw​(Graphics2D g2,
                         org.jfree.chart.plot.XYPlot plot,
                         Rectangle2D dataArea,
                         org.jfree.chart.axis.ValueAxis domainAxis,
                         org.jfree.chart.axis.ValueAxis rangeAxis,
                         int rendererIndex,
                         org.jfree.chart.plot.PlotRenderingInfo info)
        Draws the annotation.
        Specified by:
        draw in interface org.jfree.chart.annotations.XYAnnotation
        Specified by:
        draw in class org.jfree.chart.annotations.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 - the plot rendering info.
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.jfree.chart.annotations.AbstractXYAnnotation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.jfree.chart.annotations.AbstractXYAnnotation