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

Method setWidth

Singular/LIB/surfex/SavePicDialog.java:1176–1185  ·  view source on GitHub ↗
(double w)

Source from the content-addressed store, hash-verified

1174 }
1175
1176 public void setWidth(double w){
1177 if(measure.getSelectedIndex()==0){
1178 //pixel ist selektiert, d.h. keine Nachkommastellen anzeigen!
1179 width.setText(((int)w)+"");
1180 }else{
1181 // angabe in cm / inch:
1182 // bieigen:
1183 width.setText((w+" ").substring(0,8).replaceAll(" ",""));
1184 }
1185 }
1186
1187} // end class SavePicDialog
1188

Callers 3

keyReleasedMethod · 0.95
actionPerformedMethod · 0.95
updateSizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected