java.lang.Object
de.grogra.graph.Attribute<T>
de.grogra.graph.ObjectAttribute<T>
- All Implemented Interfaces:
Described
,KeyDescription
,Comparable
- Direct Known Subclasses:
Matrix3dAttribute
,Matrix3fAttribute
,Matrix4dAttribute
,Matrix4fAttribute
,ObjectTreeAttribute
,ParentAttribute
,StringAttribute
,Tuple2dAttribute
,Tuple2fAttribute
,Tuple3dAttribute
,Tuple3fAttribute
,Tuple4dAttribute
,Tuple4fAttribute
,VolumeAttribute
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class de.grogra.graph.Attribute
ATTRIBUTE_0, attrType, quantity
Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE
-
Constructor Summary
ConstructorsConstructorDescriptionObjectAttribute
(Type type, boolean convert, Quantity quantity) ObjectAttribute
(Class<T> type, boolean convert, Quantity quantity) -
Method Summary
Modifier and TypeMethodDescriptionfinal T
get
(Object o, boolean asNode, GraphState gs) Returns the value of this attribute for the given object in the given graph state.protected T
getDerived
(Object object, boolean asNode, T placeIn, GraphState gs) final T
set
(Object o, boolean asNode, Object value, GraphState gs) Sets the value of this attribute for the givenobject
to the givenvalue
protected T
setDerived
(Object object, boolean asNode, T value, GraphState gs) setObject
(Object object, boolean asNode, T value, GraphState gs) setSubfield
(Object object, boolean asNode, FieldChain field, int[] indices, Object value, GraphState gs) Methods inherited from class de.grogra.graph.Attribute
compareTo, find, forName, getAttributeState, getDescription, getId, getKey, getQuantity, getSimpleName, getType, hashCode, initializeI18N, initializeName, isContained, isDerived, isWritable, setAttributeState, toArray, toString
-
Constructor Details
-
ObjectAttribute
-
ObjectAttribute
-
-
Method Details
-
valueOf
-
toType
-
getDerived
-
setSubfield
public Object setSubfield(Object object, boolean asNode, FieldChain field, int[] indices, Object value, GraphState gs) -
get
Description copied from class:Attribute
Returns the value of this attribute for the given object in the given graph state. If necessary, the value is wrapped in one of the standard wrapper classes. -
set
Description copied from class:Attribute
Sets the value of this attribute for the givenobject
to the givenvalue
-
setObject
-
setDerived
-