cz.cmc.tcgui.datadef
Class AttributeTypeFloat

java.lang.Object
  extended bycz.cmc.tcgui.datadef.AttributeType
      extended bycz.cmc.tcgui.datadef.AttributeTypeNumber
          extended bycz.cmc.tcgui.datadef.AttributeTypeFloat
All Implemented Interfaces:
Cloneable

public class AttributeTypeFloat
extends AttributeTypeNumber

AttributeTypeFloat is used to mark attributes which store float value.


Field Summary
 
Fields inherited from class cz.cmc.tcgui.datadef.AttributeTypeNumber
nonzero, positive
 
Constructor Summary
AttributeTypeFloat()
          Creates new AttributeTypeFloat with "positive" and "nonzero" flags set to false.
AttributeTypeFloat(boolean positive, boolean nonzero)
          Creates new AttributeTypeFloat with "positive" and "nonzero" flags set to given values.
 
Method Summary
 String toString()
          Returns String representing this object.
 
Methods inherited from class cz.cmc.tcgui.datadef.AttributeTypeNumber
getNonzero, getPositive, setNonzero, setPositive
 
Methods inherited from class cz.cmc.tcgui.datadef.AttributeType
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeTypeFloat

public AttributeTypeFloat()
Creates new AttributeTypeFloat with "positive" and "nonzero" flags set to false.


AttributeTypeFloat

public AttributeTypeFloat(boolean positive,
                          boolean nonzero)
Creates new AttributeTypeFloat with "positive" and "nonzero" flags set to given values.

Parameters:
positive - boolean value to which to set the "positive" flag to
nonzero - boolean value to which to set the "nonzero" flag to
Method Detail

toString

public String toString()
Returns String representing this object.

Overrides:
toString in class AttributeTypeNumber
Returns:
String representation of this object