2
|
1 |
|
|
2 |
function Visual() {
|
|
3 |
}
|
|
4 |
|
|
5 |
Visual.prototype.draw = function(instance, laf, graphics) {
|
|
6 |
|
|
7 |
graphics.setBackground(Colors.getColor(255, 0, 0))
|
|
8 |
|
|
9 |
}
|
|
10 |
|
|
11 |
Visual.prototype.getPreferredSize = function(instance, laf, wHint, hHint) {
|
|
12 |
return new Point(wHint + 10, hHint + 20);
|
|
13 |
}
|
|
14 |
|
|
15 |
Visual.prototype.getPropertyPaths = function(instance) {
|
|
16 |
return new Array("foo")
|
|
17 |
}
|
|
18 |
|
|
19 |
Visual.prototype.getLabelBounds = function(instance, propertyPath, laf) {
|
|
20 |
return new Rectangle(0, 0, 10, 10)
|
|
21 |
}
|
|
22 |
|
|
23 |
Visual.prototype.getLabelFont = function(instance, propertyPath, laf) {
|
|
24 |
return null;
|
|
25 |
}
|
|
26 |
|