Examples of Drag


Examples of org.sgx.yuigwt.yui.dd.Drag

YUI.Use(new String[]{"dd-drag", "console", "dd-plugin"}, new YUICallback() {

  @Override
  public void ready(final YuiContext Y) {
    Node node1 = parent.appendChild("<p>dragme1</p>");
    Drag dd = Y.newDDDrag(DragConfig.create().node(node1));
   
    //now a console dragable only at its title - using drag handle
    final Console console1 = Y.newConsole(ConsoleConfig.create()).render().cast();
    console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{"h4"}));
    console1.log("this console is only draggable by its title.");
View Full Code Here

Examples of org.sgx.yuigwt.yui.dd.Drag

        })
      )
    );
   
    //make the ellipse draggable
    Drag mydrag = Y.newDDDrag(DragConfig.create().node(ellipse1));
   
    //draw a path
    Shape diamond1 = g1.addShape(ShapeConfig.createPath().
      fill(Fill.create().color("blue").opacity(0.5))
    );
View Full Code Here

Examples of tripleplay.particle.effect.Drag

        explode.initters.add(Velocity.randomNormal(rando, 0, 70));
        explode.initters.add(Velocity.increment(0, 10));
        explode.effectors.add(Alpha.byAge(Interpolator.EASE_IN));
        explode.effectors.add(new Gravity(30));
        // explode.effectors.add(new Drag(0.95f));
        explode.effectors.add(new Drag(drag));
        explode.effectors.add(new Move());
        return explode;
    }
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.