Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.grinvin.graphs.DefaultGraphBundle
org.grinvin.gred.GraphBundleWithModels
public class GraphBundleWithModels
extends DefaultGraphBundle
GraphBundle
which uses a
DefaultGraphModel
to represent a graph and uses a
DefaultEmbeddingModel
to represent an embedding.
Field Summary |
Fields inherited from class org.grinvin.graphs.DefaultGraphBundle | |
InvariantValue>invariantValues , annotations , embeddings , graph , graphIconFactory , listeners , properties |
Method Summary | |
DefaultAnnotationModel |
|
DefaultEmbeddingModel |
|
DefaultGraphModel |
|
DefaultAnnotationModel |
|
DefaultAnnotationModel |
|
DefaultEmbeddingModel |
|
DefaultEmbeddingModel |
|
DefaultGraphModel |
|
public DefaultAnnotationModel createAnnotation()
This implementation creates an annotation of typeDefaultAnnotationModel
.
- Specified by:
- createAnnotation in interface GraphBundle
- Overrides:
- createAnnotation in interface DefaultGraphBundle
public DefaultEmbeddingModel createEmbedding()
This implementation creates an embedding of typeDefaultEmbeddingModel
.
- Specified by:
- createEmbedding in interface GraphBundle
- Overrides:
- createEmbedding in interface DefaultGraphBundle
public DefaultGraphModel createGraph()
This implementation creates a graph of typeDefaultGraphModel
.
- Specified by:
- createGraph in interface GraphBundle
- Overrides:
- createGraph in interface DefaultGraphBundle
public DefaultAnnotationModel getAnnotation()
Return the default annotation for this graph, ornull
if no such annotation is stored in the bundle. The peer of this annotation is the graph returned byGraphBundleView.getGraph()
.
- Specified by:
- getAnnotation in interface GraphBundleView
- Overrides:
- getAnnotation in interface DefaultGraphBundle
public DefaultAnnotationModel getAnnotation(int index)
Return the annotation with the given index. The peer of this annotation is the graph returned byGraphBundleView.getGraph()
.
- Specified by:
- getAnnotation in interface GraphBundleView
- Overrides:
- getAnnotation in interface DefaultGraphBundle
public DefaultEmbeddingModel getEmbedding()
Return the default embedding for this graph, ornull
if no such embedding is stored in the bundle. The peer of this embedding is the graph returned byGraphBundleView.getGraph()
.
- Specified by:
- getEmbedding in interface GraphBundleView
- Overrides:
- getEmbedding in interface DefaultGraphBundle
public DefaultEmbeddingModel getEmbedding(int index)
Return the embedding with given index. Index 0 corresponds to the default embedding. The peer of this embedding is the graph returned byGraphBundleView.getGraph()
.
- Specified by:
- getEmbedding in interface GraphBundleView
- Overrides:
- getEmbedding in interface DefaultGraphBundle
public DefaultGraphModel getGraph()
Abstract graph representation for this graph bundle.
- Specified by:
- getGraph in interface GraphBundle
- getGraph in interface GraphBundleView
- Overrides:
- getGraph in interface DefaultGraphBundle