Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Search after filtering

Help
strubby
2013-09-25
2013-10-01
  • strubby
    strubby
    2013-09-25

    hi, prefusians,
    I have used GraphDistanceFilter and SearchTupleSet in my projects. My problem is as follows:
    When I used the two above together, there will be a problem which is not what I hope to see.
    When I first use GraphDistanceFilter, some visual items(some node and edges) will be disappear(not visible) according to the method PrefuseLib.setVisible() in GraphDistanceFilter. After this i will search the attributes of the items in the graph, but I find the searched items is also for the whole graph, but not the visible items.
    How can i slove this problem?
    I really appreciate your concentration. Thx.
    My email: strubby@sina.com

     
  • Björn Kruse
    Björn Kruse
    2013-10-01

    Hi,

    it shouldn't be too hard to modify the search in your SearchTupleSet to just add those tuples to the tupleset (via addInternal()) that are currently visible.

    Maybe you need to create your own CustomSearchTupleSet class (extend SearchTupleSet and/or copy the source of the SearchTupleSet you currently use).

    hope that helps,
    Björn