Package org.photovault.dcraw

Examples of org.photovault.dcraw.RawSettingsFactory.create()


            ctrl.viewChanged( this, PhotoInfoController.RAW_GREEN );
            if ( rawSettings != null ) {
                RawSettingsFactory f = new RawSettingsFactory( rawSettings );
                f.setGreenGain( newGain );
                try {
                    rawSettings = f.create();
                } catch (PhotovaultException ex) {
                    log.error( "Error setting color temp: " + ex.getMessage() );
                }
                firePreviewChangeEvent( new RawSettingsPreviewEvent(
                        this, ctrl.getPhotos(), rawSettings ) );
View Full Code Here


            ctrl.viewChanged( this, PhotoInfoController.RAW_CTEMP );
            if ( rawSettings != null ) {
                RawSettingsFactory f = new RawSettingsFactory( rawSettings );
                f.setColorTemp( newCTemp );
                try {
                    rawSettings = f.create();
                } catch (PhotovaultException ex) {
                    log.error( "Error setting color temp: " + ex.getMessage() );
                }
                firePreviewChangeEvent( new RawSettingsPreviewEvent(
                        this, ctrl.getPhotos(), rawSettings ) );
View Full Code Here

            ctrl.viewChanged( this, PhotoInfoController.RAW_BLACK_LEVEL );
            if ( rawSettings != null ) {
                RawSettingsFactory f = new RawSettingsFactory( rawSettings );
                f.setBlack( newBlack );
                try {
                    rawSettings = f.create();
                } catch (PhotovaultException ex) {
                    log.error( "Error setting black: " + ex.getMessage() );
                }
                firePreviewChangeEvent( new RawSettingsPreviewEvent(
                        this, ctrl.getPhotos(), rawSettings ) );
View Full Code Here

            ctrl.viewChanged( this, PhotoInfoController.RAW_EV_CORR );
            if ( rawSettings != null ) {
                RawSettingsFactory f = new RawSettingsFactory( rawSettings );
                f.setEvCorr( newEv );
                try {
                    rawSettings = f.create();
                } catch (PhotovaultException ex) {
                    log.error( "Error setting EV correction: " + ex.getMessage() );
                }
                firePreviewChangeEvent( new RawSettingsPreviewEvent(
                        this, ctrl.getPhotos(), rawSettings ) );
View Full Code Here

            ctrl.viewChanged( this, PhotoInfoController.RAW_HLIGHT_COMP );
            if ( rawSettings != null ) {
                RawSettingsFactory f = new RawSettingsFactory( rawSettings );
                f.setHlightComp( newHlightComp );
                try {
                    rawSettings = f.create();
                } catch (PhotovaultException ex) {
                    log.error( "Error setting green gain: " + ex.getMessage() );
                }
                firePreviewChangeEvent( new RawSettingsPreviewEvent(
                        this, ctrl.getPhotos(), rawSettings ) );
View Full Code Here

            ctrl.viewChanged( this, PhotoInfoController.RAW_COLOR_PROFILE );
            if ( rawSettings != null ) {
                RawSettingsFactory f = new RawSettingsFactory( rawSettings );
                f.setColorProfile( p );
                try {
                    rawSettings = f.create();
                } catch (PhotovaultException ex) {
                /*
                 This should never occur in this case (it it thrown only if
                 color balance settings are incomplete, and the seed object could
                 not exist at all if that was the case)
View Full Code Here

                    Map.Entry e = (Map.Entry) rawIter.next();
                    PhotoInfo p = (PhotoInfo) e.getKey();
                    RawSettingsFactory f = (RawSettingsFactory) e.getValue();
                    RawConversionSettings r = null;
                    try {
                        r = f.create();
                    } catch (PhotovaultException ex) {
                        ex.printStackTrace();
                    }
                    p.setRawSettings( r );
                }
View Full Code Here

                while ( colorIter.hasNext() ) {
                    Map.Entry e = (Map.Entry) colorIter.next();
                    PhotoInfo p = (PhotoInfo) e.getKey();
                    ChannelMapOperationFactory f = (ChannelMapOperationFactory) e.getValue();
                    ChannelMapOperation o = null;
                    o = f.create();
                    p.setColorChannelMapping( o );
                }
            }
        } catch ( LockNotGrantedException e ) {
            txw.abort();
View Full Code Here

        digester.addRule( "*/photo/color-mapping", new Rule() {
            public void end( String namespace, String name ) {
                PhotoInfo p = (PhotoInfo) digester.peek(1);
                ChannelMapOperationFactory f =
                        (ChannelMapOperationFactory) digester.peek();
                p.setColorChannelMapping( f.create() );               
            }
        });
       
        digester.addObjectCreate( "*/photo/raw-conversion", RawSettingsFactory.class );
        digester.addRule( "*/photo/raw-conversion", new Rule() {
View Full Code Here

        digester.addRule( "*/photo/raw-conversion", new Rule() {
            public void end( String namespace, String name ) {
                PhotoInfo p = (PhotoInfo)digester.peek(1);
                RawSettingsFactory f = (RawSettingsFactory) digester.peek();
                try {
                    p.setRawSettings( f.create() );
                } catch (PhotovaultException ex) {
                    digester.createSAXException( ex );
                }
            }
        })
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.