[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: use of view objects within GEF - in short how does one use them?
|
GEF is not part of the eclipse project... so this isn't the right forum for
GEF questions.
"Honda Bhyat" <honda.bhyat@xxxxxxxxxxxxxxxxx> wrote in message
news:9avt6a$iud$1@xxxxxxxxxxxxxxxx
> More information - I am going through the Websphere Studio Workbench:
> Graphical Editing Framework Resource Guide (the section on the graph
> viewer and defining view objects for the graph viewer). In this section,
> there are references to the department example and a EmployeeViewObject as
> well as a EmployeeViewGraphObject (the last one is in the VA repository -
> I assume that both entries refer to this). There's also a section on
> JHotDraw figures and how to create them using the createFigure method. Is
> this the same createFigure method as in the View Object? How does one tie
> in a graphic to the JHotDraw figure? The only code in the createFigure
> method is the following:
>
> protected IFigure createFigure() {
> FrameBorder frameBorder = new FrameBorder();
> frameBorder.setHighContrast(true);
> IFigure f = new LabeledContainer(frameBorder);
> f.setBackgroundColor(RGBConstants.lightGray);
> return f;
> }
>
> Which creates a frame and sets the background color. There is also
> references to ContainerFigure objects in the text, and that all GEF
> figures must be ContainerFigure objects. I have searched the repository,
> but cannot find any ContainerFigure objects, neither can I find the
> EmployeeFigure or DepartmentFigure classes used as examples of JHotDraw
> figure classes. The documentation refers me to the Department example
> (com.ibm.etools.gef.examples.department.viewobject package). However the
> only thing in there are the viewobjects and the input policies.
>
> Please help - I am stuck on how to manipulate the graphical view, and
> manipulate the graphics on it. The documentation is at odds with the
> example provided.
>
>