On May 30, 2014, at 10:55 AM, John Smith <john_sm...@symantec.com> wrote:
> Much of the internal JavaFX implementation is performed subclassing Region > (or Control which is just a Region subclass itself) and overriding > layoutChildren, but I'm not aware of any official documentation on the > subject other than the sparse stuff in the Javadoc - so no real tutorials. > > Maybe try studying some of the JavaFX source which extends Region. > > For example, take a look at Axis: > > https://bitbucket.org/openjfxmirrors/openjfx-8-master-rt/src/tip/modules/controls/src/main/java/javafx/scene/chart/Axis.java > > https://bitbucket.org/openjfxmirrors/openjfx-8-master-rt/src/tip/modules/controls/src/main/java/javafx/scene/chart/CategoryAxis.java > Good call. Axises should be pretty simple. In my search, I stumbled upon the source in grep code (though I know it is available from openjdk) and spent some time looking at HBox and VBox as they are on the simpler side of things. > It would be nice if Oracle or somebody else produced some documentation on > this. You could create a feature request in Jira > (https://javafx-jira.kenai.com) for such documentation or email the > documentation team (javasedocs...@oracle.com), or write a blog or a openjfx > wiki article (https://wiki.openjdk.java.net/display/OpenJFX/Main) if you work > out some good techniques. Never thought about a ticket for docs. Yeah, I plan to blog once I get feel for things.