Package org.joshy.gfx.event

Examples of org.joshy.gfx.event.ChangedEvent


        return layers.get(0);
    }

    public void setForegroundColor(FlatColor foregroundColor) {
        this.foregroundColor = foregroundColor;
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.ColorChanged,this.foregroundColor,this));
    }
View Full Code Here


        return backgroundColor;
    }

    public void setBackgroundColor(FlatColor backgroundColor) {
        this.backgroundColor = backgroundColor;
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.ColorChanged,this.backgroundColor,this));
    }
View Full Code Here

    public void setSelectedColor(FlatColor color) {
        this.selectedColor = color;
        if(delegate != null) {
            delegate.setSelectedColor(color);
        }
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.ColorChanged,selectedColor,this,true));
        setDrawingDirty();
    }
View Full Code Here

    }

    //this fires an extra event where isAdjusting is false
    private void setFinalColor(FlatColor selectedColor) {
        setSelectedColor(selectedColor);
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.ColorChanged,selectedColor,this,false));
    }
View Full Code Here

        g.setPureStrokes(false);
    }

    public void setAlpha(double alpha) {
        this.alpha = alpha;
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.DoubleChanged,alpha,this));
        setDrawingDirty();
    }
View Full Code Here

        return alpha;
    }

    public void setAlpha(double alpha) {
        this.alpha = alpha;
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.DoubleChanged,this.alpha,this,true));
        alphaPicker.setAlpha(this.alpha);
        setDrawingDirty();
    }
View Full Code Here

            fireChange(old,this.enabled);
        }
    }

    private void fireChange(boolean old, boolean enabled) {
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.BooleanChanged,enabled,this));
    }
View Full Code Here

    public void setSelectedColor(FlatColor selectedColor) {
        this.selectedColor = selectedColor;
        if(delegate != null) {
            delegate.setSelectedColor(selectedColor);
        }
        EventBus.getSystem().publish(new ChangedEvent(ChangedEvent.ColorChanged,selectedColor,this,true));
        setDrawingDirty();
    }
View Full Code Here

TOP

Related Classes of org.joshy.gfx.event.ChangedEvent

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.