Pickable Point on JavaFX chart

167 views
Skip to first unread message

Marco Matessi

unread,
May 13, 2016, 12:19:49 PM5/13/16
to Jzy3d
Hello,
I have created a JavaFX chart with some points.

I'd like to select a point with left click on mouse.

This is a simplified part of my code:
@FXML
private Pane chartPane;

JavaFXChartFactory factory = new JavaFXChartFactory();
AWTChart chart = (AWTChart) factory.newChart(Quality.Advanced, Toolkit.offscreen);

Shape shape = new Shape();
PickablePoint point = new PickablePoint(coord3d, Color.BLACK, 10);
shape
.add(point);

ImageView imageView = factory.bindImageView(chart);

chartPane
.getChildren().add(imageView);

I have seen the documentation but I don't understand how set mouse pick event on point.
Now I using the last 1.0.0 snapshot.

Could you help me please?

Thanks

Marco Matessi

unread,
May 13, 2016, 5:15:07 PM5/13/16
to Jzy3d

Martin Pernollet

unread,
May 21, 2016, 3:23:16 AM5/21/16
to Jzy3d

Hi,
Actually there is little work to do but I am on it. JavaFX factory still misses some JavaFX*Controller 


  &
aA



Le 13 mai 2016 à 14:15, Marco Matessi <bas...@gmail.com> a écrit :

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "Jzy3d".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jzy3d+un...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Martin Pernollet

unread,
May 21, 2016, 5:12:53 AM5/21/16
to Jzy3d
Sorry, my son sent this email :)

I just added a JavaFX controller for picking : 


See if you can use it.

Marco Matessi

unread,
May 23, 2016, 10:39:39 AM5/23/16
to Jzy3d
Thanks.
I have replaced this:
AWTMousePickingController<?, ?> mousePicker = new AWTMousePickingController<>(chart, 10);

with:
JavaFXMousePickingController mousePicker = new JavaFXMousePickingController(chart);

but not works.
I don't understand how use it

Marco Matessi

unread,
May 24, 2016, 4:05:06 AM5/24/16
to Jzy3d
I think I've found the problem.
After the creation of
:
JavaFXMousePickingController is required the registration of node

JavaFXMousePickingController mousePicker = new JavaFXMousePickingController(chart, 10);
mousePicker.setNode(imageView);

Marco Matessi

unread,
May 24, 2016, 4:36:02 AM5/24/16
to Jzy3d
Can you recompile the library on maven repository?
Thanks

Martin Pernollet

unread,
May 24, 2016, 4:27:56 PM5/24/16
to jz...@googlegroups.com
That s it!
Reply all
Reply to author
Forward
0 new messages