Dear Erel,
Wishing to have basic graphical objects like line, circle in the B4J designer. It will facilitate drawing complex diagrams.
Thanks and regards,
EDIT:
Since Scene builder is no longer supported you will have to use the internal designer and rely on the currently available control types. I'm not sure how you can access these specific controls you need any other way, sorry.
Please don't don't promote Scene Builder.
Support for Scene Builder is only kept for backwards compatibility reasons. Many new features and controls will not work properly with scene builder layouts.
I don't recommend developers to use it in new projects.
So how to access shapes and charts types from the internal designer? You forgot to answer his question.
Will there be FXML support in the internal designer or is new JavaFX controls only aimed for native Java customers?
It's not very difficult to use JavaObject to draw a shape on an pane
B4X:
Dim J As JavaObject
Dim CentreX As Double = 60
Dim CentreY As Double = 40
Dim Radius As Double = 60
J.InitializeNewInstance("javafx.scene.shape.Circle",Array As Object (CentreX,CentreY,Radius,fx.Colors.Red))
MainForm.RootPane.AddNode(j,1,1,-1,-1)
The above code draws a small red circle on the RootPane.
Here is a good basic tutorial which cover some of the common fields used.
Most impressive code keirS
But it might be tedious work to draw complex diagrams from hardcording each line.
Maybe you can create a library so it will be easy to just init the control on the form and have values associated to the diagram, similar to that of Excel and VB script? Just an idea.
Nice find KeirS, building a library from this information would not be too difficult, just time consuming.
Although if the aim is to draw complex non interactive diagrams, I would suggest you would be better of using a Canvas. It would be quicker to render and lighter on memory usage for the app.