thank you for detailed answer.

our issue at hand is to have webkit in pivot.

I am curious if we go "level down" (almost JNI)
and try to talk to the underlying webkit wrapper for javafx,
would it be easier to integrate in pivot?

-------- Original Message --------
Subject: Re: pivot + webkit?
From: Greg Brown <[email protected]>
To: Andrei Pozolotin <[email protected]>
Cc: [email protected]
Date: Thu 28 Feb 2013 08:32:09 AM CST
> The rendering models are completely different. Pivot uses immediate mode 
> rendering (i.e. "paint" calls) and JavaFX uses retained mode (the scene 
> graph). Way down under the hood, JavaFX translates the scene graph to 
> immediate mode calls, but this is done using non-public APIs. Also, JavaFX 
> uses a multi-threaded rendering approach whereas all Pivot rendering happens 
> on a single thread (the EDT).
>
> It may be possible to render Pivot using JavaFX's new Canvas support, but 
> that would most likely involve creating a graphics wrapper API that would 
> either draw to Java2D or Canvas. This would require some extensive changes to 
> the Pivot API. Even if this was possible, there would undoubtedly be issues 
> mapping Pivot's user input model to JavaFX's.
>
> In other words, it would probably be a very time-consuming (and likely 
> futile) effort.
>
>
> On Feb 28, 2013, at 9:23 AM, Andrei Pozolotin <[email protected]> 
> wrote:
>
>> re: "Hosting Pivot within JavaFX or vice versa is likely to be difficult. "  
>> - what is the underlying reason for that?
>>
>> -------- Original Message --------
>> Subject: Re: pivot + webkit?
>> From: Greg Brown <[email protected]>
>> To: [email protected]
>> Date: Thu 28 Feb 2013 08:00:02 AM CST
>>> Hosting Pivot within JavaFX or vice versa is likely to be difficult. 
>>> However, since it is possible to embed both Pivot and JavaFX in a Swing 
>>> app, maybe you could create a thin Swing app to host both.
>>>
>>> Another option might be to host Pivot within an SWT app and use the SWT 
>>> browser widget for your web content. I don't believe it is possible to run 
>>> Pivot within SWT at the moment, but I believe that should be easier to do 
>>> than combining Pivot with JavaFX.
>>>
>>>
>>> On Feb 28, 2013, at 8:50 AM, Andrei Pozolotin 
>>> <[email protected]>
>>>  wrote:
>>>
>>>
>>>> Sandro:
>>>>
>>>> here is series of examples I found so far, towards having webkit in pivot:
>>>>
>>>> basic javafx browser
>>>>
>>>> https://github.com/barchart/barchart-pivot-javafx/tree/master/src/test/java/bench/demo1
>>>>
>>>>
>>>> javafx browser embedded in swing panel
>>>>
>>>> https://github.com/barchart/barchart-pivot-javafx/tree/master/src/test/java/bench/demo2
>>>>
>>>>
>>>> javafx browser embedded in AWT panel
>>>>
>>>> https://github.com/barchart/barchart-pivot-javafx/tree/master/src/test/java/bench/demo3
>>>>
>>>>
>>>> pivot components embedded in swing
>>>>
>>>> https://github.com/barchart/barchart-pivot-javafx/tree/master/src/test/java/bench/demo4
>>>>
>>>>
>>>> I am still not sure what is the right way to have webkit next to or inside 
>>>> the pivot components.
>>>>
>>>> What would be your advice?
>>>>
>>>> Thank you, 
>>>>
>>>> Andrei
>>>> -------- Original Message --------
>>>> Subject: Re: pivot + webkit?
>>>> From: Sandro Martini 
>>>> <[email protected]>
>>>>
>>>> To: 
>>>> [email protected]
>>>>
>>>> Date: Tue 26 Feb 2013 06:57:44 AM CST
>>>>
>>>>> Hi Andrei,
>>>>>
>>>>>
>>>>>
>>>>>> I am curious if anyone has experience / example
>>>>>> how to use pivot with webkit which comes with java 7 / javafx JRE
>>>>>> on linux/macosx/windows?
>>>>>>
>>>>>>
>>>>>>
>>>>> I'm sorry but I haven't ... maybe others have at least do some 
>>>>> tests/prototypes.
>>>>>
>>>>> For 2.1 I just updated our requirements to Java 7 (in jira), and I'm
>>>>> really thinking if start to change the backend graphics to use JavaFX
>>>>> base classes (or maybe in a next release), at least to be able to use
>>>>> some goodies they have (like WebKit).
>>>>>
>>>>> But maybe if there is a simpler way we could start to use it directly
>>>>> ... so really, if someone has suggestions/tests/other, tell us.
>>>>>
>>>>> Bye,
>>>>> Sandro
>>>>>
>>>>>
>>>>>
>

Reply via email to