com.sodius.mdw.core.model.diagram
Class DiagramTemporaryImage

java.lang.Object
  extended by com.sodius.mdw.core.model.diagram.DiagramFileImage
      extended by com.sodius.mdw.core.model.diagram.DiagramTemporaryImage
All Implemented Interfaces:
DiagramImage

public class DiagramTemporaryImage
extends DiagramFileImage

Temporary file-based diagram image implementation. This implementation delete the image file on dispose().

Clients may instantiate or subclass this class.

Since:
2.1.0

Field Summary
 
Fields inherited from interface com.sodius.mdw.core.model.diagram.DiagramImage
UNKNOWN_SIZE
 
Constructor Summary
DiagramTemporaryImage(File file)
          Creates a new diagram image based on the specified file.
 
Method Summary
 void dispose()
          Delete the temporary file.
 
Methods inherited from class com.sodius.mdw.core.model.diagram.DiagramFileImage
getFile, getHeight, getWidth, openStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramTemporaryImage

public DiagramTemporaryImage(File file)
Creates a new diagram image based on the specified file.

Parameters:
file - the temporary image file.
Method Detail

dispose

public void dispose()
Delete the temporary file.

Specified by:
dispose in interface DiagramImage
Overrides:
dispose in class DiagramFileImage