edu.jhu.ece.iacl.jist.pipeline.factory
Class ParamDataLabelFactory

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.factory.ParamFactory
      extended by edu.jhu.ece.iacl.jist.pipeline.factory.ParamFileFactory
          extended by edu.jhu.ece.iacl.jist.pipeline.factory.ParamVolumeFactory
              extended by edu.jhu.ece.iacl.jist.pipeline.factory.ParamDataLabelFactory

public class ParamDataLabelFactory
extends ParamVolumeFactory

Data Label Factory.

Author:
Blake Lucas

Field Summary
protected  DataLabelCollection resourceData
          The resource data.
protected  ImageData resourceVolume
          The resource volume.
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.factory.ParamFactory
inputView, outputView
 
Constructor Summary
ParamDataLabelFactory(ParamDataLabel param)
          Instantiates a new param data label factory.
 
Method Summary
 ParamInputView getInputView()
          Get parameter input view.
 ParamOutputView getOutputView()
          Get parameter output view.
 ParamDataLabel getParameter()
          Get factory's parameter.
 boolean importParameter(ParamModel foreign)
          Import model image and label file location from foreign parameter.
 boolean loadResources(ParamModel foreign, javax.swing.ProgressMonitor monitor)
          Load label file from file specified in foreign parameter.
 boolean saveResources(java.io.File dir, boolean overRidesubDirectory)
          Save both the Model Image and label file to specified directory The label file is saved with extension .label
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.factory.ParamVolumeFactory
equals
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.factory.ParamFileFactory
createMipavParameter, importMipavParameter
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.factory.ParamFactory
createTreeNode, decodeName, decodeValue, encodeName, encodeValue, fromXML, fromXML, isCompatible, read, read, setInputView, setOutputView, toXML, write, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceData

protected DataLabelCollection resourceData
The resource data.


resourceVolume

protected ImageData resourceVolume
The resource volume.

Constructor Detail

ParamDataLabelFactory

public ParamDataLabelFactory(ParamDataLabel param)
Instantiates a new param data label factory.

Parameters:
param - the param
Method Detail

getInputView

public ParamInputView getInputView()
Description copied from class: ParamFileFactory
Get parameter input view.

Overrides:
getInputView in class ParamVolumeFactory
Returns:
input view

getOutputView

public ParamOutputView getOutputView()
Description copied from class: ParamFileFactory
Get parameter output view.

Overrides:
getOutputView in class ParamVolumeFactory
Returns:
output view

getParameter

public ParamDataLabel getParameter()
Description copied from class: ParamFileFactory
Get factory's parameter.

Overrides:
getParameter in class ParamVolumeFactory
Returns:
file parameter

importParameter

public boolean importParameter(ParamModel foreign)
Import model image and label file location from foreign parameter.

Overrides:
importParameter in class ParamFactory
Parameters:
foreign - foreign parameter
Returns:
parameter imported correctly

loadResources

public boolean loadResources(ParamModel foreign,
                             javax.swing.ProgressMonitor monitor)
Load label file from file specified in foreign parameter.

Overrides:
loadResources in class ParamVolumeFactory
Parameters:
foreign - foreign parameter
monitor - the monitor
Returns:
external resources loaded correctly

saveResources

public boolean saveResources(java.io.File dir,
                             boolean overRidesubDirectory)
Save both the Model Image and label file to specified directory The label file is saved with extension .label

Overrides:
saveResources in class ParamVolumeFactory
Parameters:
dir - save directory
Returns:
resources saved correctly