Class FE.LabelOpts
Object
|
+--FE.LabelOpts
- class
FE.LabelOpts
Defined in freeearth.js
|
Constructor Summary |
FE.LabelOpts(<String> fontName, <Number> fontSize, <String> color, <Number> alpha)
Option class used in the FE.Label constructor.
|
|
Method Summary |
void
|
setAttribute(<String> name, <String> value)
Sets a label option (attribute).
|
void
|
setColor(color)
Sets a label color.
|
FE.LabelOpts
FE.LabelOpts(<String> fontName, <Number> fontSize, <String> color, <Number> alpha)
Option class used in the FE.Label constructor.
Parameters:
fontName - Font name, defaults to Arial.
fontSize - Font size, in pixels. Defaults to 12.
color - Font color, defined as an hexadecimal string ('0xff0000') or plain string ('red')
alpha - Label opacity, between 0.0 and 1.0. Defaults to 1.0
setAttribute
void setAttribute(<String> name, <String> value)
Sets a label option (attribute).
setColor
void setColor(color)
Sets a label color. Handles string and hexadecimal colors.
Documentation generated by
JSDoc on Thu Dec 6 19:55:43 2007