/** * Clears this handler state and the handled canvas instance. * Other further diagrams can be loaded and displayed using this handler. */ @Override public CanvasHandler<D, C> clear() { if (null != getCanvas()) { getCanvas().clear(); } doClear(); return this; }