Package de.yaams.extensions.basemap.tiled.core

Examples of de.yaams.extensions.basemap.tiled.core.TileLayer.copyFrom()


      // STAMP
      if (mouseButton == MouseEvent.BUTTON3 && layer instanceof TileLayer) {
        // Right mouse button dragged: create and set custom brush
        TileLayer brushLayer = new TileLayer(bounds);
        brushLayer.copyFrom(getCurrentLayer());
        brushLayer.setOffset(tile.x - (int) bounds.getWidth() / 2, tile.y - (int) bounds.getHeight() / 2);

        // Do a quick check to make sure the selection is not empty
        if (brushLayer.isEmpty()) {
          JOptionPane.showMessageDialog(appFrame, Resources.getString("dialog.selection.empty"),
View Full Code Here


      }
    }

    Rectangle bounds = new Rectangle(area.x, area.y, area.width + 1, area.height + 1);
    after = new TileLayer(bounds);
    after.copyFrom(layer);

    MapLayerEdit mle = new MapLayerEdit(layer, before, after);
    mle.setPresentationName(TOOL_FILL);
    undoSupport.postEdit(mle);
  }
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.