public interface EditorManager
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>
Modifier and Type | Field and Description |
---|---|
static String |
EDITOR_WINDOW_CLOSED
Tell vizMapper main which editor is disabled/enabled.
|
static String |
EDITOR_WINDOW_OPENED
Editor window state
|
Modifier and Type | Method and Description |
---|---|
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.
|
<V> ValueEditor<V> |
getValueEditor(Class<V> dataType)
Returns value editor for the given data type.
|
<V> VisualPropertyEditor<V> |
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.
|
<V> V |
showVisualPropertyValueEditor(Component parentComponent,
VisualProperty<V> type,
V initialVal)
Display value editor to get a new value.
|
static final String EDITOR_WINDOW_OPENED
static final String EDITOR_WINDOW_CLOSED
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 metadatavoid 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
VisualPropertyValueEditor
s with matching value types.
If none are found, resort to searching for ValueEditor
s.parentComponent
- parent GUI componenttype
- Visual Property type to be editedinitialVal
- default value for the editor.Exception
PropertyEditor 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 editoreditorName
- name (ID) of editorPropertyEditor 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.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.