Package de.yaams.extensions.basemap.tiled.mapeditor.brush

Examples of de.yaams.extensions.basemap.tiled.mapeditor.brush.ShapeBrush.makeQuadBrush()


    // FIXME: this is an in-elegant hack, but it gets the user out
    // of custom brush mode
    // (reset the brush if necessary)
    if (currentBrush instanceof CustomBrush) {
      ShapeBrush sb = new ShapeBrush();
      sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
      sb.setTile(currentTile);
      setBrush(sb);
    }
  }
View Full Code Here


    currentMap = newMap;
    boolean mapLoaded = currentMap != null;

    // Create a default brush (protect against a bug with custom brushes)
    ShapeBrush sb = new ShapeBrush();
    sb.makeQuadBrush(new Rectangle(0, 0, 1, 1));
    setBrush(sb);

    tabbedTilesetsPane.setMap(currentMap);

    if (!mapLoaded) {
View Full Code Here

      brushes.add(brush);
    }

    for (int dimension : dimensions) {
      ShapeBrush brush = new ShapeBrush();
      brush.makeQuadBrush(new Rectangle(0, 0, dimension, dimension));
      brushes.add(brush);
    }
  }

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