de.grogra.graph
public abstract class ObjectTreeAttribute<T> extends ObjectAttribute<T>
ObjectAttribute.IdentityAccessorATTRIBUTE_0, attrType, quantityACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Constructor and Description |
|---|
ObjectTreeAttribute(java.lang.Class<T> type,
boolean convert,
Quantity quantity) |
ObjectTreeAttribute(Type type,
boolean convert,
Quantity quantity) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
dependsOn(Attribute[] b) |
protected abstract T |
derive(java.lang.Object object,
boolean asNode,
T parentValue,
T placeIn,
GraphState gs) |
protected T |
getDerived(java.lang.Object object,
boolean asNode,
T placeIn,
GraphState gs) |
protected abstract T |
getInitialValue(GraphState gs) |
protected ObjectAttribute |
getParentAttribute(GraphState gs) |
T |
getParentValue(java.lang.Object object,
boolean asNode,
T placeIn,
GraphState gs) |
boolean |
isDerived()
Determines whether this is a derived attribute or not.
|
get, set, setDerived, setObject, setSubfield, toType, valueOfcompareTo, find, forName, getAttributeState, getDescription, getId, getKey, getQuantity, getSimpleName, getType, hashCode, initializeI18N, initializeName, isContained, isWritable, setAttributeState, toArray, toStringpublic ObjectTreeAttribute(java.lang.Class<T> type, boolean convert, Quantity quantity)
public abstract boolean dependsOn(Attribute[] b)
protected abstract T derive(java.lang.Object object, boolean asNode, T parentValue, T placeIn, GraphState gs)
protected T getDerived(java.lang.Object object, boolean asNode, T placeIn, GraphState gs)
getDerived in class ObjectAttribute<T>protected abstract T getInitialValue(GraphState gs)
protected ObjectAttribute getParentAttribute(GraphState gs)
public T getParentValue(java.lang.Object object, boolean asNode, T placeIn, GraphState gs)