Control variables:(testing) double,double,double,int |
title | = | "Frame" |
layout | = | border |
visible | = | true |
location | = | "66,67" |
size | = | "820,440" |
position | = | center |
autoscaleX | = | false |
autoscaleY | = | false |
minimumX | = | xmin |
maximumX | = | xmax |
minimumY | = | ymin |
maximumY | = | ymax |
square | = | true |
numberOfElements | = | n |
x | = | x |
y | = | y |
sizeX | = | size |
sizeY | = | size |
fillColor | = | LIGHTGRAY |
numberOfElements | = | n |
x | = | x |
y | = | y |
sizeX | = | 0 |
sizeY | = | vy |
scaley | = | vscale |
visible | = | showv |
lineColor | = | RED |
fillColor | = | RED |
x | = | xi |
y | = | yi |
sizeX | = | size*1.5 |
sizeY | = | size*1.5 |
lineColor | = | BLUE |
fillColor | = | 0,0,255,128 |
x | = | xt |
y | = | yt |
sizeX | = | size*1.5 |
sizeY | = | size*1.5 |
visible | = | _isPaused() && dt2!=0 |
fillColor | = | YELLOW |
x | = | xt |
y | = | yt |
sizeX | = | 0 |
sizeY | = | vyt |
scalex | = | vscale |
visible | = | _isPaused() && dt2!=0 &&showv |
lineColor | = | RED |
fillColor | = | RED |
numberOfElements | = | n |
x | = | x1 |
y | = | y1 |
sizeX | = | size |
sizeY | = | size |
fillColor | = | LIGHTGRAY |
numberOfElements | = | n |
x | = | x1 |
y | = | y1 |
sizeX | = | 0 |
sizeY | = | vy1 |
scaley | = | vscale |
visible | = | showv |
lineColor | = | RED |
fillColor | = | RED |
numberOfElements | = | n |
x | = | x2 |
y | = | y2 |
sizeX | = | size |
sizeY | = | size |
fillColor | = | GRAY |
numberOfElements | = | n |
x | = | x2 |
y | = | y2 |
sizeX | = | 0 |
sizeY | = | vy2 |
scaley | = | vscale |
visible | = | showv |
lineColor | = | RED |
fillColor | = | RED |
numberOfElements | = | 3 |
x | = | xmin-size |
y | = | ty |
pixelSize | = | true |
text | = | %ys% |
font | = | Monospaced,PLAIN,20 |
elementposition | = | EAST |
position | = | south |
layout | = | border |
position | = | east |
layout | = | HBOX |
borderType | = | LOWERED_ETCHED |
variable | = | _isPaused |
imageOn | = | /org/opensourcephysics/resources/controls/images/play.gif |
actionOn | = | _play() |
imageOff | = | /org/opensourcephysics/resources/controls/images/pause.gif |
actionOff | = | _pause() |
text | = | "step" |
action | = | t=t+dt; _step(); |
image | = | /org/opensourcephysics/resources/controls/images/reset.gif |
action | = | _reset() |
position | = | center |
layout | = | HBOX |
variable | = | T |
minimum | = | 5.0 |
maximum | = | 20.0 |
format | = | "T=0.00" |
dragaction | = | w=2*pi/T; k=w/v; |
action | = | _initialize() |
variable | = | v |
minimum | = | xmax/20 |
maximum | = | xmax/2 |
format | = | "v=0.0" |
dragaction | = | k=w/v; |
action | = | _initialize() |
variable | = | dt2 |
minimum | = | -T/4 |
maximum | = | T/4 |
format | = | "dt2=0.00" |
enabled | = | _isPaused() |
dragaction | = | xt=x[id]; t2=t+dt2; if(xt-xmin>v*t2){ yt=0;vyt=0; }else{ c=k*(xt-xmin)-w*t2; yt=-h*Math.sin(c); vyt=h*w*Math.cos(c); } |
variable | = | showv |
text | = | "Vy" |
position | = | north |
variable | = | id |
minimum | = | 0 |
maximum | = | n |
format | = | "id=0" |
dragaction | = | yi=y[id]; xi=x[id]; |