Package org.netxms.client.datacollection
Class GraphSettings
- java.lang.Object
-
- org.netxms.client.datacollection.ChartConfig
-
- org.netxms.client.datacollection.GraphSettings
-
- All Implemented Interfaces:
ObjectAction
public class GraphSettings extends ChartConfig implements ObjectAction
Settings for predefined graph
-
-
Field Summary
Fields Modifier and Type Field Description static intACCESS_READstatic intACCESS_WRITEstatic intGF_AUTO_SCALEstatic intGF_AUTO_UPDATEstatic intGF_ENABLE_ZOOMstatic intGF_LOG_SCALEstatic intGF_SHOW_GRIDstatic intGF_SHOW_HOST_NAMESstatic intGF_SHOW_LEGENDstatic intGF_SHOW_RULERstatic intGF_SHOW_TOOLTIPSstatic intGRAPH_FLAG_TEMPLATEstatic intMAX_GRAPH_ITEM_COUNTstatic intPOSITION_BOTTOMstatic intPOSITION_LEFTstatic intPOSITION_RIGHTstatic intPOSITION_TOPstatic intTIME_FRAME_BACK_FROM_NOWstatic intTIME_FRAME_CURRENTstatic intTIME_FRAME_FIXEDstatic intTIME_UNIT_DAYstatic intTIME_UNIT_HOURstatic intTIME_UNIT_MINUTE-
Fields inherited from class org.netxms.client.datacollection.ChartConfig
area, autoRefresh, autoScale, dciList, extendedLegend, legendPosition, lineWidth, logScale, maxYScaleValue, minYScaleValue, refreshRate, showGrid, showHostNames, showLegend, showTitle, stacked, timeFrameType, timeFrom, timeRange, timeTo, timeUnits, title, translucent
-
-
Constructor Summary
Constructors Constructor Description GraphSettings()Create default settingsGraphSettings(long id, long ownerId, int flags, Collection<AccessListElement> accessList)Create settingsGraphSettings(GraphSettings src)Create copy of provided settingsGraphSettings(GraphSettings src, String name)Create copy of provided settings
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphSettingscreateFromXml(String xml)Create chart settings object from XML documentstatic GraphSettingscreateGraphSettings(org.netxms.base.NXCPMessage msg, long baseId)Create graph settings object from NXCP messagevoidfillMessage(org.netxms.base.NXCPMessage msg)Fill NXCP messageList<AccessListElement>getAccessList()StringgetDisplayName()Get display name (short name with & shortcut marks removed)intgetFlags()longgetId()ObjectMenuFiltergetMenuFilter()Get menu filter associated with the toolStringgetName()longgetOwnerId()GraphFoldergetParent()Get parent folderStringgetShortName()Get short name (last part of full path separated by "->")intgetToolType()Get tool typebooleanisApplicableForNode(AbstractNode node)Check if this action is applicable to given nodebooleanisTemplate()Checks if this graph is templatevoidsetFlags(int flags)voidsetId(long id)voidsetMenuFilter(ObjectMenuFilter filter)Sets menu filter for the toolvoidsetName(String name)voidsetParent(GraphFolder parent)Set parent folderStringtoString()-
Methods inherited from class org.netxms.client.datacollection.ChartConfig
addChangeListener, createXml, fireChangeNotification, getDciList, getLegendPosition, getLineWidth, getMaxYScaleValue, getMinYScaleValue, getRefreshRate, getTimeFrameType, getTimeFrom, getTimeRange, getTimeRangeMillis, getTimeTo, getTimeUnits, getTitle, isArea, isAutoRefresh, isAutoScale, isExtendedLegend, isLogScale, isShowGrid, isShowHostNames, isShowLegend, isShowTitle, isStacked, isTranslucent, isUseMultipliers, modifyYBase, removeChangeListener, setArea, setAutoRefresh, setAutoScale, setConfig, setDciList, setExtendedLegend, setLegendPosition, setLineWidth, setLogScale, setMaxYScaleValue, setMinYScaleValue, setModifyYBase, setRefreshRate, setShowGrid, setShowHostNames, setShowLegend, setShowTitle, setStacked, setTimeFrameType, setTimeFrom, setTimePeriod, setTimeRange, setTimeTo, setTimeUnits, setTitle, setTranslucent, setUseMultipliers, timePeriod
-
-
-
-
Field Detail
-
MAX_GRAPH_ITEM_COUNT
public static final int MAX_GRAPH_ITEM_COUNT
- See Also:
- Constant Field Values
-
TIME_FRAME_FIXED
public static final int TIME_FRAME_FIXED
- See Also:
- Constant Field Values
-
TIME_FRAME_BACK_FROM_NOW
public static final int TIME_FRAME_BACK_FROM_NOW
- See Also:
- Constant Field Values
-
TIME_FRAME_CURRENT
public static final int TIME_FRAME_CURRENT
- See Also:
- Constant Field Values
-
TIME_UNIT_MINUTE
public static final int TIME_UNIT_MINUTE
- See Also:
- Constant Field Values
-
TIME_UNIT_HOUR
public static final int TIME_UNIT_HOUR
- See Also:
- Constant Field Values
-
TIME_UNIT_DAY
public static final int TIME_UNIT_DAY
- See Also:
- Constant Field Values
-
GF_AUTO_UPDATE
public static final int GF_AUTO_UPDATE
- See Also:
- Constant Field Values
-
GF_AUTO_SCALE
public static final int GF_AUTO_SCALE
- See Also:
- Constant Field Values
-
GF_SHOW_GRID
public static final int GF_SHOW_GRID
- See Also:
- Constant Field Values
-
GF_SHOW_LEGEND
public static final int GF_SHOW_LEGEND
- See Also:
- Constant Field Values
-
GF_SHOW_RULER
public static final int GF_SHOW_RULER
- See Also:
- Constant Field Values
-
GF_SHOW_HOST_NAMES
public static final int GF_SHOW_HOST_NAMES
- See Also:
- Constant Field Values
-
GF_LOG_SCALE
public static final int GF_LOG_SCALE
- See Also:
- Constant Field Values
-
GF_SHOW_TOOLTIPS
public static final int GF_SHOW_TOOLTIPS
- See Also:
- Constant Field Values
-
GF_ENABLE_ZOOM
public static final int GF_ENABLE_ZOOM
- See Also:
- Constant Field Values
-
POSITION_LEFT
public static final int POSITION_LEFT
- See Also:
- Constant Field Values
-
POSITION_RIGHT
public static final int POSITION_RIGHT
- See Also:
- Constant Field Values
-
POSITION_TOP
public static final int POSITION_TOP
- See Also:
- Constant Field Values
-
POSITION_BOTTOM
public static final int POSITION_BOTTOM
- See Also:
- Constant Field Values
-
ACCESS_READ
public static final int ACCESS_READ
- See Also:
- Constant Field Values
-
ACCESS_WRITE
public static final int ACCESS_WRITE
- See Also:
- Constant Field Values
-
GRAPH_FLAG_TEMPLATE
public static final int GRAPH_FLAG_TEMPLATE
- See Also:
- Constant Field Values
-
-
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 objectname- 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 messagebaseId- 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
-
getAccessList
public List<AccessListElement> getAccessList()
- Returns:
- the accessList
-
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:ObjectActionCheck if this action is applicable to given node- Specified by:
isApplicableForNodein interfaceObjectAction- Parameters:
node- node object- Returns:
- true if applicable
-
getMenuFilter
public ObjectMenuFilter getMenuFilter()
Description copied from interface:ObjectActionGet menu filter associated with the tool- Specified by:
getMenuFilterin interfaceObjectAction
-
setMenuFilter
public void setMenuFilter(ObjectMenuFilter filter)
Description copied from interface:ObjectActionSets menu filter for the tool- Specified by:
setMenuFilterin interfaceObjectAction
-
getToolType
public int getToolType()
Description copied from interface:ObjectActionGet tool type- Specified by:
getToolTypein interfaceObjectAction
-
setId
public void setId(long id)
- Parameters:
id- the id to set
-
-