Implementing a page-like EditPart [message #161158] |
Thu, 09 December 2004 18:26  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.32131 seconds