Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Paint Figure Option!!!
Paint Figure Option!!! [message #180726] Tue, 10 May 2005 05:35 Go to next message
Eclipse UserFriend
Originally posted by: gautamn.iitk.ac.in

Hi,
I am making a diagram editor using GEF. I want to add a brush in my
palette which can be used to draw some continous lines as it can be done
in mspaint,paintviewer,etc. How can I do it in my editor?? Also I want to
fill colors different figures(rectangle,circle,ellipse) using various
colors. How can I do it using GEF?
Regards,
Nitin Gautam.
Re: Paint Figure Option!!! [message #181045 is a reply to message #180726] Wed, 11 May 2005 23:43 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
You'll have to create your own tools to do this as there are no such
pre-defined tools. "Filling" figures is simple enough because all you have
to do is to make the figure opaque and set its background color. But the
painting brush tool is going to be much more complex. Painting on an Image
displayed using an ImageFigure is perhaps the best way to go.

"Nitin Gautam" <gautamn@iitk.ac.in> wrote in message
news:f616258c1952b9ebaa399b2229eaa0c5$1@www.eclipse.org...
> Hi,
> I am making a diagram editor using GEF. I want to add a brush in my
> palette which can be used to draw some continous lines as it can be done
> in mspaint,paintviewer,etc. How can I do it in my editor?? Also I want to
> fill colors different figures(rectangle,circle,ellipse) using various
> colors. How can I do it using GEF?
> Regards,
> Nitin Gautam.
>
Re: Paint Figure Option!!! [message #181070 is a reply to message #181045] Thu, 12 May 2005 04:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gautamn.iitk.ac.in

Hi,
if I want to add specified color to my different figures and want to
provide user color chooser then what I have to do??
Moreover I want to add pop up windows for various alerts...How to do
it???
Regards,
Nitin Gautam.
Re: Paint Figure Option!!! [message #181093 is a reply to message #181070] Thu, 12 May 2005 13:13 Go to previous message
Eclipse UserFriend
Originally posted by: gslade.no.spam.us.ibm.com

>add specified color to my different figures
As Pratik has already said, set the figure opaque and set its background
color

>provide user color chooser
see org.eclipse.swt.widgets.ColorDialog

>add pop up windows for various alerts
maybe a dialog is what you want to use. See org.eclipse.jface.dialogs.Dialog

Guy

Nitin Gautam wrote:
> Hi,
> if I want to add specified color to my different figures and want to
> provide user color chooser then what I have to do??
> Moreover I want to add pop up windows for various alerts...How to do
> it??? Regards,
> Nitin Gautam.
>
Previous Topic:Mouse Listener Problem
Next Topic:Some Editing properties!!!
Goto Forum:
  


Current Time: Thu Apr 25 08:39:26 GMT 2024

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

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

Back to the top