Examples of ClippedImagePrototype


Examples of com.google.gwt.user.client.ui.impl.ClippedImagePrototype

        @Override
        public RolodexCard[] getRolodexCards() {
            RolodexCard[] cards = new RolodexCard[3];
            for (int index = 0; index < 3; index++) {
                ClippedImagePrototype expanded = new ClippedImagePrototype(defaultImage.getURL(), 0, 0, 300, 200);
                ClippedImagePrototype collapseLeft = new ClippedImagePrototype(defaultImage.getURL(), 0, 0, 100, 100);
                ClippedImagePrototype collapseRight = new ClippedImagePrototype(defaultImage.getURL(), 0, 0, 100, 100);
                cards[index] = new RolodexCard(expanded, collapseLeft, collapseRight, 300, 100, 0);
            }
            return cards;
        }
View Full Code Here

Examples of com.google.gwt.user.client.ui.impl.ClippedImagePrototype

        panel.setAnimated(this.animated);
        panel.setStyleName(this.cssClassName);
    }
   
    private RolodexCard createCard(String url) {
        ClippedImagePrototype expanded = new ClippedImagePrototype(url, 0, 0, getOffsetWidth() / 2, getOffsetHeight());
        ClippedImagePrototype collapseLeft = new ClippedImagePrototype(url, 0, 0, getOffsetWidth() / 4, getOffsetHeight() / 2);
        ClippedImagePrototype collapseRight = new ClippedImagePrototype(url, 0, 0, getOffsetWidth() / 4, getOffsetHeight() / 2);
        int expandedWidth = getOffsetWidth() / 2;
        int collapsedWidth = getOffsetWidth() / 4;
        int heightOffset = getOffsetHeight() / 4;
        RolodexCard card = new RolodexCard(expanded, collapseLeft, collapseRight, expandedWidth, collapsedWidth, heightOffset);
        return card;
View Full Code Here

Examples of com.google.gwt.user.client.ui.impl.ClippedImagePrototype

   * @param width the image width in pixels
   * @param height the image height in pixels
   * @return the image
   */
  public static AbstractImagePrototype createPath(String url, int width, int height) {
    ClippedImagePrototype c = new ClippedImagePrototype(url, 0, 0, width, height);
    return c;
  }
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.