|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.filters.spi.FilterProperty
public final class FilterProperty
Properties for filters. All editable properties of a filter must be used
through this class, especially setting value should be done by using
setValue(java.lang.Object)
.
The role of this class is to define filter's properties in order value changes can be tracked by the system, UI can be generated and values correctly saved in projects file.
Field Summary | |
---|---|
protected Filter |
filter
|
protected PropertySupport.Reflection |
property
|
protected PropertyExecutor |
propertyExecutor
|
Method Summary | |
---|---|
static FilterProperty |
createProperty(Filter filter,
java.lang.Class valueType,
java.lang.String fieldName)
Create a property. |
static FilterProperty |
createProperty(Filter filter,
java.lang.Class valueType,
java.lang.String propertyName,
java.lang.String getMethod,
java.lang.String setMethod)
Create a property. |
Filter |
getFilter()
Returns the filter instance this property is associated to. |
java.lang.String |
getName()
Returns property's name |
java.beans.PropertyEditor |
getPropertyEditor()
Returns the PropertyEditor associated to the property value. |
java.lang.Object |
getValue()
Returns property's value, can be null |
java.lang.Class |
getValueType()
Returns the property's value type. |
void |
setPropertyEditorClass(java.lang.Class<? extends java.beans.PropertyEditor> clazz)
Sets the property editor class. |
void |
setValue(java.lang.Object value)
Set property's value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PropertySupport.Reflection property
protected Filter filter
protected PropertyExecutor propertyExecutor
Method Detail |
---|
public java.lang.String getName()
public java.lang.Object getValue()
null
public void setValue(java.lang.Object value)
value
must match with this
property value type.
value
- the value that is to be setpublic java.beans.PropertyEditor getPropertyEditor()
PropertyEditor
associated to the property value.
public void setPropertyEditorClass(java.lang.Class<? extends java.beans.PropertyEditor> clazz)
PropertyEditor
.
clazz
- the property editor classpublic java.lang.Class getValueType()
public Filter getFilter()
public static FilterProperty createProperty(Filter filter, java.lang.Class valueType, java.lang.String propertyName, java.lang.String getMethod, java.lang.String setMethod) throws java.lang.NoSuchMethodException
filter
- The filter instancevalueType
- The type of the property value, ex: Double.class
propertyName
- The display name of the propertygetMethod
- The name of the get method for this property, must exist
to make Java reflexion working.setMethod
- The name of the set method for this property, must exist
to make Java reflexion working.
java.lang.NoSuchMethodException
- if the getter or setter methods cannot be foundpublic static FilterProperty createProperty(Filter filter, java.lang.Class valueType, java.lang.String fieldName) throws java.lang.NoSuchMethodException
filter
- The filter instancevalueType
- The type of the property value, ex: Double.class
fieldName
- The Java field name of the property
java.lang.NoSuchMethodException
- if the getter or setter methods cannot be found
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |