Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Fixed Size Editor
Fixed Size Editor [message #243906] Wed, 25 June 2008 13:53 Go to next message
Eclipse UserFriend
Originally posted by: tdeverdiere-n0spam.n0spAm-scort.com

Hello,
i want to create a fixed sized editor, and the other parts of the editor
must be with white background whereas the editor area should be gray or
dark.
Actually i should draw a screen of 24 rows and 80 columns where the user
of the editor can put some text inside .. It could be an editor for a
telnet screen for example. So the editor part should be the size of the
screen ... the screen background is gray, and i'd like to have a grid
(24x80) :)

Thanks for your help,
Thomas
Re: Fixed Size Editor [message #243911 is a reply to message #243906] Wed, 25 June 2008 18:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shady_86.sify.com

1) you will have to make the viewer non scrollable...
see configureGraphicalViewer() of graphical editor

2) check the figure you have made for your root edit part..,
Re: Fixed Size Editor [message #243931 is a reply to message #243911] Thu, 26 June 2008 11:54 Go to previous message
Eclipse UserFriend
Originally posted by: tdeverdiere-n0spam.n0spAm-scort.com

sharad a écrit :
> 1) you will have to make the viewer non scrollable...
> see configureGraphicalViewer() of graphical editor
>
> 2) check the figure you have made for your root edit part..,

Thank you sharad,

1. Ok so i can use the GraphicalViewerImpl directly instead of the
ScrollingGraphicalViewer .. but then i cannot user the 'rulers' which
need a ScrollingGraphicalViewer.
However i have to reimplement RulerComposite because i need to have a
specific unit : rows and columns (replacing cm or inches)


2. I succeed to create a figure of 24 rows x 80 columns, but i also need
the grid to be fixed size (or to look as fixed sized), so i think i need
to write a RootEditPart, to create a screen layer and a grid layer (not
freeform ..). Here is the hierarchy of layer i will use (based on the
ScalableRootEditPart) :


Root Layered Pane
-- Guide Layer
-- Feedback Layer (??? is this still used ?)
-- Handle Layer
-- Scalable Layers
-- Scaled Feedback Layer
-- Printable Layers
-- Connection Layer
-- Primary Layer
-- Grid Layer
-- Screen Layer (drawing the fixed size screen)

what do you think ?
In fact i don't need the scalable feature but ... why not :)
Previous Topic:Creating an image from GraphicalEditor in headless enviroment
Next Topic:part not updating properly
Goto Forum:
  


Current Time: Tue Mar 19 07:22:07 GMT 2024

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

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

Back to the top