org.jfree.util

Class UnitType

public final class UnitType extends Object implements Serializable

Used to indicate absolute or relative units.

Author: David Gilbert

Field Summary
static UnitTypeABSOLUTE
Absolute.
static UnitTypeRELATIVE
Relative.
Method Summary
booleanequals(Object obj)
Returns true if this object is equal to the specified object, and false otherwise.
inthashCode()
Returns a hash code value for the object.
StringtoString()
Returns a string representing the object.

Field Detail

ABSOLUTE

public static final UnitType ABSOLUTE
Absolute.

RELATIVE

public static final UnitType RELATIVE
Relative.

Method Detail

equals

public boolean equals(Object obj)
Returns true if this object is equal to the specified object, and false otherwise.

Parameters: obj the other object.

Returns: A boolean.

hashCode

public int hashCode()
Returns a hash code value for the object.

Returns: The hashcode

toString

public String toString()
Returns a string representing the object.

Returns: The string.