Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
487c457b
Commit
487c457b
authored
Jan 30, 2020
by
Julian Zobel
Browse files
Increased the range of the simulation skew slider
parent
c7688bc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/visualization/ui/SimControlPanel.java
View file @
487c457b
...
...
@@ -166,10 +166,10 @@ public class SimControlPanel extends JMenuBar implements ActionListener, ChangeL
}
protected
JSlider
getSpeedSlider
()
{
if
(
speedslider
==
null
)
{
speedslider
=
new
JSlider
(
SwingConstants
.
HORIZONTAL
,
1
,
30
,
5
);
speedslider
.
addChangeListener
(
this
);
//
speedslider.
setValue(speedslider.getMaximum());
if
(
speedslider
==
null
)
{
int
simskew
=
(
int
)
Simulator
.
getScheduler
().
getTimeSkew
()
+
4
;
speedslider
=
new
JSlider
(
SwingConstants
.
HORIZONTAL
,
1
,
50
,
simskew
);
speedslider
.
addChangeListener
(
this
);
}
return
speedslider
;
}
...
...
@@ -223,7 +223,7 @@ public class SimControlPanel extends JMenuBar implements ActionListener, ChangeL
protected
JLabel
getSpeedLabel
()
{
if
(
speedlabel
==
null
)
{
speedlabel
=
new
JLabel
(
"ma
x"
);
speedlabel
=
new
JLabel
(
Simulator
.
getScheduler
().
getTimeSkew
()
+
"
x"
);
}
return
speedlabel
;
}
...
...
@@ -275,7 +275,7 @@ public class SimControlPanel extends JMenuBar implements ActionListener, ChangeL
}
protected
void
changeSimulationSkew
(
double
skew
)
{
if
(
skew
==
3
0
)
{
if
(
skew
==
5
0
)
{
getSpeedLabel
().
setText
(
"max"
);
Simulator
.
getScheduler
().
setTimeSkew
(
0
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment