Bug 213057 - Layout filter does not expose the necessary API
Summary: Layout filter does not expose the necessary API
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Zest (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-14 15:14 EST by Ian Bull CLA
Modified: 2015-01-22 02:43 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Bull CLA 2007-12-14 15:14:54 EST
When using a layout filter, it is important to get the GraphNode or GraphConnection, however, in Zest the actual layout node / arc are anonymous inner classes.  We need to expose a way to get the node / connection in the filter.
Comment 1 Ian Bull CLA 2008-01-11 20:46:16 EST
Inside a layoutFilter you can now say item.getGraphData to get the actual graphnode or graphconnection.

See GraphSnippet8 for an example of this.
Comment 2 Michelle Tadmor CLA 2008-04-01 11:59:08 EDT
the data should be exposed from InternalNode aswell (just by implementing getGraphData() which currently just returns "null". 
currently when implementing a custom layout algorith the actual data is hidden.
Comment 3 Ian Bull CLA 2008-04-01 12:03:52 EDT
Reopening to investigate
Comment 4 Alexander Nyßen CLA 2015-01-22 02:43:57 EST
Re-assigning back to inbox, as Ian is no longer active committer.