Class GeoArea

java.lang.Object
org.netxms.client.GeoArea

public class GeoArea extends Object
Geographical area
  • Field Details

  • Constructor Details

    • GeoArea

      public GeoArea(int id, String name, String comments, List<GeoLocation> border)
      Create new geographical area object.
      Parameters:
      id - area ID
      name - area name
      comments - comments
      border - border points
    • GeoArea

      public GeoArea(NXCPMessage msg, long baseId)
      Create area object from NXCP message.
      Parameters:
      msg - NXCP message
      baseId - base field ID
    • GeoArea

      public GeoArea(GeoArea src)
      Copy constructor
      Parameters:
      src - source object
  • Method Details

    • getBoundingBox

      public GeoLocation[] getBoundingBox()
      Get bounding box for this area. First element of resulting array will contain north-west corner and second element - south-east corner.
      Returns:
      bounding box for this area (north-west and south-east corners)
    • getId

      public int getId()
      Returns:
      the id
    • getName

      public String getName()
      Returns:
      the name
    • getComments

      public String getComments()
      Returns:
      the comments
    • getBorder

      public List<GeoLocation> getBorder()
      Returns:
      the border