org.jfree.chart.fx
Class ChartViewerSkin
- java.lang.Object
-
- javafx.scene.control.SkinBase<ChartViewer>
-
- org.jfree.chart.fx.ChartViewerSkin
-
- All Implemented Interfaces:
- javafx.scene.control.Skin<ChartViewer>
public class ChartViewerSkin extends javafx.scene.control.SkinBase<ChartViewer>
A default skin for theChartViewercontrol.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 Summary
Constructors Constructor and Description ChartViewerSkin(ChartViewer control)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddChartMouseListener(ChartMouseListenerFX listener)Registers a listener to receiveChartMouseEventnotifications from the chart viewer.ChartRenderingInfogetRenderingInfo()Returns the rendering info from the most recent drawing of the chart.javafx.scene.paint.PaintgetZoomFillPaint()Returns the current fill paint for the zoom rectangle.voidremoveChartMouseListener(ChartMouseListenerFX listener)Removes a listener from the list of objects listening for chart mouse events.voidsetChart(JFreeChart chart)Sets the chart displayed by this control.voidsetTooltipEnabled(boolean enabled)voidsetZoomFillPaint(javafx.scene.paint.Paint paint)Sets the fill paint for the zoom rectangle.voidsetZoomRectangleVisible(boolean visible)Sets the visibility of the zoom rectangle.voidshowZoomRectangle(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.
-
-
-
Constructor Detail
-
ChartViewerSkin
public ChartViewerSkin(ChartViewer control)
Creates a new instance.- Parameters:
control- the control (nullnot 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 (nullnot 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 receiveChartMouseEventnotifications from the chart viewer.- Parameters:
listener- the listener (nullnot 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