de.grogra.graph
public class DoubleAttribute extends Attribute<java.lang.Double>
ATTRIBUTE_0, attrType, quantityACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Constructor and Description |
|---|
DoubleAttribute(Quantity quantity) |
DoubleAttribute(Type type,
Quantity quantity) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
get(java.lang.Object o,
boolean asNode,
GraphState gs)
Returns the value of this attribute for the given object in
the given graph state.
|
protected double |
getDerived(java.lang.Object object,
boolean asNode,
GraphState gs) |
double |
getMaxValue() |
double |
getMinValue() |
java.lang.Double |
set(java.lang.Object o,
boolean asNode,
java.lang.Object value,
GraphState gs)
Sets the value of this attribute for the given
object
to the given value |
protected double |
setDerived(java.lang.Object object,
boolean asNode,
double value,
GraphState gs) |
double |
setDouble(java.lang.Object object,
boolean asNode,
double value,
GraphState gs) |
compareTo, find, forName, getAttributeState, getDescription, getId, getKey, getQuantity, getSimpleName, getType, hashCode, initializeI18N, initializeName, isContained, isDerived, isWritable, setAttributeState, toArray, toStringpublic DoubleAttribute(Quantity quantity)
public final java.lang.Double get(java.lang.Object o,
boolean asNode,
GraphState gs)
Attributeprotected double getDerived(java.lang.Object object,
boolean asNode,
GraphState gs)
public double getMaxValue()
public double getMinValue()
public final java.lang.Double set(java.lang.Object o,
boolean asNode,
java.lang.Object value,
GraphState gs)
Attributeobject
to the given valueprotected double setDerived(java.lang.Object object,
boolean asNode,
double value,
GraphState gs)
public double setDouble(java.lang.Object object,
boolean asNode,
double value,
GraphState gs)