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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
cawthron
parents:
diff changeset
     2
function Visual() {
cawthron
parents:
diff changeset
     3
}
cawthron
parents:
diff changeset
     4
cawthron
parents:
diff changeset
     5
Visual.prototype.draw = function(instance, laf, graphics) {
cawthron
parents:
diff changeset
     6
cawthron
parents:
diff changeset
     7
	graphics.setBackground(Colors.getColor(255, 0, 0))
cawthron
parents:
diff changeset
     8
cawthron
parents:
diff changeset
     9
}
cawthron
parents:
diff changeset
    10
cawthron
parents:
diff changeset
    11
Visual.prototype.getPreferredSize = function(instance, laf, wHint, hHint) {
cawthron
parents:
diff changeset
    12
	return new Point(wHint + 10, hHint + 20);	
cawthron
parents:
diff changeset
    13
}
cawthron
parents:
diff changeset
    14
cawthron
parents:
diff changeset
    15
Visual.prototype.getPropertyPaths = function(instance) {
cawthron
parents:
diff changeset
    16
	return new Array("foo")
cawthron
parents:
diff changeset
    17
}
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
Visual.prototype.getLabelBounds = function(instance, propertyPath, laf) {
cawthron
parents:
diff changeset
    20
	return new Rectangle(0, 0, 10, 10)
cawthron
parents:
diff changeset
    21
}
cawthron
parents:
diff changeset
    22
cawthron
parents:
diff changeset
    23
Visual.prototype.getLabelFont = function(instance, propertyPath, laf) {
cawthron
parents:
diff changeset
    24
	return null;
cawthron
parents:
diff changeset
    25
}
cawthron
parents:
diff changeset
    26