Column Diagram Editor [message #185214] |
Thu, 23 June 2005 14:30 |
Josh Reed Messages: 38 Registered: July 2009 |
Member |
|
|
I'm working on a GEF editor and I was looking for some advice from other
GEF developers out there. Here's the situation:
I'm trying to create an editor for a diagram. The diagram is fairly
simple, just a series of columns. The user will be able to change the
width and order of the columns. The model for this diagram will be
persisted on the client's machine.
The columns within the diagram will be populated with data from a
database. The database will return a bunch of data with no mention of
columns. It'll be up to my EditParts to route the various data types to
the appropriate column.
Has anyone done anything similar? I was thinking of adding an "accepts"
key list on each of the column. So then the column can declare 0 or
more data types that it will accept. Then the EditParts for the data
types will just have to walk the list of visible columns and add the
data type figures to the appropriate column based on the accepts key.
Does this seem like a reasonable approach or am I missing something simple?
Thanks,
Josh Reed
|
|
|
Powered by
FUDForum. Page generated in 0.03012 seconds