V
- type of verticesE
- type of edgesAG
- type of associated graphAV
- type of vertices in the associated graphAE
- type of edges in the associated graphpublic abstract class AbstractDerivedGraph<V,E extends Edge<V>,AG extends Graph<AV,AE>,AV,AE extends Edge<AV>> extends AbstractGraph<V,E> implements GraphAssociation<AG,AV,AE>, GraphListener<AG>
Modifier and Type | Field and Description |
---|---|
protected AG |
associatedGraph |
protected String |
associatedID |
attributes, graphAnnotation, graphName, ZIP_PREFIX
Constructor and Description |
---|
AbstractDerivedGraph(GraphFactory factory) |
Modifier and Type | Method and Description |
---|---|
AG |
getAssociatedGraph()
Given access to the graph that has been associated to the current graph
|
String |
getAssociatedGraphID() |
GraphEventCascade |
graphChanged(Graph g,
GraphChangeType type,
Object data) |
protected abstract boolean |
isAssociationValid(Graph<?,?> graph)
test if a graph can be associated with this one.
|
void |
setAssociatedGraph(AG associated_graph)
Associate the given graph to the current one
|
void |
setAssociatedGraphID(String value)
set the path to the associated graph.
|
addEdge, addNode, addViewListener, containsEdge, containsNode, copyView, damage, doMerge, doSave, fireGraphChange, fireMetaChange, getAnnotation, getAttributes, getCachedEdgeAttributeReader, getCachedNodeAttributeReader, getDimension, getDisplayName, getEdge, getEdgeAttributeReader, getEdges, getExistingNode, getGINMLWriter, getGraphName, getGraphZipName, getIncomingEdges, getNodeAttributeReader, getNodeByName, getNodeCount, getNodeOrderSize, getNodes, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, getStyleManager, getSubgraph, isEmpty, merge, refresh, removeEdge, removeNode, repaint, save, save, searchNodes, setAttribute, setGraphName
protected String associatedID
public AbstractDerivedGraph(GraphFactory factory)
public void setAssociatedGraph(AG associated_graph)
setAssociatedGraph
in interface GraphAssociation<AG extends Graph<AV,AE>,AV,AE extends Edge<AV>>
associated_graph
- public AG getAssociatedGraph() throws GsException
GraphAssociation
getAssociatedGraph
in interface GraphAssociation<AG extends Graph<AV,AE>,AV,AE extends Edge<AV>>
GsException
public String getAssociatedGraphID() throws GsException
getAssociatedGraphID
in interface GraphAssociation<AG extends Graph<AV,AE>,AV,AE extends Edge<AV>>
GsException
protected abstract boolean isAssociationValid(Graph<?,?> graph)
graph
- public void setAssociatedGraphID(String value)
setAssociatedGraphID
in interface GraphAssociation<AG extends Graph<AV,AE>,AV,AE extends Edge<AV>>
value
- public GraphEventCascade graphChanged(Graph g, GraphChangeType type, Object data)
graphChanged
in interface GraphListener<AG extends Graph<AV,AE>>
Copyright © 2005–2020. All rights reserved.