CookSwt Reference: Converters



Support This Project


stats counter


Logo Logo IntelliJ IDEA


The following converters are defined in CookSwt in addition to the ones in CookXml Common component.

Target Type Tag Notes
Color color It is the color pre-defined in SWT with/without COLOR_ prefix, or in the following format: #rrggbb, where rr, gg, bb are in hexdecimal representation. The # sign is optional.
Cursor cursor It is the cursor names pre-defined in SWT with/without CURSOR_ prefix. If you want to load a customized cursor image, then <cursor> must be used.
Font font It is in name,style,height format. Name can be either a logical or a physical font name. Style can be plain, bold, italic or bold italic. Height is in integer.
Image image It is the color pre-defined in SWT with/without ICON_ prefix, or a resource which can be found by ClassLoader.
Point point It is in x,y format in integer numbers.
Rectangle rectangle It is either in width,height or x,y,width,height format in integers.

(c) Copyright 2004-2007 Heng Yuan. All rights reserved.

Valid XHTML 1.0! Valid CSS!