Package com.lightcrafts.ui.editor

Examples of com.lightcrafts.ui.editor.Document$MissingImageFileException


        super(frame, icon);
    }

    void updateButton() {
        final ComboFrame frame = getComboFrame();
        final Document doc = frame.getDocument();
        setEnabled(doc != null);
    }
View Full Code Here


        );
    }

    void updateButton() {
        ComboFrame frame = getComboFrame();
        Document newDoc = frame.getDocument();
        if (newDoc == doc) {
            return;
        }
        if (doc != null) {
            Action action = doc.getUndoAction();
View Full Code Here

            Cancellable = new ProgressThread(DummyIndicator) {
                public void run() {
                    try {
                        frame.showWait(LOCALE.get("LoadMessage"));
                        notifyListenerStart(listener);
                        Document doc = Application.createDocument(
                            file, frame, Cancellable
                        );
                        notifyListener(doc, listener);
                    }
                    catch (Throwable t) {
View Full Code Here

        );
    }

    void updateButton() {
        ComboFrame frame = getComboFrame();
        Document newDoc = frame.getDocument();
        if (newDoc == doc) {
            return;
        }
        if (doc != null) {
            Action action = doc.getUndoAction();
View Full Code Here

        ImageInfo info = ImageInfo.getInstanceFor(file);
        try {
            if (info.getImageType() != LZNImageType.INSTANCE) {
                return null;
            }
            Document doc = Application.createDocumentHeadless(file);
            Engine engine = doc.getEngine();
            Dimension dim = new Dimension(size, size);
            RenderedImage preview = engine.getRendering(dim);
            // divorce the preview from the document
            preview = new CachedImage(
                (PlanarImage) preview, JAIContext.fileCache
            );
            doc.dispose();
            return preview;
        }
        catch (Throwable t) {
            // UnknownImageTypeException
            // IOException
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.editor.Document$MissingImageFileException

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.