Package net.alteiar.utils.file.images

Examples of net.alteiar.utils.file.images.WebImage


    return createMap(name, new SerializableImage(backgroundImage));
  }

  public static MapBean createMap(String name, URL backgroundUrl)
      throws IOException {
    return createMap(name, new WebImage(backgroundUrl));
  }
View Full Code Here


  @Test
  public void testImage() {
    ImageBean image = new ImageBean();
    try {
      image.setImage(new WebImage(
          new URL(
              "http://www.alteiar.net/wiki/lib/exe/fetch.php?cache=&media=applications:chat.jpg")));

      BufferedImage target = ImageIO
          .read(new URL(
View Full Code Here

    save();

    ImageBean toRemove = null;
    try {
      toRemove = new ImageBean(new WebImage(new URL("http://google.com")));
      CampaignClient.getInstance().addBean(toRemove);
    } catch (MalformedURLException e) {
      fail("no exception should occur");
    }
View Full Code Here

    sleep();
    save();

    ImageBean toRemove = null;
    try {
      toRemove = new ImageBean(new WebImage(new URL("http://google.com")));
      CampaignClient.getInstance().addBean(toRemove);
    } catch (MalformedURLException e) {
      fail("no exception should occur");
    }
View Full Code Here

  @Test
  public void testBenchmarkMediumImages() {
    try {
      Timer t = new Timer();
      t.start();
      ImageBean bean = new ImageBean(new WebImage(new URL(
          "http://www.alteiar.net/images/cartes/Carte_du_monde.jpg")));
      UniqueID id = bean.getId();

      CampaignClient.getInstance().addBean(bean);
      t.end("server sended");
View Full Code Here

  @Test
  public void testBenchmarkLargeImages() {
    try {
      Timer t = new Timer();
      t.start();
      ImageBean bean = new ImageBean(new WebImage(new URL(
          "http://www.alteiar.net/MyUpload/large.jpg")));
      UniqueID id = bean.getId();

      CampaignClient.getInstance().addBean(bean);
      t.end("server sended");
View Full Code Here

    dialogUrl.setLocationRelativeTo(null);
    dialogUrl.pack();
    dialogUrl.setVisible(true);

    if (dialogUrl.getReturnStatus() == DialogOkCancel.RET_OK) {
      selectedImage = new WebImage(dialogUrl.getMainPanel().getUrl());
    }

    return selectedImage;
  }
View Full Code Here

TOP

Related Classes of net.alteiar.utils.file.images.WebImage

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.