Package com.vst.webapp.util

Examples of com.vst.webapp.util.ObjectPicture


        }
  }

  private void doDeleteDefectSymbols(HttpServletRequest request, String pathToSymbols, ConstructionDefect constructionDefect) throws FileNotFoundException, IOException{
    ObjectInputStream in = new ObjectInputStream(new FileInputStream(FileHelper.getCurrentPath(request)+pathToSymbols));
        ObjectPicture objectPicture=new ObjectPicture();
        try {
            objectPicture = (ObjectPicture) in.readObject();
            if (objectPicture != null) {
               List list=objectPicture.getObjectList();
                for (int l=0; l<list.size(); l++){
                       if (list.get(l) instanceof Symbols){
                            Symbols symbols=(Symbols)list.get(l);
                               if (symbols.getType().equals("defect") && symbols.getDefect().getConstructionDefectId()!=null && symbols.getDefect().getConstructionDefectId().equals(constructionDefect.getConstructionDefectId())){
                                   objectPicture.deleteObject(symbols);
                               }
                       }
                }
            }
        } catch (ClassNotFoundException e) {
View Full Code Here


                String saveWay = ImageUtil.getUniqueJPEGFile(request);
                request.setAttribute("saveWay", saveWay);
                detailSymbol.setWayToSymbol(saveWay);

                    ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(FileHelper.getCurrentPath(request)+detailSymbol.getWayToSymbol()));
                    out.writeObject(new ObjectPicture());
                    out.close();

                String saveWayImage = "image" + saveWay;
                detailSymbol.setWayToSymbolImage(saveWayImage);
                request.setAttribute("saveWayImage", saveWayImage);
View Full Code Here

                ObjectConstruction objectConstruction = objectConstructionManager.getObjectConstruction(constructionExample.getObjectConstructionId().toString());
                                                     try {

                                                         ObjectInputStream in = new ObjectInputStream(new FileInputStream(FileHelper.getCurrentPath(request)+objectConstruction.getWayToDefectMap()));
                                                         ObjectPicture objectPicture=new ObjectPicture();
                                                         try {
                                                             objectPicture = (ObjectPicture) in.readObject();

                                                             if (objectPicture != null) {
                                                                List list=objectPicture.getObjectList();



                                                                 for (int l=0; l<list.size(); l++){
                                                                        if (list.get(l) instanceof Symbols){
                                                                             Symbols symbols=(Symbols)list.get(l);



                                                                                if (symbols.getType().equals("point") && symbols.getStrength().getPointId()!=null && symbols.getStrength().getPointId().equals(strength.getPointId())){


                                                                                    objectPicture.deleteObject(symbols);
                                                                                }
                                                                        }
                                                                 }
                                                             }
                                                         } catch (ClassNotFoundException e) {
View Full Code Here

        try {

            ObjectInputStream in = new ObjectInputStream(new FileInputStream(fullPath+getFileName));
            try {

                ObjectPicture objectPicture = (ObjectPicture) in.readObject();
                if (objectPicture != null) {



                    return saveToJPEG(objectPicture, setFileName, fullPath);
View Full Code Here

TOP

Related Classes of com.vst.webapp.util.ObjectPicture

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.