public void setEditor(@NonNull Editor editor)
{
this.editor = editor;
editor.addListener(this);
editor.getRenderer().addListener(this);
this.exportParams = editor.getEngine().createParameterSet();
this.exportParams.setBoolean("export.jiix.strokes", false);
this.exportParams.setBoolean("export.jiix.bounding-box", false);
this.exportParams.setBoolean("export.jiix.glyphs", false);
this.exportParams.setBoolean("export.jiix.primitives", false);
this.exportParams.setBoolean("export.jiix.chars", false);
Configuration configuration = editor.getEngine().getConfiguration();
fadeOutWriteInDiagramDelay = configuration.getNumber("smart-guide.fade-out-delay.write-in-diagram", SMART_GUIDE_FADE_OUT_DELAY_WRITE_IN_DIAGRAM_DEFAULT).intValue();
fadeOutWriteDelay = configuration.getNumber("smart-guide.fade-out-delay.write", SMART_GUIDE_FADE_OUT_DELAY_WRITE_DEFAULT).intValue();
fadeOutOtherDelay = configuration.getNumber("smart-guide.fade-out-delay.other", SMART_GUIDE_FADE_OUT_DELAY_OTHER_DEFAULT).intValue();
removeHighlightDelay = configuration.getNumber("smart-guide.highlight-removal-delay", SMART_GUIDE_HIGHLIGHT_REMOVAL_DELAY_DEFAULT).intValue();
}