public void actionPerformed(ActionEvent actionEvent) { // Simply enable or disable the layer based on its toggle button. if (((JCheckBox) actionEvent.getSource()).isSelected()) this.layer.setEnabled(true); else this.layer.setEnabled(false); wwd.redraw(); } }
@Override public void actionPerformed (final @Nonnull ActionEvent actionEvent) { layer.setEnabled(((JCheckBoxMenuItem)actionEvent.getSource()).isSelected()); worldWindow.redraw(); }
public void actionPerformed(ActionEvent actionEvent) { SystemUtils.LOG.fine("actionPerformed " + actionEvent); // Simply enable or disable the layer based on its toggle button. //System.out.println("Product click " + layer); //System.out.println(layer.getOpacity()); if (((JCheckBox) actionEvent.getSource()).isSelected()) { this.layer.setOpacity(name, this.layer.getOpacity()); } else { this.layer.setOpacity(name, 0); } wwd.redraw(); } }
@Override public void moved( PositionEvent event ) { Position pos = master.getView( ).getCurrentEyePosition( ); slave.getView( ).setEyePosition( pos ); slave.redraw( ); } } );
update = true; else this.wwd.redraw();