Examples of Image


Examples of com.scraper.model.Image

    {
      List<ImageJob> queue = new ArrayList<>();

      while (parser.hasNextImage())
      {
        Image image = parser.nextImage();
        if(image != null)
        {
          queue.add(new ImageJob(image, path, downloader
              .createProgressBar(image)));
        }
View Full Code Here

Examples of com.scriptographer.adm.Image

 
  /**
   * Load image from resource with given name
   */
  protected static Image getImage(String filename) {
    Image image = images.get(filename);
    if (image == null) {
      try {
        image = new Image(AdmUiFactory.class.getClassLoader().getResource(
            "com/scriptographer/ui/resources/" + filename));
      } catch (IOException e) {
        System.err.println(e);
        image = new Image(1, 1, ImageType.RGB);
      }
    }
    images.put(filename, image);
    return image;
  }
View Full Code Here

Examples of com.sun.dtv.lwuit.Image

        int width = rect.getSize().getWidth();
        int height = rect.getSize().getHeight();
        if (width <= 0 || height <= 0) {
            return;
        }
        Image bgImage = s.getBgImage();
        if (bgImage == null) {
            if (parent.hasFocus() && parent.isFocusPainted()) {
                g.setColor(s.getBgSelectionColor());
                g.fillRect(x, y, width, height, s.getBgTransparency());
            } else {
                g.setColor(s.getBgColor());
                g.fillRect(x, y, width, height, s.getBgTransparency());
            }
        } else {
            if (s.isScaleImage()) {
                if (bgImage.getWidth() != width || bgImage.getHeight() != height) {
                    bgImage = bgImage.scaled(width, height);
                    s.setBgImage(bgImage, true);
                }
            } else {
                int iW = bgImage.getWidth();
                int iH = bgImage.getHeight();
                for(int xPos = 0 ; xPos < width ; xPos += iW) {
                    for(int yPos = 0 ; yPos < height ; yPos += iH) {
                        g.drawImage(s.getBgImage(), x + xPos, y + yPos);
                    }
                }
View Full Code Here

Examples of com.sun.lwuit.Image

   * Get Image object
   *@param name
   *@return Image
   */
  public static Image displayImage(String name) {
    Image image;
    try {
      image = Image.createImage(getImage(name));
    }catch (java.io.IOException e) {
      return null;
    }
View Full Code Here

Examples of com.sun.pkg.client.Image

    @Handler(id="getInstalledPath",
        output={
        @HandlerOutput(name="result", type=String.class)})
    public static void getInstalledPath(HandlerContext handlerCtx) {
        Image image = getUpdateCenterImage();
        handlerCtx.setOutputValue("result"(image == null) ?
            GuiUtil.getMessage(BUNDLE, "updateCenter.NoImageDirectory") : image.getRootDirectory());
    }
View Full Code Here

Examples of com.sun.syndication.feed.rss.Image

        }       
        return channel;
    }

    protected Image createRSSImage(SyndImage sImage) {
        Image image = super.createRSSImage(sImage);
        image.setDescription(sImage.getDescription());
        return image;
    }
View Full Code Here

Examples of com.totsp.gwittir.client.ui.Image

        final SoftScrollArea ssp = new SoftScrollArea();
        scroll.add(ssp, DockPanel.CENTER);
        ssp.setWidth("500px");
        ssp.setHeight("500px");
        VerticalPanel vp = new VerticalPanel();
        vp.add(new Image(GWT.getModuleBaseURL() + "crested_butte.jpg"));

        final Button visible = new Button("ensure visible test");
        vp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
        vp.add(visible);

        vp.add(new Image(GWT.getModuleBaseURL() + "crested_butte.jpg"));
        vp.add(new Image(GWT.getModuleBaseURL() + "crested_butte.jpg"));
        vp.add(new Image(GWT.getModuleBaseURL() + "crested_butte.jpg"));

        ssp.setWidget(vp);

        SoftScrollbar bar = new SoftAnimatedScrollbar(ssp);
        //bar.setLowerWidget( new Image( GWT.getModuleBaseURL()+"gwtip.png") );
View Full Code Here

Examples of com.vaadin.ui.Image

    @Override
    protected void setup() {
        AbstractEmbedded e;

        e = new Image("Image w/o alt text");
        addComponent(e);

        e = new Image("Image w/ alt text");
        e.setAlternateText("Image");
        addComponent(e);

        e = new Flash("Flash w/o alt text");
        addComponent(e);
View Full Code Here

Examples of com.volantis.map.sti.model.Image

     * @param prefix prefix of parameter where parameter can be found.
     * @return image model object.
     * @throws ConverterException
     */
    private Image getImage() throws ConverterException {
        Image image = new Image();

        setMediaParameters(image);

        String limitParameter = getParameterValue(ParameterNames.MAX_IMAGE_SIZE);

        if (limitParameter != null) {
            image.setSizeLimit(Long.parseLong(limitParameter));
        }

        // Set image width
        image.setWidth(getIntParameterValue(ParameterNames.IMAGE_WIDTH, 0));

        // Set image transformations
        Transformations transformations = getTransformations();

        if (null != transformations) {
            image.setTransformations(transformations);
        }

        return image;
    }
View Full Code Here

Examples of com.woorea.openstack.glance.model.Image

    return headers;
  }

  public static Image parse(Map<String, String> headers) {
    Image image = new Image();
    image.setId(headers.get("X-Image-Meta-Id"));
    image.setUri(headers.get("Location"));
    image.setName(headers.get("X-Image-Meta-Name"));
    image.setDiskFormat(headers.get("X-Image-Meta-Disk_format"));
    image.setContainerFormat(headers.get("X-Image-Meta-Container_format"));
    image.setSize(asLong(headers.get("X-Image-Meta-Size")));
    image.setChecksum(headers.get("X-Image-Meta-Checksum"));
    image.setCreatedAt(asCalendar(headers.get("X-Image-Meta-Created_at")));
    image.setUpdatedAt(asCalendar(headers.get("X-Image-Meta-Updated_at")));
    image.setDeletedAt(asCalendar(headers.get("X-Image-Meta-Deleted_at")));
    image.setDeleted(asBoolean(headers.get("X-Image-Meta-Deleted")));
    image.setStatus(headers.get("X-Image-Meta-Status"));
    image.setProtected(asBoolean(headers.get("X-Image-Meta-Protected")));
    image.setPublic(asBoolean(headers.get("X-Image-Meta-Is_public")));
    image.setMinRam(asInteger(headers.get("X-Image-Meta-Min_ram")));
    image.setMinDisk(asInteger(headers.get("X-Image-Meta-Min_disk")));
    image.setOwner(headers.get("X-Image-Meta-Owner"));
    for(String key : headers.keySet()) {
      if(key.startsWith("x-image-meta-property-")) {
        image.getProperties().put(key.substring(22), headers.get(key));
      }
    }
    return image;
  }
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.