org.topbraidcomposer.gef.diagram.snapshots
Class DiagramSnapshots

java.lang.Object
  extended by org.topbraidcomposer.gef.diagram.snapshots.DiagramSnapshots
All Implemented Interfaces:
IGraphRegistryListener, IIOParticipant

public class DiagramSnapshots
extends java.lang.Object
implements IGraphRegistryListener, IIOParticipant


Constructor Summary
DiagramSnapshots()
           
 
Method Summary
static void addSnapshot(ISnapshot snapshot)
           
static java.util.List getSnapshots(com.hp.hpl.jena.rdf.model.Model baseModel)
           
 void graphDirtyStateChanged(java.net.URI uri)
           
 void graphRegistered(java.net.URI uri)
           
 void graphSaved(ISession session, com.hp.hpl.jena.rdf.model.Model model)
          Called after a model has been saved from within a given session.
 void graphSourceChanged(java.net.URI uri, java.lang.Object oldSource)
           
 void graphUnregistered(java.net.URI uri, com.hp.hpl.jena.graph.Graph graph, java.lang.Object source)
           
static void removeSnapshot(ISnapshot snapshot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramSnapshots

public DiagramSnapshots()
Method Detail

addSnapshot

public static void addSnapshot(ISnapshot snapshot)

getSnapshots

public static java.util.List getSnapshots(com.hp.hpl.jena.rdf.model.Model baseModel)

graphDirtyStateChanged

public void graphDirtyStateChanged(java.net.URI uri)
Specified by:
graphDirtyStateChanged in interface IGraphRegistryListener

graphRegistered

public void graphRegistered(java.net.URI uri)
Specified by:
graphRegistered in interface IGraphRegistryListener

graphSourceChanged

public void graphSourceChanged(java.net.URI uri,
                               java.lang.Object oldSource)
Specified by:
graphSourceChanged in interface IGraphRegistryListener

graphUnregistered

public void graphUnregistered(java.net.URI uri,
                              com.hp.hpl.jena.graph.Graph graph,
                              java.lang.Object source)
Specified by:
graphUnregistered in interface IGraphRegistryListener

graphSaved

public void graphSaved(ISession session,
                       com.hp.hpl.jena.rdf.model.Model model)
Description copied from interface: IIOParticipant
Called after a model has been saved from within a given session. Plug-ins can use this call to save depending files etc.

Specified by:
graphSaved in interface IIOParticipant
Parameters:
session - the ISession that saved the model
model - the Model that was saved

removeSnapshot

public static void removeSnapshot(ISnapshot snapshot)