Package org.netxms.client.datacollection
Class GraphDefinition
java.lang.Object
org.netxms.client.datacollection.ChartConfiguration
org.netxms.client.datacollection.GraphDefinition
- All Implemented Interfaces:
- ObjectAction
Settings for predefined graph
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected ChartDciConfig[]static final intFields inherited from class org.netxms.client.datacollection.ChartConfigurationarea, autoRefresh, autoScale, doughnutRendering, extendedLegend, GAUGE_COLOR_MODE_CUSTOM, GAUGE_COLOR_MODE_THRESHOLD, GAUGE_COLOR_MODE_ZONE, legendPosition, lineWidth, logScale, MAX_GRAPH_ITEM_COUNT, maxYScaleValue, minYScaleValue, modifyYBase, POSITION_BOTTOM, POSITION_LEFT, POSITION_RIGHT, POSITION_TOP, refreshRate, rotation, showGrid, showHostNames, showLabels, showLegend, showTitle, showTotal, stacked, timeFrameType, timeFrom, timePeriod, timeRange, timeTo, timeUnit, title, translucent, transposed, useMultipliers, zoomEnabled
- 
Constructor SummaryConstructorsConstructorDescriptionCreate empty graph definitionGraphDefinition(long id, long ownerId, int flags, Collection<AccessListElement> accessList) Create graph definitionCreate copy of provided graph definitionGraphDefinition(GraphDefinition src, String title) Create copy of provided graph definition (with template flag removed if set in source).
- 
Method SummaryModifier and TypeMethodDescriptionstatic GraphDefinitioncreateGraphSettings(NXCPMessage msg, long baseId) Create graph settings object from NXCP messagevoidfillMessage(NXCPMessage msg) Fill NXCP messageGet display name (short name with & shortcut marks removed)intgetFlags()Get predefined graph flags.longgetId()Get menu filter associated with the toolgetName()longGet parent folderGet short name (last part of full path separated by "->")intGet tool typebooleanisApplicableForObject(AbstractObject object) Check if this action is applicable to given objectbooleanChecks if this graph definition is templatevoidsetAccessList(Collection<AccessListElement> accessList) voidsetDciList(ChartDciConfig[] dciList) voidsetFlags(int flags) Set predefined graph flags.voidsetId(long id) voidsetMenuFilter(ObjectMenuFilter filter) Sets menu filter for the toolvoidvoidsetOwnerId(long ownerId) voidsetParent(GraphFolder parent) Set parent foldertoString()Methods inherited from class org.netxms.client.datacollection.ChartConfigurationaddChangeListener, areLabelsInside, areLabelsVisible, createFromXml, createXml, fireChangeNotification, getExpectedTextWidth, getFontName, getFontSize, getGaugeColorMode, getLeftRedZone, getLeftYellowZone, getLegendPosition, getLineWidth, getMaxYScaleValue, getMinYScaleValue, getRefreshRate, getRightRedZone, getRightYellowZone, getRotation, getTimeFrom, getTimePeriod, getTimeRangeMillis, getTimeTo, getTitle, getYAxisLabel, isArea, isAutoRefresh, isAutoScale, isDoughnutRendering, isElementBordersVisible, isExtendedLegend, isGridVisible, isLegendVisible, isLogScale, isModifyYBase, isShowHostNames, isShowTotal, isStacked, isTitleVisible, isTranslucent, isTransposed, isUseMultipliers, isZoomEnabled, removeChangeListener, setArea, setAutoRefresh, setAutoScale, setDoughnutRendering, setElementBordersVisible, setExpectedTextWidth, setExtendedLegend, setFontName, setFontSize, setGaugeColorMode, setGridVisible, setLabelsInside, setLabelsVisible, setLeftRedZone, setLeftYellowZone, setLegendPosition, setLegendVisible, setLineWidth, setLogScale, setMaxYScaleValue, setMinYScaleValue, setModifyYBase, setRefreshRate, setRightRedZone, setRightYellowZone, setRotation, setShowHostNames, setShowTotal, setStacked, setTimeFrom, setTimePeriod, setTimeTo, setTitle, setTitleVisible, setTranslucent, setTransposed, setUseMultipliers, setYAxisLabel, setZoomEnabled
- 
Field Details- 
ACCESS_READpublic static final int ACCESS_READ- See Also:
 
- 
ACCESS_WRITEpublic static final int ACCESS_WRITE- See Also:
 
- 
GF_TEMPLATEpublic static final int GF_TEMPLATE- See Also:
 
- 
dciList
 
- 
- 
Constructor Details- 
GraphDefinitionpublic GraphDefinition()Create empty graph definition
- 
GraphDefinitionCreate graph definition- Parameters:
- id- definition ID
- ownerId- owning user ID
- flags- flags
- accessList- graph access list
 
- 
GraphDefinitionCreate 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)
 
- 
GraphDefinitionCreate copy of provided graph definition- Parameters:
- src- source object
 
 
- 
- 
Method Details- 
createGraphSettingsCreate graph settings object from NXCP message- Parameters:
- msg- NXCP message
- baseId- base variable id
- Returns:
- The graph settings object
 
- 
fillMessageFill NXCP message- Parameters:
- msg- NXCP message
 
- 
getIdpublic long getId()- Returns:
- the id
 
- 
getOwnerIdpublic long getOwnerId()- Returns:
- the ownerId
 
- 
getName- Returns:
- the name
 
- 
getAccessList- Returns:
- the accessList
 
- 
setAccessList- Parameters:
- accessList- the accessList to set
 
- 
getShortNameGet short name (last part of full path separated by "->")- Returns:
- short name
 
- 
getDisplayNameGet display name (short name with & shortcut marks removed)- Returns:
- display name
 
- 
setName- Parameters:
- name- the name to set
 
- 
setFlagspublic void setFlags(int flags) Set predefined graph flags.- Parameters:
- flags- new predefined graph flags
 
- 
getFlagspublic int getFlags()Get predefined graph flags.- Returns:
- predefined graph flags
 
- 
isTemplatepublic boolean isTemplate()Checks if this graph definition is template- Returns:
- isTemplate
 
- 
getParentGet parent folder- Returns:
- parent folder
 
- 
setParentSet parent folder- Parameters:
- parent- new parent folder
 
- 
isApplicableForObjectDescription copied from interface:ObjectActionCheck if this action is applicable to given object- Specified by:
- isApplicableForObjectin interface- ObjectAction
- Parameters:
- object- object
- Returns:
- true if applicable
- See Also:
 
- 
getMenuFilterDescription copied from interface:ObjectActionGet menu filter associated with the tool- Specified by:
- getMenuFilterin interface- ObjectAction
- Returns:
- menu filter associated with the tool
- See Also:
 
- 
setMenuFilterDescription copied from interface:ObjectActionSets menu filter for the tool- Specified by:
- setMenuFilterin interface- ObjectAction
- Parameters:
- filter- new menu filter
- See Also:
 
- 
getToolTypepublic int getToolType()Description copied from interface:ObjectActionGet tool type- Specified by:
- getToolTypein interface- ObjectAction
- Returns:
- tool type
- See Also:
 
- 
setIdpublic void setId(long id) - Parameters:
- id- the id to set
 
- 
setOwnerIdpublic void setOwnerId(long ownerId) - Parameters:
- ownerId- the ownerId to set
 
- 
getDciList- Returns:
- the dciList
 
- 
setDciList- Parameters:
- dciList- the dciList to set
 
- 
toString
 
-