Examples of PImage


Examples of com.ponysdk.ui.server.basic.PImage

            public void onClick(final PClickEvent event) {
                secondItem.setState(secondItem.getState() ? false : true);
            }
        });

        final PTreeItem thirdItem = new PTreeItem(new PImage("images/pony.png"));

        tree.addItem(firstItem);
        tree.addItem(secondItem);
        tree.addItem(thirdItem);
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PImage

    private final PSimplePanel closeContainer;

    private final PSimplePanel contentContainer;

    public PClosableDialogBox(final String caption) {
        this(false, new PLabel(caption), new PImage("images/close_16.png"));
    }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PImage

    private PHorizontalPanel buildPushButtonPanel() {
        final PHorizontalPanel panel = new PHorizontalPanel();
        panel.setSpacing(10);

        enabledPushButton = new PPushButton(new PImage("images/pony.png"));
        panel.add(enabledPushButton);

        disabledPushButton = new PPushButton(new PImage("images/pony.png"));
        disabledPushButton.setEnabled(false);
        panel.add(disabledPushButton);

        return panel;
    }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PImage

    @Override
    protected void onFirstShowPage() {
        super.onFirstShowPage();

        final PFlowPanel panel = new PFlowPanel();
        panel.add(new PImage("images/pony.png"));

        examplePanel.setWidget(panel);
    }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PImage

            simplePanel.setWidth("30px");
            simplePanel.add(buttonPanel);
            if (i != 1) {

                // up image
                final PImage upImage = new PImage(ARROW_UP_IMAGE_URL);
                upImage.setTitle("Move column up");
                buttonPanel.add(upImage);
                buttonPanel.setCellHorizontalAlignment(upImage, PHorizontalAlignment.ALIGN_LEFT);
                upImage.addClickHandler(new PClickHandler() {

                    @Override
                    public void onClick(final PClickEvent event) {
                        final int index = labels.indexOf(label) - 1;
                        labels.remove(label);
                        labels.add(index, label);
                        fireColumnMoved();
                        for (int row = 1; row <= labels.size(); row++) {
                            labelPanel.getRowFormatter().removeStyleName(row, PonySDKTheme.SIMPLELIST_SELECTEDROW);
                        }
                        labelPanel.getRowFormatter().addStyleName(index + 1, PonySDKTheme.SIMPLELIST_SELECTEDROW);
                    }
                });
            }
            if (i != labels.size()) {
                // down image
                final PImage downImage = new PImage(ARROW_DOWN_IMAGE_URL);
                downImage.setTitle("Move column down");
                buttonPanel.add(downImage);
                buttonPanel.setCellHorizontalAlignment(downImage, PHorizontalAlignment.ALIGN_RIGHT);
                downImage.addClickHandler(new PClickHandler() {

                    @Override
                    public void onClick(final PClickEvent event) {
                        final int index = labels.indexOf(label) + 1;
                        labels.remove(label);
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PImage

public class SwitchImageCellRenderer<D> extends AbstractCellRenderer<D, Boolean> {

    @Override
    public IsPWidget render0(int row, D data, Boolean value) {
        // TODO not a switch ......
        return new PImage(value ? "icons/16/check.png" : "icons/16/block.png");
    }
View Full Code Here

Examples of edu.umd.cs.piccolo.nodes.PImage

   * Draw the image with the given name at (x,y). Any image loaded stays in
   * memory, so if you intend to redraw an image, you do not have to use
   * createImage again.
   */
  public void drawImage(String internalName, int x_pos, int y_pos) {
    PImage img = SVImageHandler.getImage(internalName);
    img.setX(x_pos);
    img.setY(y_pos);
    layer.addChild(img);
  }
View Full Code Here

Examples of edu.umd.cs.piccolo.nodes.PImage

      System.exit(1);
    }

    bi.setRGB(0, 0, width, height, pictureArray, 0, width);

    PImage img = new PImage(bi);

    images.put(imageName, img);

    imageName = null;
    readImageData = false;
View Full Code Here

Examples of edu.umd.cs.piccolo.nodes.PImage

   *
   * @param location The (local) location from where to open the file. This is
   * also the internal name associated with the image (if you want to draw it).
   */
  public static void openImage(String location) {
    PImage img = new PImage(location);
    images.put(location, img);
  }
View Full Code Here

Examples of processing.core.PImage

    //this.setLabel(label);

    if (img_up_path == null)
      return;

    PImage img_src = controller.applet.loadImage(img_up_path);

    if (w == 0 || h == 0) {
      w = img_src.width;
      h = img_src.height;
      img_up = img_src;
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.