Package edu.mit.blocks.codeblocks

Examples of edu.mit.blocks.codeblocks.JComponentDragHandler


                10, this.borderColor, Comment.background);
        this.add(scrollPane, 0);

        //set up listeners
        CommentEventListener eventListener = new CommentEventListener();
        this.jCompDH = new JComponentDragHandler(workspace, this);
        this.addMouseListener(eventListener);
        this.addMouseMotionListener(eventListener);
        textArea.addMouseListener(new MouseAdapter() {

            /**
 
View Full Code Here


            add(imageMap.get(img.getImageLocation()));
        }
        //set null layout so as to add blockLabels where ever we want
        setLayout(null);

        dragHandler = new JComponentDragHandler(workspace, this); // set up drag handler delegate
        addMouseListener(this);
        addMouseMotionListener(this);


        //initialize tags, labels, and sockets:
View Full Code Here

     * @param blockID the Long ID of its associated Block instance
     */
    public FactoryRenderableBlock(Workspace workspace, WorkspaceWidget widget, Long blockID) {
        super(workspace, widget, blockID);
        this.setBlockLabelUneditable();
        dragHandler = new JComponentDragHandler(workspace, this);
    }
View Full Code Here

TOP

Related Classes of edu.mit.blocks.codeblocks.JComponentDragHandler

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.