You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Andrei Pozolotin <an...@gmail.com> on 2013/03/01 14:44:58 UTC
Re: pivot + webkit?
this is really depressing, man! :-)
but wait, there are
javafx.embed.swing.*
javafx.embed.swt.*
embedder packages there, like the one which embeds FX into SWING example
https://github.com/barchart/barchart-pivot-javafx/blob/master/src/test/java/bench/demo2/SwingFXWebView.java
how they deal with the impedance mismatch?
-------- Original Message --------
Subject: Re: pivot + webkit?
From: Greg Brown <gk...@verizon.net>
To: Andrei Pozolotin <an...@gmail.com>
Cc: user@pivot.apache.org
Date: Thu 28 Feb 2013 11:49:55 AM CST
> Possibly. But even if the source code becomes public, the APIs may not be.
>
> Also, don't underestimate the "impedance mismatch" between the FX and Java2D rendering models. There is not a nice 1:1 mapping between the immediate mode style of Java2D and other similar APIs and the retained/multiple thread model used by JavaFX.
>
> On Feb 28, 2013, at 12:46 PM, Andrei Pozolotin <an...@gmail.com> wrote:
>
>> there seems to be a promise here that all of prism will be public, or am I misreading this
>> http://fxexperience.com/2013/02/february-open-source-update/
>>
>> -------- Original Message --------
>> Subject: Re: pivot + webkit?
>> From: Greg Brown <gk...@verizon.net>
>> To: Andrei Pozolotin <an...@gmail.com>
>> Cc: user@pivot.apache.org
>> Date: Thu 28 Feb 2013 10:28:20 AM CST
>>> JWebPane might be helpful if it existed, but unfortunately that work was turned into the JavaFX WebView which relies on Prism (private JavaFX API).
>>>
>>> On Feb 28, 2013, at 11:23 AM, Andrei Pozolotin
>>> <an...@gmail.com>
>>> wrote:
>>>
>>>
>>>> webkit for java2d:
>>>>
>>>> http://fxexperience.com/2012/04/interview-with-peter-zhelezniakov/
>>>> https://blogs.oracle.com/geertjan/entry/waiting_for_jwebpane
>>>>
>>>>
>>>> -------- Original Message --------
>>>> Subject: Re: pivot + webkit?
>>>> From: Greg Brown
>>>> <gk...@verizon.net>
>>>>
>>>> To: Andrei Pozolotin
>>>> <an...@gmail.com>
>>>>
>>>> Cc:
>>>> user@pivot.apache.org
>>>>
>>>> Date: Thu 28 Feb 2013 09:26:47 AM CST
>>>>
>>>>>> 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?
>>>>>>
>>>>>>
>>>>> I don't think so. The JavaFX port of WebKit is enormous and complex - not an easy thing to work with. Also, I think many of those APIs are hidden.
>>>>>
>>>>> You might be better off porting WebKit to Java2D yourself (maybe someone else has tried this?).
>>>>>
>>>>>
>>>>>
>>>>>
>
Re: pivot + webkit?
Posted by Greg Brown <gk...@verizon.net>.
I think they use OpenGL to provide a drawing surface for Prism, but I'm not 100% sure.
On Mar 1, 2013, at 8:44 AM, Andrei Pozolotin <an...@gmail.com> wrote:
> this is really depressing, man! :-)
>
> but wait, there are
>
> javafx.embed.swing.*
>
>
> javafx.embed.swt.*
>
>
>
> embedder packages there, like the one which embeds FX into SWING example
> https://github.com/barchart/barchart-pivot-javafx/blob/master/src/test/java/bench/demo2/SwingFXWebView.java
>
>
>
> how they deal with the impedance mismatch?
>
>
>
>
>
>
> -------- Original Message --------
> Subject: Re: pivot + webkit?
> From: Greg Brown <gk...@verizon.net>
> To: Andrei Pozolotin <an...@gmail.com>
> Cc: user@pivot.apache.org
> Date: Thu 28 Feb 2013 11:49:55 AM CST
>> Possibly. But even if the source code becomes public, the APIs may not be.
>>
>> Also, don't underestimate the "impedance mismatch" between the FX and Java2D rendering models. There is not a nice 1:1 mapping between the immediate mode style of Java2D and other similar APIs and the retained/multiple thread model used by JavaFX.
>>
>> On Feb 28, 2013, at 12:46 PM, Andrei Pozolotin
>> <an...@gmail.com>
>> wrote:
>>
>>
>>> there seems to be a promise here that all of prism will be public, or am I misreading this
>>>
>>> http://fxexperience.com/2013/02/february-open-source-update/
>>>
>>>
>>> -------- Original Message --------
>>> Subject: Re: pivot + webkit?
>>> From: Greg Brown
>>> <gk...@verizon.net>
>>>
>>> To: Andrei Pozolotin
>>> <an...@gmail.com>
>>>
>>> Cc:
>>> user@pivot.apache.org
>>>
>>> Date: Thu 28 Feb 2013 10:28:20 AM CST
>>>
>>>> JWebPane might be helpful if it existed, but unfortunately that work was turned into the JavaFX WebView which relies on Prism (private JavaFX API).
>>>>
>>>> On Feb 28, 2013, at 11:23 AM, Andrei Pozolotin
>>>>
>>>> <an...@gmail.com>
>>>>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>> webkit for java2d:
>>>>>
>>>>>
>>>>> http://fxexperience.com/2012/04/interview-with-peter-zhelezniakov/
>>>>> https://blogs.oracle.com/geertjan/entry/waiting_for_jwebpane
>>>>>
>>>>>
>>>>>
>>>>> -------- Original Message --------
>>>>> Subject: Re: pivot + webkit?
>>>>> From: Greg Brown
>>>>>
>>>>> <gk...@verizon.net>
>>>>>
>>>>>
>>>>> To: Andrei Pozolotin
>>>>>
>>>>> <an...@gmail.com>
>>>>>
>>>>>
>>>>> Cc:
>>>>>
>>>>> user@pivot.apache.org
>>>>>
>>>>>
>>>>> Date: Thu 28 Feb 2013 09:26:47 AM CST
>>>>>
>>>>>
>>>>>>> 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?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> I don't think so. The JavaFX port of WebKit is enormous and complex - not an easy thing to work with. Also, I think many of those APIs are hidden.
>>>>>>
>>>>>> You might be better off porting WebKit to Java2D yourself (maybe someone else has tried this?).
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>
>