uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_visual.js
author Ed Swartz <ed.swartz@nokia.com>
Fri, 28 May 2010 14:29:31 -0500
changeset 1416 809f579bf32c
parent 0 fb279309251b
permissions -rw-r--r--
Add temporary "USB (TCF)" connection type for accessing the target-side Symbian TCF agent.


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;
}