Class GraphSettings

    • Constructor Detail

      • GraphSettings

        public GraphSettings()
        Create default settings
      • GraphSettings

        public GraphSettings​(long id,
                             long ownerId,
                             int flags,
                             Collection<AccessListElement> accessList)
        Create settings
      • GraphSettings

        public GraphSettings​(GraphSettings src,
                             String name)
        Create copy of provided settings
        Parameters:
        src - source object
        name - new name
      • GraphSettings

        public GraphSettings​(GraphSettings src)
        Create copy of provided settings
        Parameters:
        src - source object
    • Method Detail

      • createFromXml

        public static GraphSettings createFromXml​(String xml)
                                           throws Exception
        Create chart settings object from XML document
        Parameters:
        xml - XML document
        Returns:
        deserialized object
        Throws:
        Exception - if the object cannot be fully deserialized
      • createGraphSettings

        public static GraphSettings createGraphSettings​(org.netxms.base.NXCPMessage msg,
                                                        long baseId)
        Create graph settings object from NXCP message
        Parameters:
        msg - NXCP message
        baseId - base variable id
        Returns:
        The graph settings object
      • fillMessage

        public void fillMessage​(org.netxms.base.NXCPMessage msg)
        Fill NXCP message
        Parameters:
        msg - NXCP message
      • getId

        public long getId()
        Returns:
        the id
      • getOwnerId

        public long getOwnerId()
        Returns:
        the ownerId
      • getName

        public String getName()
        Returns:
        the name
      • getShortName

        public String getShortName()
        Get short name (last part of full path separated by "->")
        Returns:
        short name
      • getDisplayName

        public String getDisplayName()
        Get display name (short name with & shortcut marks removed)
        Returns:
        display name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getFlags

        public int getFlags()
        Returns:
        the flags
      • setFlags

        public void setFlags​(int flags)
        Parameters:
        flags - the flags to set
      • isTemplate

        public boolean isTemplate()
        Checks if this graph is template
        Returns:
        isTemplate
      • getParent

        public GraphFolder getParent()
        Get parent folder
        Returns:
        parent folder
      • setParent

        public void setParent​(GraphFolder parent)
        Set parent folder
        Parameters:
        parent - new parent folder
      • isApplicableForNode

        public boolean isApplicableForNode​(AbstractNode node)
        Description copied from interface: ObjectAction
        Check if this action is applicable to given node
        Specified by:
        isApplicableForNode in interface ObjectAction
        Parameters:
        node - node object
        Returns:
        true if applicable
      • setId

        public void setId​(long id)
        Parameters:
        id - the id to set