public final class RelativeFontSize extends FontSize
FontSize
implementation to set the font size relative to the
predefined values from Mobile Designer. Possible values to pass are:
100
.Font Size
property:
public FontSize getMyFontSize() { final RelativeFontSize size = new RelativeFontSize( nUIConstants.size_medium, 100); return size; }This class is not meant to be extended by clients.
Constructor and Description |
---|
RelativeFontSize()
Creates this object by using the default values
nUIConstants.size_medium and the default scaling factor. |
RelativeFontSize(int predefinedSize)
Deliver a predefined font size value from Mobile Designer and use the
default scaling factor.
|
RelativeFontSize(int predefinedSize,
int scale)
Deliver both, the predefined font size from Mobile Designer and the
scaling factor.
|
Modifier and Type | Method and Description |
---|---|
int |
getPredefinedSize() |
int |
getScale() |
public RelativeFontSize()
nUIConstants.size_medium
and the default scaling factor.public RelativeFontSize(int predefinedSize)
predefinedSize
- public RelativeFontSize(int predefinedSize, int scale)
scale
must be greater than 0
.predefinedSize
- scale
-