|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.objects4j.FontSize
@Immutable public final class FontSize
Size of a font including the unit.
| Constructor Summary | |
|---|---|
FontSize(float size,
FontSizeUnit unit)
Constructor with size and unit. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
float |
getSize()
Returns the size of the font. |
FontSizeUnit |
getUnit()
Returns the unit of the size. |
int |
hashCode()
|
float |
toEm()
Returns the font size expressed in EM. |
java.lang.String |
toEmStr()
Returns the size as EM including the unit. |
float |
toPercent()
Returns the font size expressed in percent. |
java.lang.String |
toPercentStr()
Returns the size as percent including the unit. |
int |
toPixel()
Returns the font size expressed in pixels. |
java.lang.String |
toPixelStr()
Returns the size as pixel including the unit. |
float |
toPoint()
Returns the font size expressed in points. |
java.lang.String |
toPointStr()
Returns the size as points including the unit. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FontSize(float size,
FontSizeUnit unit)
size - Size of the font.unit - Unit of the size.| Method Detail |
|---|
public final float getSize()
public final FontSizeUnit getUnit()
public final int toPixel()
public final float toPoint()
public final float toEm()
public final float toPercent()
public final java.lang.String toPixelStr()
public final java.lang.String toPointStr()
public final java.lang.String toEmStr()
public final java.lang.String toPercentStr()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||