venice
Class ImportGXLCommand

java.lang.Object
  |
  +--venice.Command
        |
        +--venice.ImportGXLCommand
Direct Known Subclasses:
ImportGXLFileCommand, ImportGXLURLCommand

public abstract class ImportGXLCommand
extends Command

Abstract superclass for different GXL model importing classes Performs loading a GXL model file from an inputstream which is returned by getInputStream() If the user commits to this action then the request is forwarded to the current ModelStorage and CreateVisualizationTreeCommand.

Author:
Petteri Kamppuri, Hannu Laurila

Fields inherited from class venice.Command
stAppModule
 
Constructor Summary
ImportGXLCommand()
           
 
Method Summary
 void execute()
          Loads the GXL to model storage and then issues CreateVisualizationTreeCommand to create the visual representation of the model.
protected abstract  java.io.InputStream getInputStream()
          Prompts user for a GXL file location and opens it for reading.
 
Methods inherited from class venice.Command
getAppModule, setAppModule
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ImportGXLCommand

public ImportGXLCommand()
Method Detail

getInputStream

protected abstract java.io.InputStream getInputStream()
Prompts user for a GXL file location and opens it for reading. Returns null if operation is canceled or open fails.

execute

public void execute()
Loads the GXL to model storage and then issues CreateVisualizationTreeCommand to create the visual representation of the model.
Overrides:
execute in class Command