~ubuntu-branches/ubuntu/karmic/kst/karmic

« back to all changes in this revision

Viewing changes to kst/kst/extensions/js/examples/testgraphics.js

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-06-30 19:11:30 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630191130-acumuar75bz4puty
Tags: 1.2.1-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
w = new Window;
 
4
p = new Picture(w);
 
5
b = new Box(w);
 
6
e = new Ellipse(w);
 
7
l = new Line(w);
 
8
 
 
9
b.size = new Size(120, 57);
 
10
b.position = new Point(30, 22);
 
11
b.color = "red"
 
12
b.borderWidth = 3;
 
13
 
 
14
p.size = new Size(284, 261);
 
15
p.position = new Point(73, 113);
 
16
p.load("http://www.kde.org/media/images/kde_gear_64.png");
 
17
p.borderWidth = 3;
 
18
p.borderColor = "blue";
 
19
 
 
20
e.size = new Size(342, 400);
 
21
e.position = new Point(441, 66);
 
22
e.borderWidth = 2;
 
23
e.borderColor = "red";
 
24
e.color = "blue";
 
25
 
 
26
l.from = new Point(73, 283);
 
27
l.to = new Point(401, 459);
 
28
l.width = 3;
 
29
l.color = "#10ff10";
 
30
 
 
31
la = new Label(w);
 
32
la.text = "My test label";
 
33
la.position = new Point(283, 34);
 
34
 
 
35
a = new Arrow(w);
 
36
a.from = new Point(283, 346);
 
37
a.to = new Point(472, 535);
 
38
a.width = 3;
 
39