Package pivot.wtk.media

Examples of pivot.wtk.media.Picture


            image = shellFolder.getIcon(false);
        }

        if (image instanceof BufferedImage
            && useNativeIcons) {
            icon = new Picture((BufferedImage)image);
        } else {
            if (file instanceof Folder) {
                icon = defaultFolderImage;
            } else {
                icon = defaultFileImage;
View Full Code Here


                            Window rootOwner = activeWindow.getRootOwner();
                            hostFrame.setTitle(rootOwner.getTitle());

                            Image rootIcon = rootOwner.getIcon();
                            if (rootIcon instanceof Picture) {
                                Picture rootPicture = (Picture)rootIcon;
                                hostFrame.setIconImage(rootPicture.getBufferedImage());
                            }
                        }
                    }
                });
            }
View Full Code Here

                            Window rootOwner = activeWindow.getRootOwner();
                            windowedHostFrame.setTitle(rootOwner.getTitle());

                            Image rootIcon = rootOwner.getIcon();
                            if (rootIcon instanceof Picture) {
                                Picture rootPicture = (Picture)rootIcon;
                                windowedHostFrame.setIconImage(rootPicture.getBufferedImage());
                            }
                        }
                    }
                });
            }
View Full Code Here

        }

        if (dataFlavor.equals(DataFlavor.stringFlavor)) {
            transferData = localManifest.getText();
        } else if (dataFlavor.equals(DataFlavor.imageFlavor)) {
            Picture picture = (Picture)localManifest.getImage();
            transferData = picture.getBufferedImage();
        } else if (dataFlavor.equals(DataFlavor.javaFileListFlavor)) {
            FileList fileList = localManifest.getFileList();
            transferData = fileList.getList();
        } else if (dataFlavor.getRepresentationClass() == URL.class) {
            transferData = localManifest.getURL();
View Full Code Here

    }

    public Image getImage() throws IOException {
        Image image = null;
        try {
            image = new Picture((BufferedImage)transferable.getTransferData(imageDataFlavor));
        } catch(UnsupportedFlavorException exception) {
            System.err.println(exception);
        }

        return image;
View Full Code Here

TOP

Related Classes of pivot.wtk.media.Picture

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.