Package com.lightcrafts.ui.export

Examples of com.lightcrafts.ui.export.SaveOptions


        final Dimension size = engine.getNaturalSize();
        try {
            final ImageExportOptions export =
                app.createExportOptions(info, size);
            if (export != null) {
                final SaveOptions options = getSaveOptions(export);
                options.setShouldSaveDirectly( true );
                return options;
            }
        }
        catch (IOException e) {
            // return null
View Full Code Here


    // Explanatory text
    private HelpArea help;

    SavePrefsPanel() {
        SaveOptions options = SaveOptions.getDefaultSaveOptions();
        ImageExportOptions export = SaveOptions.getExportOptions(options);

        List<ExportComboItem> filters = getExportAllComboItems();
        ImageType defaultType =
            SaveOptions.getExportOptions(options).getImageType();
View Full Code Here

    }

    void commit() {
        ExportComboItem item = (ExportComboItem) typeCombo.getSelectedItem();
        ImageExportOptions export = item.exportOptions;
        SaveOptions options;
        if (export.getImageType() == TIFFImageType.INSTANCE) {
            options = SaveOptions.createSidecarTiff(export);
        }
        else {
            options = SaveOptions.createSidecarJpeg(export);
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.export.SaveOptions

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.