Documentation of 'org.jfree.chart.fx.ChartViewerSkin' Java class
ChartViewerSkin
org.jfree.chart.fx

Class ChartViewerSkin

  • All Implemented Interfaces:
    javafx.scene.control.Skin<ChartViewer>


    public class ChartViewerSkin
    extends javafx.scene.control.SkinBase<ChartViewer>
    A default skin for the ChartViewer control.

    THE API FOR THIS CLASS IS SUBJECT TO CHANGE IN FUTURE RELEASES. This is so that we can incorporate feedback on the (new) JavaFX support in JFreeChart.

    Since:
    1.0.18
    • Constructor Detail

      • ChartViewerSkin

        public ChartViewerSkin(ChartViewer control)
        Creates a new instance.
        Parameters:
        control - the control (null not permitted).
    • Method Detail

      • getRenderingInfo

        public ChartRenderingInfo getRenderingInfo()
        Returns the rendering info from the most recent drawing of the chart.
        Returns:
        The rendering info (possibly null).
        Since:
        1.0.19
      • setChart

        public void setChart(JFreeChart chart)
        Sets the chart displayed by this control.
        Parameters:
        chart - the chart (null not permitted).
      • setTooltipEnabled

        public void setTooltipEnabled(boolean enabled)
      • getZoomFillPaint

        public javafx.scene.paint.Paint getZoomFillPaint()
        Returns the current fill paint for the zoom rectangle.
        Returns:
        The fill paint.
      • setZoomFillPaint

        public void setZoomFillPaint(javafx.scene.paint.Paint paint)
        Sets the fill paint for the zoom rectangle.
        Parameters:
        paint - the new paint.
      • addChartMouseListener

        public void addChartMouseListener(ChartMouseListenerFX listener)
        Registers a listener to receive ChartMouseEvent notifications from the chart viewer.
        Parameters:
        listener - the listener (null not permitted).
      • removeChartMouseListener

        public void removeChartMouseListener(ChartMouseListenerFX listener)
        Removes a listener from the list of objects listening for chart mouse events.
        Parameters:
        listener - the listener.
      • setZoomRectangleVisible

        public void setZoomRectangleVisible(boolean visible)
        Sets the visibility of the zoom rectangle.
        Parameters:
        visible - the new flag value.
      • showZoomRectangle

        public void showZoomRectangle(double x,
                                      double y,
                                      double w,
                                      double h)
        Sets the location and size of the zoom rectangle and makes it visible if it is not already visible.
        Parameters:
        x - the x-coordinate.
        y - the y-coordinate.
        w - the width.
        h - the height.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.