T
- The generic type of this AbstractVisualPropertyEditor.public abstract class AbstractVisualPropertyEditor<T> extends Object implements VisualPropertyEditor<T>
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 |
---|---|
protected TableCellRenderer |
discreteTableCellRenderer
The cell renderer for discrete mappings.
|
protected PropertyEditor |
propertyEditor
The property editor.
|
Constructor and Description |
---|
AbstractVisualPropertyEditor(Class<T> type,
PropertyEditor propertyEditor,
ContinuousEditorType continuousEditorType,
ContinuousMappingCellRendererFactory cellRendererFactory)
Creates a new AbstractVisualPropertyEditor object.
|
Modifier and Type | Method and Description |
---|---|
ContinuousEditorType |
getContinuousEditorType()
Returns type of Continuous Editor.
|
TableCellRenderer |
getContinuousTableCellRenderer(ContinuousMappingEditor<? extends Number,T> continuousMappingEditor)
A custom cell renderer for Continuous table cells.
|
Icon |
getDefaultIcon(int width,
int height)
This is for default view editor.
|
TableCellRenderer |
getDiscreteTableCellRenderer()
A custom cell renderer for Discrete table cells.
|
PropertyEditor |
getPropertyEditor()
Returns
PropertyEditor object for this data type. |
Class<T> |
getType()
Returns the type of object managed in the Visual property.
|
protected final PropertyEditor propertyEditor
protected TableCellRenderer discreteTableCellRenderer
public AbstractVisualPropertyEditor(Class<T> type, PropertyEditor propertyEditor, ContinuousEditorType continuousEditorType, ContinuousMappingCellRendererFactory cellRendererFactory)
type
- The type of this property editor.propertyEditor
- the PropertyEditor
to construct this with.continuousEditorType
- the ContinuousEditorType
to construct this with.public Class<T> getType()
VisualPropertyEditor
getType
in interface VisualPropertyEditor<T>
public PropertyEditor getPropertyEditor()
VisualPropertyEditor
PropertyEditor
object for this data type.getPropertyEditor
in interface VisualPropertyEditor<T>
PropertyEditor
object for this data type.public TableCellRenderer getDiscreteTableCellRenderer()
VisualPropertyEditor
getDiscreteTableCellRenderer
in interface VisualPropertyEditor<T>
public TableCellRenderer getContinuousTableCellRenderer(ContinuousMappingEditor<? extends Number,T> continuousMappingEditor)
VisualPropertyEditor
getContinuousTableCellRenderer
in interface VisualPropertyEditor<T>
public ContinuousEditorType getContinuousEditorType()
VisualPropertyEditor
getContinuousEditorType
in interface VisualPropertyEditor<T>
ContinuousMappingEditor
public Icon getDefaultIcon(int width, int height)
VisualPropertyEditor
getDefaultIcon
in interface VisualPropertyEditor<T>
width
- The width of the desired Icon.height
- The height of the desired Icon.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.