|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.tools.SizeValue
public class SizeValue
The SizeValue class stores and manages size value strings. Such strings are used to store size representations. See the constants for all supported special kind of values.
Constructor Summary | |
---|---|
SizeValue(String valueParam)
Create a new instance using the given value. |
Method Summary | |
---|---|
float |
getValue(float range)
Get the value as float. |
int |
getValueAsInt(float range)
Get the value as int. |
boolean |
hasHeightSuffix()
|
boolean |
hasWidthSuffix()
|
boolean |
hasWildcard()
|
boolean |
isPercentOrPixel()
Checks if the value contains either PERCENT or PIXEL. |
boolean |
isPixel()
Checks if this value describes a pixel value. |
String |
toString()
toString. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SizeValue(String valueParam)
valueParam
- the String valueMethod Detail |
---|
public boolean isPercentOrPixel()
public float getValue(float range)
range
- the size that percent values are calculated from.
public int getValueAsInt(float range)
range
- range the size that percent values are calculated from.
public boolean isPixel()
public String toString()
toString
in class Object
public boolean hasWidthSuffix()
public boolean hasHeightSuffix()
public boolean hasWildcard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |