uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_visual.js
author fturovic <frank.turovich@nokia.com>
Tue, 07 Apr 2009 13:41:27 -0500
branchRCL_2_0
changeset 67 47ecdc260147
parent 2 d760517a8095
permissions -rw-r--r--
updated release date


function Visual() {
}

Visual.prototype.draw = function(instance, laf, graphics) {

	graphics.setBackground(Colors.getColor(255, 0, 0))

}

Visual.prototype.getPreferredSize = function(instance, laf, wHint, hHint) {
	return new Point(wHint + 10, hHint + 20);	
}

Visual.prototype.getPropertyPaths = function(instance) {
	return new Array("foo")
}

Visual.prototype.getLabelBounds = function(instance, propertyPath, laf) {
	return new Rectangle(0, 0, 10, 10)
}

Visual.prototype.getLabelFont = function(instance, propertyPath, laf) {
	return null;
}