@Override
public void initAction() {
instrument.textField.setValid(true);
final IPoint textPosition = instrument.relativePoint==null ? ShapeFactory.createPoint(instrument.textField.getX(),
instrument.textField.getY()+instrument.textField.getHeight()) : instrument.relativePoint;
final IShape sh = instrument.pencil==null ? null : instrument.pencil.createShapeInstance();
if(sh instanceof IPlot) {
final IPlot plot = (IPlot)sh;
plot.setPosition(textPosition.getX(), textPosition.getY());
plot.setPlotEquation(instrument.textField.getText());