|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.domain
Class LevelValue
java.lang.Objectbe.lassi.domain.LevelValue
public class LevelValue
- extends java.lang.Object
Encapsulates a level value. The actual value is a float. Conversion to percentages (0->100) is implemented here.
| Constructor Summary | |
|---|---|
LevelValue()
Creates new instance with default zero value. |
|
LevelValue(float value)
Creates new instance with given initial value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
int |
getIntValue()
Gets percentage value (converted from float value). |
float |
getValue()
Gets the float value. |
int |
hashCode()
|
boolean |
isActive()
|
void |
setActive(boolean active)
|
void |
setIntValue(int value)
Sets integer percentage value. |
void |
setValue(float value)
Sets new value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
LevelValue
public LevelValue()
- Creates new instance with default zero value.
LevelValue
public LevelValue(float value)
- Creates new instance with given initial value.
- Parameters:
value- the initial value.
| Method Detail |
|---|
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equalsin classjava.lang.Object
getIntValue
public int getIntValue()
- Gets percentage value (converted from float value).
- Returns:
- int Percentage value (between 0 and 100).
getValue
public float getValue()
- Gets the float value.
- Returns:
- float float value (between 0.0 and 1.0).
hashCode
public int hashCode()
-
- Overrides:
hashCodein classjava.lang.Object
isActive
public boolean isActive()
setActive
public void setActive(boolean active)
setIntValue
public void setIntValue(int value)
- Sets integer percentage value.
- Parameters:
value- New value (between 0 and 100).
setValue
public void setValue(float value)
- Sets new value.
- Parameters:
value- New float value (between 0.0 and 1.0).
toString
public java.lang.String toString()
-
- Overrides:
toStringin classjava.lang.Object
|
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.domain.LevelValue