|
Re: why is AbstractGeomerty not public? [message #1750636 is a reply to message #1750383] |
Fri, 23 December 2016 14:26   |
|
Hi Shenwei,
you can utilize the JavaFX layout panes HBox and VBox to place multiple JavaFX nodes in the same row or column. In order to display a geometry, you can either represent it using JavaFX shapes, or wrap it in a GeometryNode. Besides, GEF Geometry does not provide any layout computations, but only geometry abstractions and calculation methods. Moreover, you actually can use the BoxLayoutAlgorithm by computing a layout model for the geometries, applying the box layout, and transferring the positions and sizes back from the layout model to the geometries. Additionally, you can also write your own layout algorithm without needing to subclass AbstractGeometry.
Nevertheless, I am unsure why AbstractGeometry is not public. The class AbstractRectangleBasedGeometry is the only one declared public out of the abstract geometry classes. We should probably expose all of them. Would you please open a Bugzilla ticket to keep track of the issue?
Best regards,
Matthias
|
|
|
|
Powered by
FUDForum. Page generated in 0.01299 seconds