|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.view.vizmap.gui.editor.AbstractVisualPropertyEditor<T>
T - The generic type of this AbstractVisualPropertyEditor.public abstract class AbstractVisualPropertyEditor<T>
Abstract implementation of Visual Property Editor. All editors should extend this class.
| Field Summary | |
|---|---|
protected TableCellRenderer |
discreteTableCellRenderer
The cell renderer for discrete mappings. |
protected PropertyEditor |
propertyEditor
The property editor. |
| Constructor Summary | |
|---|---|
AbstractVisualPropertyEditor(Class<T> type,
PropertyEditor propertyEditor,
ContinuousEditorType continuousEditorType,
ContinuousMappingCellRendererFactory cellRendererFactory)
Creates a new AbstractVisualPropertyEditor object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PropertyEditor propertyEditor
protected TableCellRenderer discreteTableCellRenderer
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public Class<T> getType()
VisualPropertyEditor
getType in interface VisualPropertyEditor<T>public PropertyEditor getPropertyEditor()
VisualPropertyEditorPropertyEditor 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.
|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||