Copy constructors

Tom Schindl tom.schindl at bestsolution.at
Mon Sep 10 11:32:26 PDT 2012


I think the static load-methods should be deprecated but that's only my
personal opinion ;-)

Tom

Am 10.09.12 20:26, schrieb Greg Brown:
>>>> 1) If I choose to convert from SVG to FXML at runtime I need to make a temporary file for the FXML loader as it doesn't take a DOM or a String as a source.
>>>
>>> Why not just apply your transform at compile time such that only FXML is processed at runtime, rather than both SVG and FXML?
>>
>> That is what I am doing in this case… but support for the other case seems like a minor change.  
> 
> Sure - but converting SVG to FXML is definitely not the most efficient way to load a scene graph from SVG.
> 
>> Why must FXML be loaded from only a URL?  Base on your response to #2, I see it is useful to use the URL as a key to looking up in the cache, but the more generic possibility of FXMLLoader.load(java.io.InputStream) would open a few doors for developers where now they must climb in through the window.
> 
> I'm not sure what you mean by this. FXMLLoader does define a load(InputStream) method. Either way, I don't see how that will help you load an SVG document more efficiently.
> 
> 


-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                 geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
http://www.BestSolution.at                      phone    ++43 512 935834


More information about the openjfx-dev mailing list