|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.layout.spi.LayoutProperty
public final class LayoutProperty
Properties for layout algorithms that are used by the UI to fill the property sheet and thus allow user edit.
Field Summary | |
---|---|
protected java.lang.String |
category
|
protected Property |
property
|
Method Summary | |
---|---|
static LayoutProperty |
createProperty(Layout layout,
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. |
static LayoutProperty |
createProperty(Layout layout,
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 |
---|
protected Property property
protected java.lang.String category
Method Detail |
---|
public Property getProperty()
Property
.
Node.Property
public java.lang.String getCategory()
public static LayoutProperty createProperty(Layout layout, 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
layout
- The layout instancevalueType
- The type of the property value, ex: Double.class
propertyName
- The display name of the propertypropertyCategory
- A category string or null
for using
default categorypropertyDescription
- A description string for 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 LayoutProperty createProperty(Layout layout, 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
PropertyEditor
. A particular
editor must be specified when the property type don't have a registered
editor class.
layout
- The layout instancevalueType
- The type of the property value, ex: Double.class
propertyName
- The display name of the propertypropertyCategory
- A category string or null
for using
default categorypropertyDescription
- A description string for 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.editorClass
- A PropertyEditor
class for the given type
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 |