Examples of move()


Examples of java.awt.Component.move()

  public int exec(Prog p)
  {
    Component C = (Component) ((JavaObject) getArg(0)).toObject();
    int hpos = (int) ((Int) getArg(1)).getValue();
    int vpos = (int) ((Int) getArg(2)).getValue();
    C.move(hpos, vpos);
    return 1;
  }
}

Examples of java.awt.Frame.move()

   
    // There is a delay to avoid any race conditions.   
    r.waitForIdle();
    r.delay(1000);
   
    f.move(100, 100);
   
    r.delay(3000);
   
    f.setSize(400, 400);
   

Examples of java.awt.Point.move()

    }
   
    public static Point getRelativeLocation(Point locationOnScreen, Component component) {
        Point componentLocation = component.getLocationOnScreen();
        Point relativeLocation = locationOnScreen.getLocation();
        relativeLocation.move(
                (int) (locationOnScreen.getX() - componentLocation.getX()),
                (int) (locationOnScreen.getY() - componentLocation.getY()));
        return relativeLocation;
    }

Examples of java.awt.Rectangle.move()

      {
        x = (int)(rect.getWidth() - rectStatic.getWidth());
        y = topGap + (int)(rect.getHeight()/2 - rectStatic.getHeight()/2);
      }
     
      rectStatic.move((int)rect.getX() + x, (int)rect.getY() + y);
     
      // +----+
      // |Text|
      // o----+
      // Leftmost

Examples of java.nio.file.spi.FileSystemProvider.move()

        throws IOException
    {
        FileSystemProvider provider = provider(source);
        if (provider(target) == provider) {
            // same provider
            provider.move(source, target, options);
        } else {
            // different providers
            CopyMoveHelper.moveToForeignTarget(source, target, options);
        }
        return target;

Examples of javassist.bytecode.CodeIterator.move()

                        System.out.println("calleeClassName = " + calleeClassName);
                        System.out.println("methodCall = " + methodCall.indexOfBytecode());
                        methodCall.replace("{java.lang.System.out.println($args[0]); $_=null;}");
                        try {
                            CodeIterator it = where.getMethodInfo().getCodeAttribute().iterator();
                            it.move(methodCall.indexOfBytecode() - 5);
                            System.out.println("it.get() = " + it.get());
                            it.next();
                            System.out.println("it.get() = " + it.get());
                            it.next();
                            System.out.println("it.get() = " + it.get());

Examples of javax.jcr.Session.move()

    }

    public static void moveResource(Resource res, String path) throws PersistenceException {
        try{
            Session session = res.adaptTo(Node.class).getSession();
            session.move(res.getPath(), path);
        } catch(RepositoryException re) {
            throw new PersistenceException(String.valueOf(re), re);
        }
    }

Examples of javax.jcr.Workspace.move()

        // move
        Workspace workspace = b.getSession().getWorkspace();

        try {
            // move shareable node
            workspace.move(b.getPath(), a2.getPath() + "/b");
            fail("Moving a mix:shareable should fail.");
        } catch (UnsupportedRepositoryOperationException e) {
            // expected
        }
    }

Examples of main.ch.morrolan.gibb.snake.BodyPart.move()

    public void move() {
        BodyPart part = new BodyPart(0, 0);
        Point position = new Point(0, 0);

        part.direction = Direction.DOWN;
        part.move(1);
        position.y += 1;
        assertEquals(position, part.position);

        part.direction = Direction.RIGHT;
        part.move(5);

Examples of net.helipilot50.stocktrade.framework.CircularList.move()

         * find the component in the list and return the next one
         */
        CircularList partners = getPartners((JComponent)comp);
        if (partners == null) return null;
        if (partners.find(comp)){
            partners.move();
            return (JComponent)partners.current();
        }
        return null;
    }
    public static CircularList getPartners(Component comp){
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.