/**
* One of the buttons was pressed
*/
public void actionPerformed(ActionEvent e) {
EnvironmentRenderer renderer = simulator_.getRenderer();
RenderingOptions renderOpts = renderer.getOptions();
if (e.getSource() == useConcurrentCalculation_) {
// gs_.setParallelized(!gs_.isParallelized());
}
else if (e.getSource() == useConcurrentRendering_) {
renderOpts.setParallelized(!renderOpts.isParallelized());
}
else if (e.getSource() == useLinearInterpolation_) {
renderOpts.setUseLinearInterpolation(!renderOpts.getUseLinearInterpolation());
}
else if (e.getSource() == showVelocities_) {
renderOpts.setShowVelocities(!renderOpts.getShowVelocities());
}
else if (e.getSource() == showGrid_) {
renderOpts.setShowGrid(!renderOpts.getShowGrid());
}
}