public void createOverlay(DrawingView view, TextHolder figure) { view.getContainer().add(editScrollContainer, 0); if (figure != null) { Font f = figure.getFont();  f = f.deriveFont(f.getStyle(), (float) (f.getSize() * view.getScaleFactor())); editWidget.setFont(f); editWidget.setForeground(figure.getTextColor()); editWidget.setBackground(figure.getFillColor()); editWidget.setTabSize(figure.getTabSize()); } this.view = view;
public void createOverlay(DrawingView view) { createOverlay(view, null);
    public void createOverlay(DrawingView view, TextHolder figure) {        view.getContainer().add(editScrollContainer, 0);        if (figure != null) {        Font f = figure.getFont();        // FIXME - Should scale with fractional value!        f = f.deriveFont(f.getStyle(), (float) (f.getSize() * view.getScaleFactor()));        editWidget.setFont(f);            editWidget.setForeground(figure.getTextColor());            editWidget.setBackground(figure.getFillColor());            editWidget.setTabSize(figure.getTabSize());        }        this.view = view;    }