Label Parameters

Label definitions are used extensively throughout NetCharts applets in order to display titles, legends, axis tics, data labels, etc. The following label parameters are supported by one or more of the chart applets:

Header     =  ("Label", Color, "FontName", FontSize, Angle);
Footer     =  ("Label", Color, "FontName", FontSize, Angle);
LeftTitle  =  ("Label", Color, "FontName", FontSize, Angle);
RightTitle =  ("Label", Color, "FontName", FontSize, Angle);
DwellLabel =  ("Label", Color, "FontName", FontSize, Angle);
Legend     =  ("Label", Color, "FontName", FontSize, Angle);
All of the attributes are optional. If they are not specified, default values will be used, depending on the specific parameter being defined.

The attributes are interpreted as follows:

"Label" The given string is used as the value of the label being displayed. If the string contains the "\n" (newline) character than the label will be dislayed on multiple lines. For example, the value "Fred\nSmith" would be displayed as:
	Fred
	Smith
when the label is rendered.

Color The color of the font used for the label. See NFColor for a complete list of supported color names and value expressions.

FontName The font style to be used for the label. The exact list of font styles is platform dependent, but the following font styles are guaranteed to be available for any Java implementation:
Java Font X11 Font Windows Font
default misc-fixed Arial
Helvetica adobe-helvetica Arial
TimesRoman adobe-times Times New Roman
Courier adobe-courier Courier New
Dialog b&h-lucida MS Sans Serif
FontSize This attribute defines the point size of the font. The available values depend on the font style defined and the platform.

Angle This attribute defines the angle of rotation (in degrees) for the entire label, with only the following values supported 0, 90, 180, 270. If a non-zero value is specified, the label will be rotated counter-clockwise by that many degrees before being rendered.

Example

In this example, four titles are defined, using different colors, font names, font sizes, and angles of rotation.

Header     = ("This Is A Default Label");
Footer     = ("This Is A\nMulti-Line\nFooter", darkred);
LeftTitle  = ("Rotated Label", black, "TimesRoman", 16, 90);
RightTitle = ("Large\nLabel", blue, "Courier", 30);