Examples of JComponentDragHandler


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

Examples of edu.mit.blocks.codeblocks.JComponentDragHandler

            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

Examples of edu.mit.blocks.codeblocks.JComponentDragHandler

     * @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
Copyright © 2018 www.massapi.com. 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.