public class BarChartFXDemo1 extends Application implements ChartMouseListenerFX
| Constructor and Description |
|---|
BarChartFXDemo1() |
| Modifier and Type | Method and Description |
|---|---|
void |
chartMouseClicked(ChartMouseEventFX event)
Write the event to the console, just to illustrate.
|
void |
chartMouseMoved(ChartMouseEventFX event)
Write the event to the console, just to illustrate.
|
private static JFreeChart |
createChart(CategoryDataset dataset)
Creates a sample chart.
|
private static CategoryDataset |
createDataset()
Returns a sample dataset.
|
static void |
main(java.lang.String[] args)
Entry point.
|
void |
start(Stage stage)
Adds a chart viewer to the stage and displays it.
|
private static CategoryDataset createDataset()
private static JFreeChart createChart(CategoryDataset dataset)
dataset - the dataset.public void start(Stage stage)
throws java.lang.Exception
stage - the stage.java.lang.Exception - if something goes wrong.public static void main(java.lang.String[] args)
args - the command line argumentspublic void chartMouseClicked(ChartMouseEventFX event)
chartMouseClicked in interface ChartMouseListenerFXevent - event info.public void chartMouseMoved(ChartMouseEventFX event)
chartMouseMoved in interface ChartMouseListenerFXevent - event info.