Package net.sf.latexdraw.mapping

Examples of net.sf.latexdraw.mapping.Drawing2CanvasMapping


    if(progressBar!=null)
      progressBar.addToProgressBar(5);

    /* Initialisation of the mapping between the model and the canvas. */
    MappingRegistry.REGISTRY.addMapping(new ShapeList2ViewListMapping(drawing.getShapes(), canvas.getViews(), canvas.getBorderInstrument()));
    MappingRegistry.REGISTRY.addMapping(new Drawing2CanvasMapping(drawing, canvas));
    MappingRegistry.REGISTRY.addMapping(new Selection2BorderMapping(drawing.getSelection().getShapes(), canvas.getBorderInstrument()));
    MappingRegistry.REGISTRY.addMapping(new Zoom2ScaleRuler(canvas.getZoomUnary(), xScaleRuler));
    MappingRegistry.REGISTRY.addMapping(new Zoom2ScaleRuler(canvas.getZoomUnary(), yScaleRuler));
    MappingRegistry.REGISTRY.addMapping(new Unit2ScaleRuler(ScaleRuler.getUnitSingleton(), xScaleRuler));
    MappingRegistry.REGISTRY.addMapping(new Unit2ScaleRuler(ScaleRuler.getUnitSingleton(), yScaleRuler));
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.mapping.Drawing2CanvasMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.