INTRO SPECS TUTORIALS RESOURCES TOOLS ABOUT US CONTACT US
UIML v1.0 UIML v2.0
 

UIML v2.0
Draft Spec
DTD
Examples
Vocabularies

UIML v1.0
Tags
Components
Attributes

UIML Attributes (UIML 1.0)

FOREGROUND

Allowed Values Meaning
black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow Set foreground color to color name as defined in class java.awt.Color.
One of the color names from java.awt.Color (see above) followed by a - or a + (e.g., red- or blue+). A suffix of - means darken the color; a suffix of + means brighten the color. (These correspond to java.awt.Color.darken() and .brighten().)
0x<six hex digits> (e.g., 0xFF0000 for pure red). Set foreground color to RGB (red, green, blue) color specified as 0xRRBBGG, where RR denotes one of 256 intensities of red (00 to FF), BB denotes the intensity of blue, and and GG denotes the intensity of green.
A non-negative integer Set foreground to RGB color represented by a single integer. Bits 0-7 specify one of 256 intensities of blue; bits 8-15 green; and bits 16-23 red.
<float>,<float>,<float> where <float> is between 0 and 1 inclusive (e.g., .667,1,1 for pure blue). Set foreground to HSB (hue, saturation, brightness) color specified as a triple of numbers, where the first is hue, the second is saturation, and the third is brightness.
· Hue represents the rainbow (0 is white, near 0 are red, near 1 is magenta, and 1 is black).
· A saturation of 0 is either white or black, depending on brightness; a saturation of 1 is pure hue color.
· A brightness of 0 is black; a brightness of 1 is maximum color saturation.
activeCaption, activeCaptionBorder, activeCaptionText, control, controlDkShadow, controlHighlight, controlLtHighlight, controlShadow, controlText, desktop, inactiveCaption, inactiveCaptionBorder, inactiveCaptionText, info, infoText, menu, menuText, scrollbar, textHighlight, textHighlightText, textInactiveText, textText, window, windowBorder, windowText Set foreground to same color as corresponding system item. Meaning of the allowed values is defined in class java.awt.SystemColor. (Note: these values work only on MS Windows platforms.)

 

© 1999-2000 UIML.org (all rights reserved)