Package org.dynmap.markers

Examples of org.dynmap.markers.CircleMarker


  private static void showRoundBorder(String worldName, BorderData border)
  {
    if (squareBorders.containsKey(worldName))
      removeBorder(worldName);

    CircleMarker marker = roundBorders.get(worldName);
    if (marker == null)
    {
      marker = markSet.createCircleMarker("worldborder_"+worldName, Config.DynmapMessage(), false, worldName, border.getX(), 64.0, border.getZ(), border.getRadiusX(), border.getRadiusZ(), true);
      marker.setLineStyle(lineWeight, lineOpacity, lineColor);
      marker.setFillStyle(0.0, 0x000000);
      roundBorders.put(worldName, marker);
    }
    else
    {
      marker.setCenter(worldName, border.getX(), 64.0, border.getZ());
      marker.setRadius(border.getRadiusX(), border.getRadiusZ());
    }
  }
View Full Code Here


  public static void removeBorder(String worldName)
  {
    if (!borderEnabled()) return;

    CircleMarker marker = roundBorders.remove(worldName);
    if (marker != null)
      marker.deleteMarker();

    AreaMarker marker2 = squareBorders.remove(worldName);
    if (marker2 != null)
      marker2.deleteMarker();
  }
View Full Code Here

TOP

Related Classes of org.dynmap.markers.CircleMarker

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.