de.grogra.graph
Class FloatAttribute

java.lang.Object
  extended by de.grogra.graph.Attribute<java.lang.Float>
      extended by de.grogra.graph.FloatAttribute
All Implemented Interfaces:
Described, KeyDescription, java.lang.Comparable
Direct Known Subclasses:
FloatTreeAttribute

public class FloatAttribute
extends Attribute<java.lang.Float>


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
FloatAttribute(Quantity quantity)
           
FloatAttribute(Type type, Quantity quantity)
           
 
Method Summary
 java.lang.Float 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  float getDerived(java.lang.Object object, boolean asNode, GraphState gs)
           
 float getMaxValue()
           
 float getMinValue()
           
 java.lang.Float 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  float setDerived(java.lang.Object object, boolean asNode, float value, GraphState gs)
           
 float setFloat(java.lang.Object object, boolean asNode, float 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatAttribute

public FloatAttribute(Quantity quantity)

FloatAttribute

public FloatAttribute(Type type,
                      Quantity quantity)
Method Detail

get

public final java.lang.Float get(java.lang.Object o,
                                 boolean asNode,
                                 GraphState gs)
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.

Specified by:
get in class Attribute<java.lang.Float>
Parameters:
o - the object
asNode - true if object is a node, false if object is an edge
gs - the graph state context
Returns:
the value of this attribute for the given object

getDerived

protected float getDerived(java.lang.Object object,
                           boolean asNode,
                           GraphState gs)

getMaxValue

public float getMaxValue()

getMinValue

public float getMinValue()

set

public final java.lang.Float set(java.lang.Object o,
                                 boolean asNode,
                                 java.lang.Object value,
                                 GraphState gs)
Description copied from class: Attribute
Sets the value of this attribute for the given object to the given value

Specified by:
set in class Attribute<java.lang.Float>
Parameters:
o - the object
asNode - true if object is a node, false if object is an edge
value - the new value of the attribute for the object
gs - the graph state context

setDerived

protected float setDerived(java.lang.Object object,
                           boolean asNode,
                           float value,
                           GraphState gs)

setFloat

public float setFloat(java.lang.Object object,
                      boolean asNode,
                      float value,
                      GraphState gs)