/** * Sets the mass. Overrides PointMass method. * * @param mass the mass */ public void setMass(double mass) { super.setMass(mass); mass = super.getMass(); massField.setValue(mass); // refresh mass parameter in paramPanel if changed Parameter massParam = (Parameter) getParamEditor().getObject("m"); // $NON-NLS-1$ if (massParam != null && massParam.getValue() != mass) { functionPanel.getParamEditor().setExpression("m", String.valueOf(mass), false); // $NON-NLS-1$ refreshSteps(); } }
/** * Gets the parameter editor. * * @return ParamEditor */ public ParamEditor getParamEditor() { return functionPanel.getParamEditor(); }