Skip to main content



      Home
Home » Eclipse Projects » GEF » Implementing a page-like EditPart
Implementing a page-like EditPart [message #161158] Thu, 09 December 2004 18:26 Go to next message
Eclipse UserFriend
Originally posted by: rgould.refractions.net

I am attempting to implement something similar to a 'print preview' that
allows users to layout boxes on a 'page'. My root EditPart thus should
contain a Figure that represents the page itself: A white rectangle on a
grey background, or something similar. Boxes can be moved around on
the page, but not off of it.

I have spent a long time now looking through existing figures/layers
trying to figure out an ideal way to implement this, but I am still lost.

Any one have any useful ideas?

Richard
Re: Implementing a page-like EditPart [message #161417 is a reply to message #161158] Mon, 13 December 2004 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Sounds like you just need to paint a rectangle on the contents' figure. For
constraining boxes, you can do this by disallowing commands which move boxes
off the page, or by constraining the drag amount in the drag tracker, or
clipping the boxes in the ResizableEditPolicies.

"Richard Gould" <rgould@refractions.net> wrote in message
news:cpan42$dfd$1@www.eclipse.org...
> I am attempting to implement something similar to a 'print preview' that
> allows users to layout boxes on a 'page'. My root EditPart thus should
> contain a Figure that represents the page itself: A white rectangle on a
> grey background, or something similar. Boxes can be moved around on
> the page, but not off of it.
>
> I have spent a long time now looking through existing figures/layers
> trying to figure out an ideal way to implement this, but I am still lost.
>
> Any one have any useful ideas?
>
> Richard
Previous Topic:GraphLayoutManager
Next Topic:Disable Arrow Keys
Goto Forum:
  


Current Time: Thu Jul 17 06:07:16 EDT 2025

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

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

Back to the top