Class NetworkMapDecoration

java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
org.netxms.client.maps.elements.NetworkMapDecoration

public class NetworkMapDecoration extends NetworkMapElement
Decoration element of network map
  • Field Details

  • Constructor Details

    • NetworkMapDecoration

      protected NetworkMapDecoration(NXCPMessage msg, long baseId)
      Create from NXCP message.
      Parameters:
      msg - NXCP message
      baseId - base field ID
    • NetworkMapDecoration

      public NetworkMapDecoration(long id, int decorationType)
      Create new decoration object.
      Parameters:
      id - map element ID
      decorationType - decoration type - one of
      • GROUP_BOX (show box with title that can be used for grouping map elements)
      • IMAGE (arbitrary image)
  • Method Details

    • getDecorationType

      public int getDecorationType()
      Get decoration type.
      Returns:
      decoration type
    • getColor

      public int getColor()
      Returns:
      the color
    • getTitle

      public String getTitle()
      Returns:
      the title
    • setColor

      public void setColor(int color)
      Parameters:
      color - the color to set
    • setTitle

      public void setTitle(String title)
      Parameters:
      title - the title to set
    • fillMessage

      public void fillMessage(NXCPMessage msg, long baseId)
      Description copied from class: NetworkMapElement
      Fill NXCP message with element data
      Overrides:
      fillMessage in class NetworkMapElement
      Parameters:
      msg - NXCP message
      baseId - base variable ID
    • getWidth

      public int getWidth()
      Returns:
      the width
    • getHeight

      public int getHeight()
      Returns:
      the height
    • setSize

      public void setSize(int w, int h)
      Set decoration size
      Parameters:
      w - width
      h - height