Package org.photovault.image

Examples of org.photovault.image.ColorCurve.addPoint()


    private void showCurve( int chan ) {
        currentColorCurve = chan;
        if ( colorCurves[chan] == null ) {
            // The curve is not present in current profile
            ColorCurve c = colorCurves[chan] = new ColorCurve();
            c.addPoint( 0.0, 0.0 );
            c.addPoint( 1.0, 1.0 );
        }
        colorCurvePanel1.setCurve( colorCurves[chan], curveColors[chan] );
        colorCurvePanel1.clearReferenceCurves();
        if ( refCurves[chan] != null ) {
View Full Code Here


        currentColorCurve = chan;
        if ( colorCurves[chan] == null ) {
            // The curve is not present in current profile
            ColorCurve c = colorCurves[chan] = new ColorCurve();
            c.addPoint( 0.0, 0.0 );
            c.addPoint( 1.0, 1.0 );
        }
        colorCurvePanel1.setCurve( colorCurves[chan], curveColors[chan] );
        colorCurvePanel1.clearReferenceCurves();
        if ( refCurves[chan] != null ) {
            for ( Object c : refCurves[chan] ) {
View Full Code Here

     */
    public void testSetCurve() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        cp.setCurve( c );
       
        // Drag the black point
        int startX = 0;
View Full Code Here

    public void testSetCurve() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        cp.setCurve( c );
       
        // Drag the black point
        int startX = 0;
        int startY = cp.getHeight()-1;
View Full Code Here

     */
    public void testDragOutside() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        cp.setCurve( c );
       
        // Drag the black point
        int startX = 0;
View Full Code Here

    public void testDragOutside() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        cp.setCurve( c );
       
        // Drag the black point
        int startX = 0;
        int startY = cp.getHeight()-1;
View Full Code Here

     */
    public void testCreateCP() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        cp.setCurve( c );
       
        CurvePanelListener l = new CurvePanelListener();
        cp.addListener( l );
View Full Code Here

    public void testCreateCP() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        cp.setCurve( c );
       
        CurvePanelListener l = new CurvePanelListener();
        cp.addListener( l );
        Point start = getCurvePoint( c, 0.3 );
View Full Code Here

     */
    public void testDragCross() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        c.addPoint( 0.5, 0.5 );
        c.addPoint( 0.6, 0.4 );
        cp.setCurve( c );
        Point start = getCurvePoint( c, 0.5 );
View Full Code Here

    public void testDragCross() {
        showFrame();
        tester.actionWaitForIdle();
        ColorCurve c = new ColorCurve();
        c.addPoint( 0.0, 0.0 );
        c.addPoint( 1.0, 1.0 );
        c.addPoint( 0.5, 0.5 );
        c.addPoint( 0.6, 0.4 );
        cp.setCurve( c );
        Point start = getCurvePoint( c, 0.5 );
        tester.mousePress( cp, (int)start.getX(), (int)start.getY() );
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.