de.grogra.graph
public class IntAttribute extends Attribute<java.lang.Integer>
ATTRIBUTE_0, attrType, quantityACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Constructor and Description |
|---|
IntAttribute() |
IntAttribute(Type type) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
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 int |
getDerived(java.lang.Object object,
boolean asNode,
GraphState gs) |
int |
getMaxValue() |
int |
getMinValue() |
java.lang.Integer |
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 int |
setDerived(java.lang.Object object,
boolean asNode,
int value,
GraphState gs) |
int |
setInt(java.lang.Object object,
boolean asNode,
int value,
GraphState gs) |
compareTo, find, forName, getAttributeState, getDescription, getId, getKey, getQuantity, getSimpleName, getType, hashCode, initializeI18N, initializeName, isContained, isDerived, isWritable, setAttributeState, toArray, toStringpublic IntAttribute()
public IntAttribute(Type type)
public final java.lang.Integer get(java.lang.Object o,
boolean asNode,
GraphState gs)
Attributeprotected int getDerived(java.lang.Object object,
boolean asNode,
GraphState gs)
public int getMaxValue()
public int getMinValue()
public final java.lang.Integer set(java.lang.Object o,
boolean asNode,
java.lang.Object value,
GraphState gs)
Attributeobject
to the given valueprotected int setDerived(java.lang.Object object,
boolean asNode,
int value,
GraphState gs)
public int setInt(java.lang.Object object,
boolean asNode,
int value,
GraphState gs)