Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Canvas Support in Rap
Canvas Support in Rap [message #28173] Sun, 27 May 2007 11:56 Go to next message
Eclipse UserFriend
Originally posted by: nindl_go.hotmail.com

Unfortunately Canvas is not supported in RWT and Qooxdoo and has no high
priority in developement now. I am about to start a project, which
requires this essential widget. Therefore I have a central questions:

- How can I extend RWT with Qooxdoo or other third party javascript
libraries?

First, I created a Canvas class in org.eclipse.swt.widgets. Then I
analysed the qooxdoo.jar and guessed that the script/custom.js must
contain the collection of javascript widgets. In between as the logic
there are a lot of javascripts, which define the class and its methods. So:

- What forma must the library have?
- What guidelines do I have to care about, when I want to write a
javascript widget definition?

I would appreciate, if anyone can help me out.

Cheers, Gottfried
Re: Canvas Support in Rap [message #28212 is a reply to message #28173] Mon, 28 May 2007 05:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kendotlarson.mindspring.com

Gottfried:

Does your canvas draw things that are more or less statically displayed
to the user (example: custom drawings using lines, circles, images,
etc)? or does it draw custom controls that are interacted with by the
user via clicking?

I only ask because if the answer is the former, it is possible to
implement this by doing the drawing server-side, and sending an image to
the client. I have some experience getting this to work with GC and
Image/ImageData.

Cheers,

Ken

Gottfried Nindl wrote:
> Unfortunately Canvas is not supported in RWT and Qooxdoo and has no high
> priority in developement now. I am about to start a project, which
> requires this essential widget. Therefore I have a central questions:
>
> - How can I extend RWT with Qooxdoo or other third party javascript
> libraries?
>
> First, I created a Canvas class in org.eclipse.swt.widgets. Then I
> analysed the qooxdoo.jar and guessed that the script/custom.js must
> contain the collection of javascript widgets. In between as the logic
> there are a lot of javascripts, which define the class and its methods. So:
>
> - What forma must the library have?
> - What guidelines do I have to care about, when I want to write a
> javascript widget definition?
>
> I would appreciate, if anyone can help me out.
>
> Cheers, Gottfried
Re: Canvas Support in Rap [message #32879 is a reply to message #28212] Wed, 13 June 2007 10:22 Go to previous message
Eclipse UserFriend
Originally posted by: nindl_go.hotmail.com

Hi Ken,

I would like to draw the image server-side, if this is possible. I just want
to read a large image from a stream and cut parts of it by clipping. How can
I integrate the GC class into my application? The problem is that I have the
same namespaces for the swt and the rwt package. I would be great if you
could send me a snippet. Here is mine:


Image image = Image.find("/resource/test.gif", getClass().getClassLoader());
GC gc = new GC(image);
Rectange rect = new Rectangle(0, 0, 100, 100);
gc.setClipping(rect);
Label label = new Label(getShell(), SWT.NONE);
label.setImage(image);

Do you know a way, how to clip my image?


Thanks, Gottfried

"Ken Larson" <kendotlarson@mindspring.com> schrieb im Newsbeitrag
news:f3dqra$hl2$1@build.eclipse.org...
> Gottfried:
>
> Does your canvas draw things that are more or less statically displayed to
> the user (example: custom drawings using lines, circles, images, etc)? or
> does it draw custom controls that are interacted with by the user via
> clicking?
>
> I only ask because if the answer is the former, it is possible to
> implement this by doing the drawing server-side, and sending an image to
> the client. I have some experience getting this to work with GC and
> Image/ImageData.
>
> Cheers,
>
> Ken
>
> Gottfried Nindl wrote:
>> Unfortunately Canvas is not supported in RWT and Qooxdoo and has no high
>> priority in developement now. I am about to start a project, which
>> requires this essential widget. Therefore I have a central questions:
>>
>> - How can I extend RWT with Qooxdoo or other third party javascript
>> libraries?
>>
>> First, I created a Canvas class in org.eclipse.swt.widgets. Then I
>> analysed the qooxdoo.jar and guessed that the script/custom.js must
>> contain the collection of javascript widgets. In between as the logic
>> there are a lot of javascripts, which define the class and its methods.
>> So:
>>
>> - What forma must the library have?
>> - What guidelines do I have to care about, when I want to write a
>> javascript widget definition?
>>
>> I would appreciate, if anyone can help me out.
>>
>> Cheers, Gottfried
Previous Topic:Problem opening windows
Next Topic:See error logs
Goto Forum:
  


Current Time: Tue Apr 16 21:57:47 GMT 2024

Powered by FUDForum. Page generated in 3.38435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top