Allows us to retrieve and work on the graph. Makes caching data simple
| 41 | * Allows us to retrieve and work on the graph. Makes caching data simple |
| 42 | */ |
| 43 | public interface GraphCutData { |
| 44 | |
| 45 | /** |
| 46 | * The namespace of this data |
| 47 | * @return the namespace |
| 48 | */ |
| 49 | Namespace getNamespace(); |
| 50 | |
| 51 | /** |
| 52 | * The graph of this data |
| 53 | * @return the graph |
| 54 | */ |
| 55 | GraphCutGraph getGraph(); |
| 56 | |
| 57 | /** |
| 58 | * Returns the cache of edges. Not in the graph but used to track existing edges that are not yet in the graph. |
| 59 | * @return |
| 60 | */ |
| 61 | NamespaceEdgeCache getNamespaceEdgeCache(); |
| 62 | |
| 63 | /** |
| 64 | * True if this data has a valid namespace |
| 65 | * @return true if this data has a valid namespace |
| 66 | */ |
| 67 | boolean hasResults(); |
| 68 | |
| 69 | /** |
| 70 | * False if the graph in this data has not yet been loaded |
| 71 | */ |
| 72 | boolean isInitialized(); |
| 73 | |
| 74 | /** |
| 75 | * Dispose the contents of this data |
| 76 | */ |
| 77 | void dispose(); |
| 78 | |
| 79 | /** |
| 80 | * Returns the view's graph perspective. this is used by the view to restore itself. |
| 81 | * @return the view's graph perspective |
| 82 | */ |
| 83 | GraphPerspectiveInfo<GraphCutVertex, GraphCutEdge> getGraphPerspective(); |
| 84 | |
| 85 | /** |
| 86 | * Set the view information for this graph data |
| 87 | * @param info the perspective to set |
| 88 | */ |
| 89 | void setGraphPerspective(GraphPerspectiveInfo<GraphCutVertex, GraphCutEdge> info); |
| 90 | |
| 91 | /** |
| 92 | * Returns true if this data's namespace is equal to the given one |
| 93 | * @param ns the namespace to test |
| 94 | * @return true if this data's namespace is equal to the given one |
| 95 | */ |
| 96 | boolean isNamespace(Namespace ns); |
| 97 | } |
no outgoing calls
no test coverage detected