Interface VisualPropertyEditor2<T>
-
- Type Parameters:
T
- Type of object managed in the Visual Prop.
public interface VisualPropertyEditor2<T>
If you are writing aVisualPropertyEditor
but need to know the visual property you are editing (eg to check if the user inputted a value in the visual property's range), implement this interface in addition toVisualPropertyEditor
. Only export your implementation in OSGi asVisualPropertyEditor
, not asVisualPropertyEditor2
. TheEditorManager
should detect if yourVisualPropertyEditor
implementation implements this interface and callgetPropertyEditor
with the visual property.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>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertyEditor
getPropertyEditor(VisualProperty<T> vizProp)
ReturnsPropertyEditor
object for this data type.
-
-
-
Method Detail
-
getPropertyEditor
PropertyEditor getPropertyEditor(VisualProperty<T> vizProp)
ReturnsPropertyEditor
object for this data type.- Returns:
PropertyEditor
object for this data type.
-
-