org.jfree.util

Class UnitType

Implemented Interfaces:
Serializable

public final class UnitType
extends java.lang.Object
implements Serializable

Used to indicate absolute or relative units.
Author:
David Gilbert

Field Summary

static UnitType
ABSOLUTE
Absolute.
static UnitType
RELATIVE
Relative.

Method Summary

boolean
equals(Object obj)
Returns true if this object is equal to the specified object, and false otherwise.
int
hashCode()
Returns a hash code value for the object.
String
toString()
Returns a string representing the object.

Field Details

ABSOLUTE

public static final UnitType ABSOLUTE
Absolute.

RELATIVE

public static final UnitType RELATIVE
Relative.

Method Details

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.