Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F948265
AnalogArrowIndicator.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
AnalogArrowIndicator.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.widget.gauge.AnalogArrowIndicator"
]){
dojo
.
_hasResource
[
"dojox.widget.gauge.AnalogArrowIndicator"
]
=
true
;
dojo
.
provide
(
"dojox.widget.gauge.AnalogArrowIndicator"
);
dojo
.
require
(
"dojox.widget.AnalogGauge"
);
dojo
.
experimental
(
"dojox.widget.gauge.AnalogArrowIndicator"
);
dojo
.
declare
(
"dojox.widget.gauge.AnalogArrowIndicator"
,[
dojox
.
widget
.
gauge
.
AnalogLineIndicator
],{
_getShapes
:
function
(){
if
(
!
this
.
_gauge
){
return
null
;
}
var
x
=
Math
.
floor
(
this
.
width
/
2
);
var
_1
=
this
.
width
*
5
;
var
_2
=
(
this
.
width
&
1
);
var
_3
=
[];
var
_4
=
[{
x
:-
x
,
y
:
0
},{
x
:-
x
,
y
:-
this
.
length
+
_1
},{
x
:-
2
*
x
,
y
:-
this
.
length
+
_1
},{
x
:
0
,
y
:-
this
.
length
},{
x
:
2
*
x
+
_2
,
y
:-
this
.
length
+
_1
},{
x
:
x
+
_2
,
y
:-
this
.
length
+
_1
},{
x
:
x
+
_2
,
y
:
0
},{
x
:-
x
,
y
:
0
}];
_3
[
0
]
=
this
.
_gauge
.
surface
.
createPolyline
(
_4
).
setStroke
({
color
:
this
.
color
}).
setFill
(
this
.
color
);
_3
[
1
]
=
this
.
_gauge
.
surface
.
createLine
({
x1
:-
x
,
y1
:
0
,
x2
:-
x
,
y2
:-
this
.
length
+
_1
}).
setStroke
({
color
:
this
.
highlight
});
_3
[
2
]
=
this
.
_gauge
.
surface
.
createLine
({
x1
:-
x
-
3
,
y1
:-
this
.
length
+
_1
,
x2
:
0
,
y2
:-
this
.
length
}).
setStroke
({
color
:
this
.
highlight
});
_3
[
3
]
=
this
.
_gauge
.
surface
.
createCircle
({
cx
:
0
,
cy
:
0
,
r
:
this
.
width
}).
setStroke
({
color
:
this
.
color
}).
setFill
(
this
.
color
);
return
_3
;
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 15:33 (52 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26390
Default Alt Text
AnalogArrowIndicator.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment