public class GraphSettings extends ChartConfig implements MenuFiltringObj
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESS_READ |
static int |
ACCESS_WRITE |
static int |
GF_AUTO_SCALE |
static int |
GF_AUTO_UPDATE |
static int |
GF_ENABLE_ZOOM |
static int |
GF_LOG_SCALE |
static int |
GF_SHOW_GRID |
static int |
GF_SHOW_HOST_NAMES |
static int |
GF_SHOW_LEGEND |
static int |
GF_SHOW_RULER |
static int |
GF_SHOW_TOOLTIPS |
static int |
GRAPH_FLAG_TEMPLATE |
static int |
MAX_GRAPH_ITEM_COUNT |
static int |
POSITION_BOTTOM |
static int |
POSITION_LEFT |
static int |
POSITION_RIGHT |
static int |
POSITION_TOP |
static int |
TIME_FRAME_BACK_FROM_NOW |
static int |
TIME_FRAME_CURRENT |
static int |
TIME_FRAME_FIXED |
static int |
TIME_UNIT_DAY |
static int |
TIME_UNIT_HOUR |
static int |
TIME_UNIT_MINUTE |
area, autoRefresh, autoScale, dciList, extendedLegend, legendPosition, lineWidth, logScale, maxYScaleValue, minYScaleValue, refreshRate, showGrid, showHostNames, showLegend, showTitle, stacked, timeFrameType, timeFrom, timeRange, timeTo, timeUnits, title, translucent| Constructor and Description |
|---|
GraphSettings()
Create default settings
|
GraphSettings(GraphSettings data,
String name) |
GraphSettings(long id,
long ownerId,
int flags,
Collection<AccessListElement> accessList)
Create settings
|
| Modifier and Type | Method and Description |
|---|---|
static GraphSettings |
createFromXml(String xml)
Create chart settings object from XML document
|
static GraphSettings |
createGraphSettings(org.netxms.base.NXCPMessage msg,
long baseId)
Create graph settings object from NXCP message
|
void |
fillMessage(org.netxms.base.NXCPMessage msg) |
List<AccessListElement> |
getAccessList() |
ObjectMenuFilter |
getFilter()
Returns filter
|
ObjectMenuFilter |
getFilters() |
String |
getFiltersAsXML() |
int |
getFlags() |
long |
getId() |
String |
getName() |
long |
getOwnerId() |
String |
getShortName() |
int |
getType()
Returns type of of object(for Object tools it is required for determining local commands)
|
boolean |
isApplicableForNode(AbstractNode node)
Checks if this graph template is applicable for node
|
boolean |
isTemplate()
Checks if this graph is template
|
void |
setFilter(ObjectMenuFilter filter)
Sets filter
|
void |
setFilters(ObjectMenuFilter filters) |
void |
setFlags(int flags) |
void |
setName(String name) |
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, removeChangeListener, setArea, setAutoRefresh, setAutoScale, setConfig, setDciList, setExtendedLegend, setLegendPosition, setLineWidth, setLogScale, setMaxYScaleValue, setMinYScaleValue, setRefreshRate, setShowGrid, setShowHostNames, setShowLegend, setShowTitle, setStacked, setTimeFrameType, setTimeFrom, setTimePeriod, setTimeRange, setTimeTo, setTimeUnits, setTitle, setTranslucent, timePeriodpublic static final int MAX_GRAPH_ITEM_COUNT
public static final int TIME_FRAME_FIXED
public static final int TIME_FRAME_BACK_FROM_NOW
public static final int TIME_FRAME_CURRENT
public static final int TIME_UNIT_MINUTE
public static final int TIME_UNIT_HOUR
public static final int TIME_UNIT_DAY
public static final int GF_AUTO_UPDATE
public static final int GF_AUTO_SCALE
public static final int GF_SHOW_GRID
public static final int GF_SHOW_LEGEND
public static final int GF_SHOW_RULER
public static final int GF_SHOW_HOST_NAMES
public static final int GF_LOG_SCALE
public static final int GF_SHOW_TOOLTIPS
public static final int GF_ENABLE_ZOOM
public static final int POSITION_LEFT
public static final int POSITION_RIGHT
public static final int POSITION_TOP
public static final int POSITION_BOTTOM
public static final int ACCESS_READ
public static final int ACCESS_WRITE
public static final int GRAPH_FLAG_TEMPLATE
public GraphSettings()
public GraphSettings(long id,
long ownerId,
int flags,
Collection<AccessListElement> accessList)
public GraphSettings(GraphSettings data, String name)
public static GraphSettings createFromXml(String xml) throws Exception
xml - XML documentException - if the object cannot be fully deserializedpublic static GraphSettings createGraphSettings(org.netxms.base.NXCPMessage msg, long baseId)
msg - NXCP messagebaseId - base variable idpublic void fillMessage(org.netxms.base.NXCPMessage msg)
public long getId()
public long getOwnerId()
public String getName()
public List<AccessListElement> getAccessList()
public String getShortName()
public void setName(String name)
name - the name to setpublic int getFlags()
public void setFlags(int flags)
flags - the flags to setpublic ObjectMenuFilter getFilters()
public String getFiltersAsXML()
public void setFilters(ObjectMenuFilter filters)
filters - the filters to setpublic boolean isApplicableForNode(AbstractNode node)
node - public boolean isTemplate()
public ObjectMenuFilter getFilter()
MenuFiltringObjgetFilter in interface MenuFiltringObjpublic void setFilter(ObjectMenuFilter filter)
MenuFiltringObjsetFilter in interface MenuFiltringObjpublic int getType()
MenuFiltringObjgetType in interface MenuFiltringObjCopyright © 2017. All rights reserved.