Gephi Toolkit Javadoc

org.gephi.preview.api
Class SupervisorPropery

java.lang.Object
  extended by org.gephi.preview.api.SupervisorPropery

public final class SupervisorPropery
extends java.lang.Object

Author:
Mathieu Bastian

Field Summary
protected  java.lang.String category
           
protected  Property property
           
 
Method Summary
static SupervisorPropery createProperty(Supervisor supervisor, java.lang.Class valueType, java.lang.String propertyName, java.lang.String propertyCategory, java.lang.String propertyDescription)
          Create a property.
static SupervisorPropery createProperty(Supervisor supervisor, java.lang.Class valueType, java.lang.String propertyName, java.lang.String propertyCategory, java.lang.String propertyDescription, java.lang.Class<? extends java.beans.PropertyEditor> editorClass)
          Create a property, with a particular PropertyEditor.
static SupervisorPropery createProperty(Supervisor supervisor, java.lang.Class valueType, java.lang.String propertyName, java.lang.String propertyCategory, java.lang.String propertyDescription, java.lang.String getMethod, java.lang.String setMethod)
          Create a property, with a particular PropertyEditor.
static SupervisorPropery createProperty(Supervisor supervisor, java.lang.Class valueType, java.lang.String propertyName, java.lang.String propertyCategory, java.lang.String propertyDescription, java.lang.String getMethod, java.lang.String setMethod, java.lang.Class<? extends java.beans.PropertyEditor> editorClass)
          Create a property, with a particular PropertyEditor.
 java.lang.String getCategory()
          Return the category of the property
 Property getProperty()
          Return the underlying Property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

property

protected Property property

category

protected java.lang.String category
Method Detail

getProperty

public Property getProperty()
Return the underlying Property.

Returns:
the instance of Node.Property

getCategory

public java.lang.String getCategory()
Return the category of the property


createProperty

public static SupervisorPropery createProperty(Supervisor supervisor,
                                               java.lang.Class valueType,
                                               java.lang.String propertyName,
                                               java.lang.String propertyCategory,
                                               java.lang.String propertyDescription)
                                        throws java.lang.NoSuchMethodException
Create a property.

Parameters:
supervisor - The supervisor instance
valueType - The type of the property value, ex: Double.class
propertyName - The display name of the property
propertyCategory - A category string or null for using default category
propertyDescription - A description string for the property
Returns:
the created property
Throws:
java.lang.NoSuchMethodException - if the getter or setter methods cannot be found

createProperty

public static SupervisorPropery createProperty(Supervisor supervisor,
                                               java.lang.Class valueType,
                                               java.lang.String propertyName,
                                               java.lang.String propertyCategory,
                                               java.lang.String propertyDescription,
                                               java.lang.String getMethod,
                                               java.lang.String setMethod)
                                        throws java.lang.NoSuchMethodException
Create a property, with a particular PropertyEditor. A particular editor must be specified when the property type don't have a registered editor class.

Parameters:
supervisor - The supervisor instance
valueType - The type of the property value, ex: Double.class
propertyName - The display name of the property
propertyCategory - A category string or null for using default category
propertyDescription - A description string for the property
getMethod - the get method name
setMethod - the set method name
Returns:
the created property
Throws:
java.lang.NoSuchMethodException - if the getter or setter methods cannot be found

createProperty

public static SupervisorPropery createProperty(Supervisor supervisor,
                                               java.lang.Class valueType,
                                               java.lang.String propertyName,
                                               java.lang.String propertyCategory,
                                               java.lang.String propertyDescription,
                                               java.lang.Class<? extends java.beans.PropertyEditor> editorClass)
                                        throws java.lang.NoSuchMethodException
Create a property, with a particular PropertyEditor. A particular editor must be specified when the property type don't have a registered editor class.

Parameters:
supervisor - The supervisor instance
valueType - The type of the property value, ex: Double.class
propertyName - The display name of the property
propertyCategory - A category string or null for using default category
propertyDescription - A description string for the property
editorClass - A PropertyEditor class for the given type
Returns:
the created property
Throws:
java.lang.NoSuchMethodException - if the getter or setter methods cannot be found

createProperty

public static SupervisorPropery createProperty(Supervisor supervisor,
                                               java.lang.Class valueType,
                                               java.lang.String propertyName,
                                               java.lang.String propertyCategory,
                                               java.lang.String propertyDescription,
                                               java.lang.String getMethod,
                                               java.lang.String setMethod,
                                               java.lang.Class<? extends java.beans.PropertyEditor> editorClass)
                                        throws java.lang.NoSuchMethodException
Create a property, with a particular PropertyEditor. A particular editor must be specified when the property type don't have a registered editor class.

Parameters:
supervisor - The supervisor instance
valueType - The type of the property value, ex: Double.class
propertyName - The display name of the property
propertyCategory - A category string or null for using default category
propertyDescription - A description string for the property
editorClass - A PropertyEditor class for the given type
getMethod - the get method name
setMethod - the set method name
Returns:
the created property
Throws:
java.lang.NoSuchMethodException - if the getter or setter methods cannot be found

Gephi Toolkit Javadoc