Package diva.canvas.event

Examples of diva.canvas.event.EventLayer


    /** Create a new Graphics pane with the passed Layer
     * as the main graphics pane.
     */
    public GraphicsPane(FigureLayer foregroundLayer) {
        // Background events
        _backgroundEventLayer = new EventLayer();
        _backgroundEventLayer.setEnabled(true);

        // Background layer is a figure layer
        _backgroundLayer = new FigureLayer();
        ((FigureLayer) _backgroundLayer).setVisible(false);
        ((FigureLayer) _backgroundLayer).setEnabled(false);

        // Foreground figures
        _foregroundLayer = foregroundLayer;

        // Overlay layer
        _overlayLayer = new OverlayLayer();

        // Overlay events
        _foregroundEventLayer = new EventLayer();
        _foregroundEventLayer.setEnabled(false);

        // Initialize all these layers.
        _initNewLayer(_backgroundEventLayer);
        _initNewLayer(_backgroundLayer);
View Full Code Here


                0));
        _overlayLayer.add(_crosshairX.getShape());
        _overlayLayer.add(_crosshairY.getShape());

        _eventHandler = new ViewScreen2DListener();
        _eventLayer = new EventLayer();
        _eventLayer.addLayerListener(_eventHandler);
        _eventLayer.addLayerMotionListener(_eventHandler);

        pane.setOverlayLayer(_overlayLayer);
        pane.setForegroundEventLayer(_eventLayer);
View Full Code Here

TOP

Related Classes of diva.canvas.event.EventLayer

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.