de.matthiasmann.twl.textarea
Class Value

java.lang.Object
  extended by de.matthiasmann.twl.textarea.Value

public final class Value
extends java.lang.Object

A class to hold a value and the unit in which it is specified.


Nested Class Summary
static class Value.Unit
           
 
Field Summary
static Value AUTO
           
 Value.Unit unit
           
 float value
           
static Value ZERO_PX
           
 
Constructor Summary
Value(float value, Value.Unit unit)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final float value

unit

public final Value.Unit unit

ZERO_PX

public static final Value ZERO_PX

AUTO

public static final Value AUTO
Constructor Detail

Value

public Value(float value,
             Value.Unit unit)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object