public class ChartViewerSkin extends javafx.scene.control.SkinBase<ChartViewer>
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.
| Constructor and Description |
|---|
ChartViewerSkin(ChartViewer control)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChartMouseListener(ChartMouseListenerFX listener)
Registers a listener to receive
ChartMouseEvent notifications
from the chart viewer. |
ChartRenderingInfo |
getRenderingInfo()
Returns the rendering info from the most recent drawing of the chart.
|
javafx.scene.paint.Paint |
getZoomFillPaint()
Returns the current fill paint for the zoom rectangle.
|
void |
removeChartMouseListener(ChartMouseListenerFX listener)
Removes a listener from the list of objects listening for chart mouse
events.
|
void |
setChart(JFreeChart chart)
Sets the chart displayed by this control.
|
void |
setTooltipEnabled(boolean enabled) |
void |
setZoomFillPaint(javafx.scene.paint.Paint paint)
Sets the fill paint for the zoom rectangle.
|
void |
setZoomRectangleVisible(boolean visible)
Sets the visibility of the zoom rectangle.
|
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.
|
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpacepublic ChartViewerSkin(ChartViewer control)
control - the control (null not permitted).public ChartRenderingInfo getRenderingInfo()
null).public void setChart(JFreeChart chart)
chart - the chart (null not permitted).public void setTooltipEnabled(boolean enabled)
public javafx.scene.paint.Paint getZoomFillPaint()
public void setZoomFillPaint(javafx.scene.paint.Paint paint)
paint - the new paint.public void addChartMouseListener(ChartMouseListenerFX listener)
ChartMouseEvent notifications
from the chart viewer.listener - the listener (null not permitted).public void removeChartMouseListener(ChartMouseListenerFX listener)
listener - the listener.public void setZoomRectangleVisible(boolean visible)
visible - the new flag value.public void showZoomRectangle(double x, double y, double w, double h)
x - the x-coordinate.y - the y-coordinate.w - the width.h - the height.