MCPcopy Create free account
hub / github.com/Singular/Singular / actionPerformed

Method actionPerformed

Singular/LIB/surfex/SaveMovieDialog.java:665–679  ·  view source on GitHub ↗
(ActionEvent ae)

Source from the content-addressed store, hash-verified

663
664 measure.addActionListener(new ActionListener(){
665 public void actionPerformed(ActionEvent ae){
666 setHeight(Double.valueOf(height.getText()).doubleValue());
667 setWidth(Double.valueOf(width.getText()).doubleValue());
668 if(measure.getSelectedIndex()==0){
669 setNewSize(Double.valueOf(height.getText()).intValue(),
670 Double.valueOf(width.getText()).intValue());
671 }
672 if(measure.getSelectedIndex()==1){
673 setNewSize((int)((Double.valueOf(dpi.getText()).intValue())*(Double.valueOf(height.getText()).doubleValue())/2.4),
674 (int)((Double.valueOf(dpi.getText()).intValue())*(Double.valueOf(width.getText()).doubleValue())/2.4));
675 }
676 if(measure.getSelectedIndex()==2){
677 setNewSize((int)((Double.valueOf(dpi.getText()).intValue())*(Double.valueOf(height.getText()).doubleValue())),(int)((Double.valueOf(dpi.getText()).intValue())*(Double.valueOf(width.getText()).doubleValue())));
678 }
679 }
680 });
681
682

Callers

nothing calls this directly

Calls 15

setHeightMethod · 0.95
setWidthMethod · 0.95
setNewSizeMethod · 0.95
updateSizeMethod · 0.95
getParametersToRunMethod · 0.95
updateLabel_newSizeMethod · 0.95
setVisibleMethod · 0.80
getCurrentProjectMethod · 0.80
getCamPosMethod · 0.80
getViewDirMethod · 0.80
getUpVectorMethod · 0.80
getRightVectorMethod · 0.80

Tested by

no test coverage detected