Package net.alteiar.utils.file.images

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


public class MapFactory {

  public static MapBean createMap(String name, File backgroundImage)
      throws IOException {
    return createMap(name, new SerializableImage(backgroundImage));
  }
View Full Code Here


  public int verifyInnerClassCall;

  public static TransfertImage createTransfertImage(String path) {
    TransfertImage battleImages = null;
    try {
      battleImages = new SerializableImage(new File(path));
    } catch (IOException e) {
      fail("cannot read file " + path);
    }

    return battleImages;
View Full Code Here

        System.out.println("server take more than 10 second");
      }

      t.start();
      CampaignClient.getInstance().addBean(
          new ImageBean(new SerializableImage(new File(
              "./test/ressources/medium.jpg"))));
      t.end("transfert sended");
      bean = CampaignClient.getInstance().getBean(id, time10second);
      if (bean != null) {
        BufferedImage img = bean.getImage().restoreImage();
View Full Code Here

        System.out.println("server take more than 10 second");
      }

      t.start();
      CampaignClient.getInstance().addBean(
          new ImageBean(new SerializableImage(new File(
              "./test/ressources/large.jpg"))));
      t.end("transfert sended");
      bean = CampaignClient.getInstance().getBean(id, time30second);
      if (bean != null) {
        BufferedImage img = bean.getImage().restoreImage();
View Full Code Here

public class TestCharacter extends NewCampaignTest {

  public static TransfertImage createTransfertImage(String path) {
    TransfertImage battleImages = null;
    try {
      battleImages = new SerializableImage(new File(path));
    } catch (IOException e) {
      fail("cannot read file " + path);
    }

    return battleImages;
View Full Code Here

  private void selectAvatar() {
    File imageFile = StaticDialog.getSelectedImageFile(this);
    if (imageFile != null) {
      try {
        transfertImage = new SerializableImage(imageFile);
      } catch (IOException e) {
        ExceptionTool.showError(e);
      }
    }
    revalidateImage();
View Full Code Here

    TransfertImage selectedImage = null;
    File imageFile = StaticDialog.getSelectedImageFile(null);

    if (imageFile != null) {
      try {
        selectedImage = new SerializableImage(imageFile);
      } catch (Exception e) {
        Logger.getLogger(getClass()).warn(
            "Problème pour crée une image", e);
      }
    }
View Full Code Here

  private void selectAvatar() {
    File imageFile = StaticDialog.getSelectedImageFile(this);
    if (imageFile != null) {
      try {
        transfertImage = new SerializableImage(imageFile);
      } catch (IOException e) {
        ExceptionTool.showError(e);
      }
    }
    revalidateImage();
View Full Code Here

    File imgFile = StaticDialog.getSelectedImageFile((Component) action
        .getSource());

    if (imgFile != null) {
      try {
        ImageBean bean = new ImageBean(new SerializableImage(imgFile));
        CampaignClient.getInstance().addBean(bean);
        // BufferedImage img = ImageIO.read(imgFile);
        filter.setFilteredImageId(bean.getId());
      } catch (IOException e) {
        Logger.getLogger(getClass()).error(
View Full Code Here

  private void selectAvatar() {
    File imageFile = StaticDialog.getSelectedImageFile(this);
    if (imageFile != null) {
      try {
        transfertImage = new SerializableImage(imageFile);
      } catch (IOException e) {
        ExceptionTool.showError(e);
      }
    }
    revalidateImage();
View Full Code Here

TOP

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

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.