|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EditorManager
Manages all editor objects for the VizMap GUI.
Module: vizmap-gui-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>vizmap-gui-api</artifactId>
</dependency>| Field Summary | |
|---|---|
static String |
EDITOR_WINDOW_CLOSED
Tell vizMapper main which editor is disabled/enabled. |
static String |
EDITOR_WINDOW_OPENED
Editor window state |
| Method Summary | ||
|---|---|---|
void |
addValueEditor(ValueEditor<?> va,
Map properties)
Add value editor OSGi services. |
|
void |
addVisualPropertyValueEditor(VisualPropertyValueEditor<?> va,
Map properties)
Add value editor--invoked by OSGi when a new bundle exports an instance. |
|
Collection<PropertyEditor> |
getAttributeSelectors()
Returns set of selector for available attributes (table columns). |
|
List<PropertyEditor> |
getCellEditors()
Returns editors for individual cells in discrete mapping editor. |
|
PropertyEditor |
getContinuousEditor(VisualProperty<?> vp)
Returns the continuous editor for the specified visual property. |
|
PropertyEditor |
getDataTableComboBoxEditor(Class<? extends CyIdentifiable> targetObjectType)
Attribute selector for the given table entry type. |
|
PropertyEditor |
getDefaultComboBoxEditor(String editorName)
Get JComboBox type editor |
|
PropertyEditor |
getMappingFunctionSelector()
Returns selector for Mapping Type. |
|
|
getValueEditor(Class<V> dataType)
Returns value editor for the given data type. |
|
|
getVisualPropertyEditor(VisualProperty<V> vp)
Returns the VisualPropertyEditor for the given VisualProperty. |
|
void |
removeValueEditor(ValueEditor<?> va,
Map properties)
Remove an editor from manager (through OSGi). |
|
void |
removeVisualPropertyValueEditor(VisualPropertyValueEditor<?> va,
Map properties)
Remove an editor from manager--invoked by OSGi when a bundle that exports an instance is being unloaded. |
|
|
showVisualPropertyValueEditor(Component parentComponent,
VisualProperty<V> type,
V initialVal)
Display value editor to get a new value. |
|
| Field Detail |
|---|
static final String EDITOR_WINDOW_OPENED
static final String EDITOR_WINDOW_CLOSED
| Method Detail |
|---|
void addValueEditor(ValueEditor<?> va,
Map properties)
va - New value editor to be added.properties - OSGi service metadata.
void removeValueEditor(ValueEditor<?> va,
Map properties)
va - editor to be removed.properties - OSGi metadata
void addVisualPropertyValueEditor(VisualPropertyValueEditor<?> va,
Map properties)
va - New value editor to be added.properties - OSGi service metadata.
void removeVisualPropertyValueEditor(VisualPropertyValueEditor<?> va,
Map properties)
va - editor to be removed.properties - OSGi metadata
<V> V showVisualPropertyValueEditor(Component parentComponent,
VisualProperty<V> type,
V initialVal)
throws Exception
VisualPropertyValueEditors with matching value types.
If none are found, resort to searching for ValueEditors.
parentComponent - parent GUI componenttype - Visual Property type to be editedinitialVal - default value for the editor.
ExceptionPropertyEditor getContinuousEditor(VisualProperty<?> vp)
vp - The visual property.
<V> VisualPropertyEditor<V> getVisualPropertyEditor(VisualProperty<V> vp)
VisualPropertyEditor for the given VisualProperty.
V - the generic type of the VisualProperty.vp - the VisualProperty to get the VisualPropertyEditor of.
VisualPropertyEditor for the given VisualProperty.List<PropertyEditor> getCellEditors()
Collection<PropertyEditor> getAttributeSelectors()
PropertyEditor getMappingFunctionSelector()
PropertyEditor getDefaultComboBoxEditor(String editorName)
JComboBox type editor
editorName - name (ID) of editor
PropertyEditor getDataTableComboBoxEditor(Class<? extends CyIdentifiable> targetObjectType)
targetObjectType - node, edge, or network.
<V> ValueEditor<V> getValueEditor(Class<V> dataType)
dataType - type of data. They are Color, number, Shape, etc.
|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||