|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jhu.ece.iacl.jist.pipeline.PipePort<T>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<java.io.File>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamObject<ImageData>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolume
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamDataLabel
public class ParamDataLabel
Data Label Parameter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile |
|---|
ParamFile.DialogType |
| Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
|---|
PipePort.PortListener, PipePort.type |
| Field Summary | |
|---|---|
protected java.io.File |
labelFile
The label file. |
protected DataLabelCollection |
labels
The labels. |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolume |
|---|
cols, components, rows, slices, volume, voxelType |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamObject |
|---|
obj, readerWriter |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile |
|---|
dialogType, extensionFilter, file, uri |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
|---|
cliTag, description, factory, hidden, label, loadAndSaveOnValidate, mandatory, shortLabel |
| Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
|---|
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire |
| Constructor Summary | |
|---|---|
ParamDataLabel()
Default constructor. |
|
ParamDataLabel(java.lang.String name)
Construct data labels parameter with no restrictions. |
|
ParamDataLabel(java.lang.String name,
VoxelType type)
Construct data label parameter with restriction on voxel type. |
|
ParamDataLabel(java.lang.String name,
VoxelType type,
int rows,
int cols,
int slices,
int components)
Construct new data label the specified restrictions. |
|
ParamDataLabel(VoxelType type)
Default constructor. |
|
ParamDataLabel(VoxelType type,
int rows,
int cols,
int slices,
int components)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
add(DataLabel label)
Add data label to collection. |
ParamDataLabel |
clone()
Clone this object. |
void |
createDefaultLabels()
Create default labels based on volume values. |
DataLabelCollection |
getDataLabels()
Get label collection. |
java.io.File |
getLabelFile()
Get location of label file. |
void |
init()
Initialize parameter. |
void |
openLabelFile()
Open label file and load it into parameter. |
void |
openLabelFile(java.io.File file)
Open the specified label file and load it into the parameter. |
void |
setLabelFile(java.io.File labelFile)
Set the label file location for this parameter. |
void |
setValue(DataLabelCollection value)
The set value method accepts all value types inherited from ParamVolume plus DataLabelCollection. |
void |
setValue(java.io.File value)
Set file location. |
void |
setValue(ImageData value)
Set volume. |
void |
setValue(java.lang.String value)
Set file location. |
java.lang.String |
toString()
Get description. |
void |
validate()
Validate that the data labels exist. |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolume |
|---|
clear, compareTo, dispose, equalVolume, getCols, getComponents, getImageData, getImageData, getName, getObject, getRows, getSlices, getValue, getVoxelType, isCompatible, setObject, setValue, writeAndFreeNow |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamObject |
|---|
getReaderWriter, setFileName, setReaderWriter, writeObject |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile |
|---|
clean, getDialogType, getExtensionFilter, getHumanReadableDataType, getURI, getXMLValue, probeDefaultValue, replacePath, setExtensionFilter, setXMLValue, translatePath |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
|---|
createMipavParameter, createTreeNode, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setMandatory, setName, setOutputView, setShortLabel, toXML, write, write |
| Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
|---|
addListener, disconnect, disconnect, disconnect, disconnect, getGraphPort, getIncomingConnector, getIncomingConnectors, getIncomingPorts, getListeners, getMaxIncoming, getMaxOutgoing, getOutgoingConnector, getOutgoingConnectors, getOutgoingPorts, getOwner, getPortType, isConnected, isConnectedTo, isInputPort, isOutputPort, notifyListenersOfConnection, notifyListenersOfDisconnection, removeAllListeners, removeListener, setConnectable, setGraphPort, setMaxIncoming, setMaxOutgoing, setOwner, setPortType, setUseConnector, usingConnector |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient DataLabelCollection labels
protected java.io.File labelFile
| Constructor Detail |
|---|
public ParamDataLabel()
public ParamDataLabel(java.lang.String name)
name - parameter name
public ParamDataLabel(java.lang.String name,
VoxelType type)
name - parameter nametype - voxel type restriction
public ParamDataLabel(java.lang.String name,
VoxelType type,
int rows,
int cols,
int slices,
int components)
name - parameter nametype - voxel type restrictionrows - rows restrictioncols - columns restrictionslices - slices restrictioncomponents - components restrictionpublic ParamDataLabel(VoxelType type)
type - the type
public ParamDataLabel(VoxelType type,
int rows,
int cols,
int slices,
int components)
type - voxel typerows - rowscols - columnsslices - slicescomponents - components| Method Detail |
|---|
public void add(DataLabel label)
label - the labelpublic ParamDataLabel clone()
clone in class ParamVolumepublic void createDefaultLabels()
public DataLabelCollection getDataLabels()
public java.io.File getLabelFile()
public void init()
init in class ParamVolumepublic void openLabelFile()
public void openLabelFile(java.io.File file)
file - the filepublic void setLabelFile(java.io.File labelFile)
labelFile - the label filepublic void setValue(ImageData value)
setValue in class ParamVolumevalue - the valuepublic void setValue(DataLabelCollection value)
value - parameter valuepublic void setValue(java.io.File value)
setValue in class ParamVolumevalue - the valuepublic void setValue(java.lang.String value)
setValue in class ParamObject<ImageData>value - the valuepublic java.lang.String toString()
toString in class ParamVolume
public void validate()
throws InvalidParameterException
validate in class ParamVolumeInvalidParameterException - parameter does not meet value restriction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||