Skip to main content



      Home
Home » Eclipse Projects » GEF » edit part figures
edit part figures [message #54341] Mon, 13 January 2003 10:47 Go to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

Hi!

What do the GEF experts suggest to use as edit part figures? Currently I
simply use icons but I want to change this to a better GEF conforming way
because I want to profit from zoom and print support. My icon figures are
printed as black boxes.

Any suggestions?

Thanks, Gunnar

PS: Is there a document on how print/zoom support works / will work? (e.g:
How to hide figures that should not be printed.)
Re: edit part figures [message #54422 is a reply to message #54341] Mon, 13 January 2003 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: noone.ibm.com

> What do the GEF experts suggest to use as edit part figures? Currently I
> simply use icons but I want to change this to a better GEF conforming way
> because I want to profit from zoom and print support. My icon figures are
> printed as black boxes.

The Figures in the Logic Example have recently been redone so they take
advantage of zoom support. Check out AndGateFigure, OrGateFigure, LEDFigure,
etc. These used to use icons, but now implement the paintFigure(Graphics)
method. This makes the figures look much nicer when zooming.

> PS: Is there a document on how print/zoom support works / will work? (e.g:
> How to hide figures that should not be printed.)

No documents as of yet. There are two examples in
org.eclipse.draw2d.examples entitled PrintExample and ZoomExample that show
the basics.
Re: edit part figures [message #54450 is a reply to message #54422] Mon, 13 January 2003 14:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

"Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
news:avv127$sg8$1@rogue.oti.com...

> No documents as of yet. There are two examples in
> org.eclipse.draw2d.examples entitled PrintExample and ZoomExample that
show
> the basics.

I noticed that printing in GEF works through an additional layer. Is that
right? So if I don't want the root diagram edit part to be printed do I have
to put in on another layer?

Cu, Gunnar
Re: edit part figures [message #54476 is a reply to message #54450] Mon, 13 January 2003 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: noone.ibm.com

Right. The layers that will be printed are the layers which have been added
with the PRINTABLE_LAYERS constraint. See ScalableFreeformRootEditPart, this
is the root edit part used by the Logic Example. In its createLayers()
method it adds the primary layer and the connection layer as the printable
layers.


"Gunnar Wagenknecht" <g.wagenknecht@planet-wagenknecht.de> wrote in message
news:avv4aj$uu1$1@rogue.oti.com...
>
> "Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
> news:avv127$sg8$1@rogue.oti.com...
>
> > No documents as of yet. There are two examples in
> > org.eclipse.draw2d.examples entitled PrintExample and ZoomExample that
> show
> > the basics.
>
> I noticed that printing in GEF works through an additional layer. Is that
> right? So if I don't want the root diagram edit part to be printed do I
have
> to put in on another layer?
>
> Cu, Gunnar
>
>
Re: edit part figures [message #54503 is a reply to message #54422] Mon, 13 January 2003 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Hi!

"Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
news:avv127$sg8$1@rogue.oti.com...

> No documents as of yet. There are two examples in
> org.eclipse.draw2d.examples entitled PrintExample and ZoomExample that
show
> the basics.

I looked through the ZoomExample. Will there be a generic GEF implementation
with something like zoom actions (like the alignment actions)?

Cu, Gunnar
Re: edit part figures [message #54529 is a reply to message #54422] Mon, 13 January 2003 16:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Hi!

"Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
news:avv127$sg8$1@rogue.oti.com...

> The Figures in the Logic Example have recently been redone so they take
> advantage of zoom support. Check out AndGateFigure, OrGateFigure,
LEDFigure,
> etc. These used to use icons, but now implement the paintFigure(Graphics)
> method. This makes the figures look much nicer when zooming.

How are colors managed? I noticed different colors for AndGateFigure and
OrGateFigure but it doesn't look like that #paintFigure handel color
management. Where is it implemented?

Thanks, Gunnar
Re: edit part figures [message #54556 is a reply to message #54529] Mon, 13 January 2003 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: noone.ibm.com

The gate colors are set in their constructors via a
setBackgroundColor(Color) call. You can also manage colors by calls to
Graphics.setForegroundColor(Color) and Graphics.setBackgroundColor(Color)
within the paintFigure method. The background color will be used on fills,
the foreground color will be used on draws.

"Gunnar Wagenknecht" <g.wagenknecht@planet-wagenknecht.de> wrote in message
news:avv8hm$3b1$1@rogue.oti.com...
> Hi!
>
> "Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
> news:avv127$sg8$1@rogue.oti.com...
>
> > The Figures in the Logic Example have recently been redone so they take
> > advantage of zoom support. Check out AndGateFigure, OrGateFigure,
> LEDFigure,
> > etc. These used to use icons, but now implement the
paintFigure(Graphics)
> > method. This makes the figures look much nicer when zooming.
>
> How are colors managed? I noticed different colors for AndGateFigure and
> OrGateFigure but it doesn't look like that #paintFigure handel color
> management. Where is it implemented?
>
> Thanks, Gunnar
>
>
Re: edit part figures [message #54582 is a reply to message #54503] Mon, 13 January 2003 16:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: noone.ibm.com

Yes, we are currently working on this and will put it into the logic
example.
"Gunnar Wagenknecht" <g.wagenknecht@planet-wagenknecht.de> wrote in message
news:avv6te$24j$1@rogue.oti.com...
> Hi!
>
> "Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
> news:avv127$sg8$1@rogue.oti.com...
>
> > No documents as of yet. There are two examples in
> > org.eclipse.draw2d.examples entitled PrintExample and ZoomExample that
> show
> > the basics.
>
> I looked through the ZoomExample. Will there be a generic GEF
implementation
> with something like zoom actions (like the alignment actions)?
>
> Cu, Gunnar
>
>
Re: edit part figures [message #54689 is a reply to message #54476] Tue, 14 January 2003 02:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

"Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
news:avv5fg$10p$1@rogue.oti.com...
> Right. The layers that will be printed are the layers which have been
added
> with the PRINTABLE_LAYERS constraint. See ScalableFreeformRootEditPart,
this
> is the root edit part used by the Logic Example. In its createLayers()
> method it adds the primary layer and the connection layer as the printable
> layers.

Thanks Dan for your answers!

Cu, Gunnar
Re: edit part figures [message #58773 is a reply to message #54689] Tue, 28 January 2003 15:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

"Gunnar Wagenknecht" <g.wagenknecht@intershop.de> wrote in message
news:b00di3$mu5$1@rogue.oti.com...
> "Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
> news:avv5fg$10p$1@rogue.oti.com...
> > Right. The layers that will be printed are the layers which have been
> added
> > with the PRINTABLE_LAYERS constraint. See ScalableFreeformRootEditPart,
> this

To clarify, ONE layer is added with the PRINTABLE_LAYERS ID. This layer is
actually a LayeredPane containing the PRIMARY and CONNECTION layers.

> > is the root edit part used by the Logic Example. In its createLayers()
> > method it adds the primary layer and the connection layer as the
printable
> > layers.
>
> Thanks Dan for your answers!
>
> Cu, Gunnar
>
>
Re: edit part figures [message #58797 is a reply to message #54529] Tue, 28 January 2003 15:21 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

We do not dispose Colors, if this is what you are asking.

GEF uses mostly System colors, so there is no reason to dispose them. The
Logic example uses a couple of more colors, but they are statically defined
and will remain in memory until you shutdown Eclipse.

"Gunnar Wagenknecht" <g.wagenknecht@planet-wagenknecht.de> wrote in message
news:avv8hm$3b1$1@rogue.oti.com...
> Hi!
>
> "Dan Lee" <noone@ibm.com> schrieb im Newsbeitrag
> news:avv127$sg8$1@rogue.oti.com...
>
> > The Figures in the Logic Example have recently been redone so they take
> > advantage of zoom support. Check out AndGateFigure, OrGateFigure,
> LEDFigure,
> > etc. These used to use icons, but now implement the
paintFigure(Graphics)
> > method. This makes the figures look much nicer when zooming.
>
> How are colors managed? I noticed different colors for AndGateFigure and
> OrGateFigure but it doesn't look like that #paintFigure handel color
> management. Where is it implemented?
>
> Thanks, Gunnar
>
>
Previous Topic:Zooming Rectangles
Next Topic:BendpointEditPolicy bug
Goto Forum:
  


Current Time: Tue Jul 15 05:09:44 EDT 2025

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

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

Back to the top