public class ChartViewerSkin extends 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.
|
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(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.
|
dispose, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, pseudoClassStateChanged
public 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 Paint getZoomFillPaint()
public void setZoomFillPaint(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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics