Examples of ImportedImage


Examples of org.bric.input.ImportedImage

            if (values == null || values.length == 0) {
                return null;
            }
            ArrayList<ImportedImage> alist = new ArrayList<ImportedImage>(values.length);
            for (int i = 0; i < values.length; i++) {
                ImportedImage o = values[i];
                alist.add(o);
            }
            return new ArrayListTransferable(alist);
        }
        return null;
View Full Code Here

Examples of org.bric.input.ImportedImage

    }//GEN-LAST:event_jButton7ActionPerformed


    private void jList1ValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jList1ValueChanged
        try {
            ImportedImage importedImage = (ImportedImage) model.get(jList1.getSelectedIndex());
           
            generateThumbnailMetadataOnDemand(importedImage);
           
            jLabel2.setIcon(importedImage.getThumbnailImageIcon());
            previewInfo(importedImage.getPath(), importedImage.getDimensions(), importedImage.getSize());
        } catch (Exception e) {
            jLabel2.setIcon(DEFAULT_ICON);
        }
    }//GEN-LAST:event_jList1ValueChanged
View Full Code Here

Examples of org.bric.input.ImportedImage

        if (evt.getClickCount() == 2) {
            try {
                if(model.isEmpty()){
                   return;
                }
                ImportedImage image = (ImportedImage) model.get(jList1.getSelectedIndex());
                Desktop.getDesktop().open(new File(image.getPath()));
            } catch (IOException ex) {
                Logger.getLogger(BricUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_jList1MouseClicked
View Full Code Here

Examples of org.bric.input.ImportedImage

                        if (hash.contains(imagesList.get(i))) {
                            duplicatePane(imagesList.get(i));
                        }

                        if (duplicateAction == Utils.REPLACE || duplicateAction == Utils.REPLACE_ALL || !hash.contains(imagesList.get(i))) {
                            ImportedImage im = new ImportedImage( imagesList.get(i) );
                            if(!im.isCorrupted()){
                                addToModel(im);
                                importer.updateValue(true);
                            }else{
                                importer.updateValue(false);
                            }
View Full Code Here

Examples of org.bric.input.ImportedImage

                ImageProcessHandler mainProcess;
               
                if(!preview){
                    mainProcess = new ImageProcessHandler(model);
                } else {
                    ImportedImage importedImage = (ImportedImage) model.get(jList1.getSelectedIndex());
                    mainProcess = new ImageProcessHandler(importedImage);
                }
                OutputParameters outputParameters = null;
                ResizeParameters resizeParameters = null;
                RotateParameters rotateParameters = null;
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.