Package de.reuse

Examples of de.reuse.DrawingViewPanel


     }
     }
     **/
    protected DrawingViewPanel createViewPanel(DrawingView view) {
        DrawingViewPanel vp = null;

        if (view instanceof Component) {
            view.setBackground(Color.white);
            vp = new DrawingViewPanel((JComponent) view);
            SwingUtilities.replaceUIActionMap(vp, null);
            SwingUtilities.replaceUIInputMap(vp, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);

        } else {
            vp = new DrawingViewPanel();
            SwingUtilities.replaceUIActionMap(vp, null);
            SwingUtilities.replaceUIInputMap(vp, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);
        }

        vp.setDrawingView(view);

        return vp;
    }
View Full Code Here

TOP

Related Classes of de.reuse.DrawingViewPanel

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.