org.topbraidcomposer.gef.snapshots
Class AbstractSnapshot

java.lang.Object
  extended by org.topbraidcomposer.gef.snapshots.AbstractSnapshot
All Implemented Interfaces:
ISnapshot
Direct Known Subclasses:
DiagramSnapshot

public abstract class AbstractSnapshot
extends java.lang.Object
implements ISnapshot


Constructor Summary
protected AbstractSnapshot(java.lang.String name)
           
protected AbstractSnapshot(java.lang.String name, com.hp.hpl.jena.rdf.model.Resource selectedResource)
           
 
Method Summary
 void dispose()
           
 com.hp.hpl.jena.rdf.model.Resource getSelectedResource()
          Identifies the resource that was selected when the snapshot was created, so that it can be restored.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.topbraidcomposer.gef.snapshots.ISnapshot
restore
 

Constructor Detail

AbstractSnapshot

protected AbstractSnapshot(java.lang.String name)

AbstractSnapshot

protected AbstractSnapshot(java.lang.String name,
                           com.hp.hpl.jena.rdf.model.Resource selectedResource)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface ISnapshot

getSelectedResource

public com.hp.hpl.jena.rdf.model.Resource getSelectedResource()
Description copied from interface: ISnapshot
Identifies the resource that was selected when the snapshot was created, so that it can be restored.

Specified by:
getSelectedResource in interface ISnapshot
Returns:
the selected resource

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object