Examples of dock()


Examples of buildcraft.core.robots.EntityRobot.dock()

              float py = y + 0.5F + rayTraceResult.sideHit.offsetY * 0.5F;
              float pz = z + 0.5F + rayTraceResult.sideHit.offsetZ * 0.5F;
             
              robot.setPosition(px, py, pz);
              station.takeAsMain(robot);
              robot.dock(robot.getLinkedStation());
              world.spawnEntityInWorld(robot);
             
              if(!player.capabilities.isCreativeMode) {
                player.getCurrentEquippedItem().stackSize--;
              }
View Full Code Here

Examples of buildcraft.core.robots.EntityRobot.dock()

                float py = y + 0.5F + rayTraceResult.sideHit.offsetY * 0.5F;
                float pz = z + 0.5F + rayTraceResult.sideHit.offsetZ * 0.5F;
 
                robot.setPosition(px, py, pz);
                station.takeAsMain(robot);
                robot.dock(robot.getLinkedStation());
                world.spawnEntityInWorld(robot);
 
                if (!player.capabilities.isCreativeMode) {
                  player.getCurrentEquippedItem().stackSize--;
                }
View Full Code Here

Examples of org.flexdock.docking.DockingStrategy.dock()

        EventManager.dispatch(evt, dockable);


        // attempt to complete the docking operation
        if(!evt.isConsumed())
            docker.dock(dockable, targetPort, region, token);
    }



View Full Code Here

Examples of org.flexdock.docking.defaults.DefaultDockingPort.dock()

        // create the Dockable panel
        CompoundDemo cd = new CompoundDemo(desc);
        DockingManager.registerDockable(cd.getDockable());

        // dock the panel and return the DockingPort
        port.dock(cd.getDockable(), CENTER_REGION);
        return port;
    }

    private static DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
View Full Code Here

Examples of org.flexdock.docking.defaults.DefaultDockingPort.dock()

        // create the Dockable panel
        SplitPaneDemo spd = new SplitPaneDemo(desc);
        DockingManager.registerDockable(spd.getDockable());

        // dock the panel and return the DockingPort
        port.dock(spd.getDockable(), CENTER_REGION);
        return port;
    }

    private static DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
View Full Code Here

Examples of org.flexdock.docking.defaults.DefaultDockingPort.dock()

        // create the Dockable panel
        TabbedPaneDemo cd = new TabbedPaneDemo(desc);
        DockingManager.registerDockable(cd.getDockable());

        // dock the panel and return the DockingPort
        port.dock(cd.getDockable(), CENTER_REGION);
        return port;
    }

    private static int getTabPosition(String desc) {
        if ("North".equals(desc))
View Full Code Here

Examples of org.flexdock.docking.defaults.DefaultDockingPort.dock()

        p.setBackground(color);
        p.add(new JLabel("Drag Me"));
        DockingManager.registerDockable(p, desc);

        // dock the panel and return the DockingPort
        port.dock(p, CENTER_REGION);
        return port;
    }

    private DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
View Full Code Here

Examples of org.flexdock.docking.defaults.DefaultDockingPort.dock()

        // create the Dockable panel
        DockablePanel panel = new DockablePanel(desc);

        // dock the panel and return the DockingPort
        port.dock(panel.getDockable(), CENTER_REGION);
        return port;
    }

    private DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
View Full Code Here

Examples of org.flexdock.view.View.dock()

        View view1 = buildView("themeinfo.view", "Theme Info", buildThemeInfoPane());
        View view2 = buildView("plafchooser.view", "Plaf Chooser", buidViewContentPane());

        viewport.dock(view2);
        view2.dock( view1, EAST_REGION, .2f);

        return content;
    }

    private View buildView(String id, String name, JComponent component) {
View Full Code Here

Examples of org.flexdock.view.View.dock()

        view2 = createView("task.list", "Task List");
        view3 = createView("class.view", "Class View");
        view4 = createView("message.log", "Message Log");

        viewport.dock(startPage);
        startPage.dock(view1, WEST_REGION, .3f);
        startPage.dock(view2, SOUTH_REGION, .3f);
        startPage.dock(view4, EAST_REGION, .3f);
        view1.dock(view3, SOUTH_REGION, .3f);

        return panel;
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.