Examples of ChangedEvent


Examples of org.joshy.gfx.event.ChangedEvent

    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

Examples of org.joshy.gfx.event.ChangedEvent

    }

    //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

Examples of org.joshy.gfx.event.ChangedEvent

        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

Examples of org.joshy.gfx.event.ChangedEvent

        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

Examples of org.joshy.gfx.event.ChangedEvent

            fireChange(old,this.enabled);
        }
    }

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

Examples of org.joshy.gfx.event.ChangedEvent

    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
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.