Cytoscape 3.0.1 API

org.cytoscape.view.vizmap.gui.editor
Interface ValueEditor<V>

Type Parameters:
V - target data type for this editor.

public interface ValueEditor<V>

Provides a GUI Editor for a data type. To support new data type, this should be implemented.


Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.

Method Summary
 Class<V> getValueType()
          Get type of the value to be edited.
<S extends V>
V
showEditor(Component parent, S initialValue)
          Display the editor and get a new value.
 

Method Detail

showEditor

<S extends V> V showEditor(Component parent,
                           S initialValue)
Display the editor and get a new value.

Parameters:
parent - the parent Component of this editor.
initialValue - the initial value for the value editor dialogue.
Returns:
the value generated from the value editor dialogue or null.

getValueType

Class<V> getValueType()
Get type of the value to be edited.

Returns:
the type of value returned by the value editor.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.