|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.NodeViewExport
public final class NodeViewExport
This class contains all available to-image-export options for node views.
By default, only the PNG export option is available but customized exporters
can be added by calling the static function
addExportType(org.knime.core.node.NodeViewExport.ExportType)
.
This class is used in a static way, it is not meant to be instantiated.
Nested Class Summary | |
---|---|
static interface |
NodeViewExport.ExportType
Interface for export types. |
Method Summary | |
---|---|
static void |
addExportType(NodeViewExport.ExportType newType)
Adds a singleton export type to the list of available exporters. |
static JMenuItem |
createNewMenu(Container container)
Convenience method that create a menu entry containing all available export options. |
static Map<String,NodeViewExport.ExportType> |
getViewExportMap()
Get a read only map containing pairs of export type identifier (as string) and the export type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addExportType(NodeViewExport.ExportType newType)
This method refuses to add an export type twice (according to
arguments equals()
method).
newType
- The export type to add, all necessary information are
retrieved from the argument, the identifier name is uniquified, if
necessary.
NullPointerException
- If the argument is null.public static Map<String,NodeViewExport.ExportType> getViewExportMap()
createNewMenu(Container)
method for your convenience.
public static JMenuItem createNewMenu(Container container)
getViewExportMap()
) contains only one entry, the returned
menu is a single menu item. Otherwise it's a JMenu
with the
export options as its children.
container
- The container to export when a item is selected.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |