Package com.google.gwt.query.client.plugins.effects.Fx

Examples of com.google.gwt.query.client.plugins.effects.Fx.TransitFx


      } else {
        trsStart = "";
        trsEnd = val;
      }
    }
    return new TransitFx(key, val, trsStart, trsEnd, unit);
  }
View Full Code Here


  }

  private Properties getFxProperties(boolean isStart) {
    Properties p = $$();
    for (int i = 0; i < effects.length(); i++) {
      TransitFx fx = (TransitFx)effects.get(i);
      String val = isStart ? fx.transitStart : fx.transitEnd;
      if (!val.isEmpty()) {
        p.set(fx.cssprop, val + fx.unit);
      }
    }
View Full Code Here

        originY = "bottom";
      }

      g.show().css("transformOrigin", originX + " " + originY);

      effects.add(new TransitFx("scale", "", scaleXini + " " + scaleYini, scaleXend + " " + scaleYend, ""));
    }
View Full Code Here

  public void testComputeFxPropTransitions() {
    $(e).html("<table border=1 id=idtest><tr><td width=200px>A</td><td width=100px>B</td></tr></table>");
    $("#idtest").css("position", "absolute").find("td");
    final GQuery g = $("#idtest td");
   
    TransitFx fx = (TransitFx)TransitionsAnimation.computeFxProp(g.get(0), "width", "+=100", false);
    assertEquals("10", fx.transitStart.replace(".0",""));
    assertEquals("110", fx.transitEnd.replace(".0",""));
    assertEquals("px", fx.unit);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.query.client.plugins.effects.Fx.TransitFx

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.