|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
FontProperties
FontProperties represents a font entity. It encapsulates all the information required for font formatting, primarily the font and the spacing to be used.
Any reference to a "font formatting" string implies that the string must be well-formed: <font>*</font>
| Constructor Summary | |
FontProperties(var $font,
var $spacing)
Constructs a FontProperties. |
|
| Method Summary | |
java.lang.String |
getFont()
Gets the font formatting of the object. |
int |
getSpacing()
Gets the spacing of the object. |
void |
setFont(var $font)
Sets the font formatting of the object. |
void |
setSpacing(var $spacing)
Sets the amount of spacing of the object. |
boolean |
validateFont(var $font)
Checks if string is of proper font formatting syntax. |
java.lang.String |
wrapData(var $data)
Wraps the data specified with font formatting. |
| Constructor Detail |
public FontProperties(var $font,
var $spacing)
$font - String specifying font formatting$spacing - int specifying spacing$font - Default Value: ""$spacing - Default Value: 0| Method Detail |
public java.lang.String getFont()
public int getSpacing()
public void setFont(var $font)
The syntax must be of the form: <font>*</font>
$font - String specifying the font formatting$font - Default Value: ""public void setSpacing(var $spacing)
$spacing - int specifying the amount of spacing$spacing - Default Value: 0public boolean validateFont(var $font)
$font - String specifying the font formattingpublic java.lang.String wrapData(var $data)
$data - String specifying the data to be wrapped
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||