Interface IAnnotationSystem
- All Known Subinterfaces:
IPlottingSystem<T>,IPlottingSystemViewer<T>
- All Known Implementing Classes:
AbstractHyperPlotViewer,AbstractPlottingSystem,ArpesSlicePlotViewer,DatasetTablePlotViewer,HyperPlotViewer,IPlottingSystemViewer.Stub,JRealityPlotViewer,LightWeightPlotViewer,PlottingSystemImpl,ThreadSafePlottingSystem
public interface IAnnotationSystem
No methods in this interface are thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(IAnnotation region) Add an annotation to the graph.voidRemove all annotationscreateAnnotation(String name) Creates an annotation.getAnnotation(String name) Get an annotation by name.voidremoveAnnotation(IAnnotation region) Remove an annotation to the graph.voidrenameAnnotation(IAnnotation annotation, String name) Renames the annotation; better than calling setName on the IAnnotation as the collection of annotations is updated properly.
-
Method Details
-
createAnnotation
Creates an annotation. This does not create any user interface for the annotation. You can then call methods on the annotation. Use addAnnotation(...) and removeAnnotation(...) to control if the selection is active on the graph.- Parameters:
name-regionType-- Returns:
- Throws:
Exception- if name exists already.
-
addAnnotation
Add an annotation to the graph.- Parameters:
region-
-
removeAnnotation
Remove an annotation to the graph.- Parameters:
region-
-
getAnnotation
Get an annotation by name.- Parameters:
name-- Returns:
-
clearAnnotations
void clearAnnotations()Remove all annotations -
renameAnnotation
Renames the annotation; better than calling setName on the IAnnotation as the collection of annotations is updated properly. No event will be fired.
-