Package tiled.mapeditor.util

Examples of tiled.mapeditor.util.MapChangedEvent


    /**
     * Notifies all registered map change listeners about a change.
     */
    protected void fireMapChanged() {
        Iterator iterator = mapChangeListeners.iterator();
        MapChangedEvent event = null;

        while (iterator.hasNext()) {
            if (event == null) event = new MapChangedEvent(this);
            ((MapChangeListener) iterator.next()).mapChanged(event);
        }
    }
View Full Code Here


     *
     * @param index the index of the removed tileset
     */
    protected void fireTilesetRemoved(int index) {
        Iterator iterator = mapChangeListeners.iterator();
        MapChangedEvent event = null;

        while (iterator.hasNext()) {
            if (event == null) event = new MapChangedEvent(this);
            ((MapChangeListener) iterator.next()).tilesetRemoved(event, index);
        }
    }
View Full Code Here

     *
     * @param tileset the new tileset
     */
    protected void fireTilesetAdded(TileSet tileset) {
        Iterator iterator = mapChangeListeners.iterator();
        MapChangedEvent event = null;

        while (iterator.hasNext()) {
            if (event == null) event = new MapChangedEvent(this);
            ((MapChangeListener) iterator.next()).tilesetAdded(event, tileset);
        }
    }
View Full Code Here

TOP

Related Classes of tiled.mapeditor.util.MapChangedEvent

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.