Class CrosshairOverlayFX

java.lang.Object
org.jfree.chart.panel.AbstractOverlay
org.jfree.chart.panel.CrosshairOverlay
org.jfree.chart.fx.overlay.CrosshairOverlayFX
All Implemented Interfaces:
PropertyChangeListener, Serializable, Cloneable, EventListener, OverlayFX, org.jfree.chart.panel.Overlay, org.jfree.chart.util.PublicCloneable

public class CrosshairOverlayFX extends org.jfree.chart.panel.CrosshairOverlay implements OverlayFX
An overlay for a ChartViewer that draws crosshairs on a plot.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Paints the content of the overlay onto the specified chart canvas.

    Methods inherited from class org.jfree.chart.panel.CrosshairOverlay

    addDomainCrosshair, addRangeCrosshair, clearDomainCrosshairs, clearRangeCrosshairs, clone, drawHorizontalCrosshair, drawVerticalCrosshair, equals, getDomainCrosshairs, getRangeCrosshairs, paintOverlay, propertyChange, removeDomainCrosshair, removeRangeCrosshair

    Methods inherited from class org.jfree.chart.panel.AbstractOverlay

    addChangeListener, fireOverlayChanged, notifyListeners, removeChangeListener

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jfree.chart.panel.Overlay

    addChangeListener, paintOverlay, removeChangeListener
  • Constructor Details

  • Method Details

    • paintOverlay

      public void paintOverlay(Graphics2D g2, ChartCanvas chartCanvas)
      Description copied from interface: OverlayFX
      Paints the content of the overlay onto the specified chart canvas.
      Specified by:
      paintOverlay in interface OverlayFX
      Parameters:
      g2 - the graphics target (null not permitted).
      chartCanvas - the chart canvas (null not permitted).