|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.port.AbstractPortObject
org.knime.core.node.port.image.ImagePortObject
public class ImagePortObject
Port object representing a simple image (png, ...).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObject |
|---|
PortObject.PortObjectSerializer<T extends PortObject> |
| Field Summary | |
|---|---|
static PortType |
TYPE
Convenience accessor for the port type. |
| Constructor Summary | |
|---|---|
ImagePortObject()
Empty framework constructor. |
|
ImagePortObject(ImageContent content,
ImagePortObjectSpec spec)
Create new port object based on the given arguments. |
|
| Method Summary | |
|---|---|
ImagePortObjectSpec |
getSpec()
Get specification to this port object. |
String |
getSummary()
Get a short summary of this PortObject. |
JComponent[] |
getViews()
The returned views are displayed in the out port view of the referring node. |
protected void |
load(PortObjectZipInputStream in,
PortObjectSpec spec,
ExecutionMonitor exec)
Loads the content into the freshly instantiated object. |
protected void |
save(PortObjectZipOutputStream out,
ExecutionMonitor exec)
Saves this object to an output stream. |
DataCell |
toDataCell()
Produces a single data cell containing the image. |
| Methods inherited from class org.knime.core.node.port.AbstractPortObject |
|---|
getPortObjectSerializer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PortType TYPE
| Constructor Detail |
|---|
public ImagePortObject()
public ImagePortObject(ImageContent content,
ImagePortObjectSpec spec)
ImageContent.toImageCell() method must be
compatible to all DataValue of the spec's
ImagePortObjectSpec.getDataType() return value.
content - The image content.spec - The spec.
NullPointerException - If either argument is null.| Method Detail |
|---|
public DataCell toDataCell()
ImagePortObject(ImageContent, ImagePortObjectSpec)
constructor.
ImageContent.toImageCell()public String getSummary()
PortObject.
The return value will be shown in a node port's tooltip, for instance.
public ImagePortObjectSpec getSpec()
PortObjectSpec which is used to configure any successor node
after execution, e.g. a BufferedDataTable can return a
DataTableSpec.
Subclasses should narrow the return type if possible.
PortObjectSpec or any derived spec,
never null.public JComponent[] getViews()
protected void load(PortObjectZipInputStream in,
PortObjectSpec spec,
ExecutionMonitor exec)
throws IOException,
CanceledExecutionException
load in class AbstractPortObjectin - To restore fromspec - The accompanying spec (which can be safely cast to the
expected class).exec - For progress/cancelation.
IOException - If reading fails.
CanceledExecutionException - If canceled.
protected void save(PortObjectZipOutputStream out,
ExecutionMonitor exec)
throws IOException,
CanceledExecutionException
#savePortObject(PortObject, PortObjectZipOutputStream,
ExecutionMonitor).
save in class AbstractPortObjectout - A clean directory to write to.exec - For progress/cancelation.
IOException - If writing fails
CanceledExecutionException - If canceled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||