Class NetworkMapDecoration


  • public class NetworkMapDecoration
    extends NetworkMapElement
    Decoration element of network map
    • Constructor Detail

      • NetworkMapDecoration

        protected NetworkMapDecoration​(org.netxms.base.NXCPMessage msg,
                                       long baseId)
        Parameters:
        msg -
        baseId -
      • NetworkMapDecoration

        public NetworkMapDecoration​(long id,
                                    int decorationType)
        Create new decoration object
        Parameters:
        id -
        decorationType -
    • Method Detail

      • getDecorationType

        public int getDecorationType()
        Returns:
        the decorationType
      • 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​(org.netxms.base.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