Class GraphDefinition

java.lang.Object
org.netxms.client.datacollection.ChartConfiguration
org.netxms.client.datacollection.GraphDefinition
All Implemented Interfaces:
ObjectAction

public class GraphDefinition extends ChartConfiguration implements ObjectAction
Settings for predefined graph
  • Field Details

  • Constructor Details

    • GraphDefinition

      public GraphDefinition()
      Create empty graph definition
    • GraphDefinition

      public GraphDefinition(long id, long ownerId, int flags, Collection<AccessListElement> accessList)
      Create graph definition
      Parameters:
      id - definition ID
      ownerId - owning user ID
      flags - flags
      accessList - graph access list
    • GraphDefinition

      public GraphDefinition(GraphDefinition src, String title)
      Create copy of provided graph definition (with template flag removed if set in source).
      Parameters:
      src - source definition
      title - new title (or null to keep original)
    • GraphDefinition

      public GraphDefinition(GraphDefinition src)
      Create copy of provided graph definition
      Parameters:
      src - source object
  • Method Details

    • createGraphSettings

      public static GraphDefinition createGraphSettings(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(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
    • getAccessList

      public List<AccessListElement> getAccessList()
      Returns:
      the accessList
    • setAccessList

      public void setAccessList(Collection<AccessListElement> accessList)
      Parameters:
      accessList - the accessList to set
    • 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
    • setFlags

      public void setFlags(int flags)
      Set predefined graph flags.
      Parameters:
      flags - new predefined graph flags
    • getFlags

      public int getFlags()
      Get predefined graph flags.
      Returns:
      predefined graph flags
    • isTemplate

      public boolean isTemplate()
      Checks if this graph definition 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
    • isApplicableForObject

      public boolean isApplicableForObject(AbstractObject object)
      Description copied from interface: ObjectAction
      Check if this action is applicable to given object
      Specified by:
      isApplicableForObject in interface ObjectAction
      Parameters:
      object - object
      Returns:
      true if applicable
      See Also:
    • getMenuFilter

      public ObjectMenuFilter getMenuFilter()
      Description copied from interface: ObjectAction
      Get menu filter associated with the tool
      Specified by:
      getMenuFilter in interface ObjectAction
      Returns:
      menu filter associated with the tool
      See Also:
    • setMenuFilter

      public void setMenuFilter(ObjectMenuFilter filter)
      Description copied from interface: ObjectAction
      Sets menu filter for the tool
      Specified by:
      setMenuFilter in interface ObjectAction
      Parameters:
      filter - new menu filter
      See Also:
    • getToolType

      public int getToolType()
      Description copied from interface: ObjectAction
      Get tool type
      Specified by:
      getToolType in interface ObjectAction
      Returns:
      tool type
      See Also:
    • setId

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

      public void setOwnerId(long ownerId)
      Parameters:
      ownerId - the ownerId to set
    • getDciList

      public ChartDciConfig[] getDciList()
      Returns:
      the dciList
    • setDciList

      public void setDciList(ChartDciConfig[] dciList)
      Parameters:
      dciList - the dciList to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: