controlsPanel.add(legend_);
}
private JPanel createCheckBoxes() {
RenderingOptions renderOpts = simulator_.getRenderer().getOptions();
// not yet supported.
//useConcurrentCalculation_ = createCheckBox("Parallel calculation",
// "Will take advantage of multiple processors for calculation if present.", false);
useConcurrentRendering_ = createCheckBox("Parallel rendering",
"Will take advantage of multiple processors for rendering if present.", renderOpts.isParallelized());
useLinearInterpolation_ = createCheckBox("Use linear interpolation",
"If checked, use linear interpolation when rendering, to give a smoother look.",
renderOpts.getUseLinearInterpolation());
showVelocities_ = createCheckBox("Show velocities", "if checked, show velocity vectors",
renderOpts.getShowVelocities());
showGrid_ = createCheckBox("Show grid",
"Draw the background grid that shows the cells.", renderOpts.getShowGrid());
JPanel checkBoxes = new JPanel(new GridLayout(0, 2));
//checkBoxes.add(useConcurrentCalculation_);
checkBoxes.add(useConcurrentRendering_);