|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netxms.client.datacollection.GraphSettings
public class GraphSettings
Settings for predefined graph
Field Summary | |
---|---|
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 |
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_FIXED
|
static int |
TIME_UNIT_DAY
|
static int |
TIME_UNIT_HOUR
|
static int |
TIME_UNIT_MINUTE
|
Constructor Summary | |
---|---|
GraphSettings()
Create default settings |
|
GraphSettings(NXCPMessage msg,
long baseId)
Create graph settings object from NXCP message |
Method Summary | |
---|---|
void |
addChangeListener(GraphSettingsChangeListener listener)
Add change listener |
void |
fireChangeNotification()
Fire change notification |
java.util.List<AccessListElement> |
getAccessList()
|
int |
getAutoRefreshInterval()
|
int |
getAxisColor()
|
int |
getBackgroundColor()
|
int |
getFlags()
|
int |
getGridColor()
|
long |
getId()
|
GraphItem[] |
getItems()
|
GraphItemStyle[] |
getItemStyles()
|
int |
getLegendPosition()
|
java.lang.String |
getName()
|
long |
getOwnerId()
|
int |
getRulerColor()
|
int |
getSelectionColor()
|
java.lang.String |
getShortName()
|
int |
getTextColor()
|
int |
getTimeFrame()
|
int |
getTimeFrameType()
|
java.util.Date |
getTimeFrom()
|
long |
getTimeRangeMillis()
Get time range covered by graph in milliseconds |
java.util.Date |
getTimeTo()
|
int |
getTimeUnit()
|
java.lang.String |
getTitle()
|
boolean |
isAutoRefresh()
Get auto refresh mode |
boolean |
isAutoScale()
Get auto scale mode |
boolean |
isGridVisible()
Get grid display mode |
boolean |
isHostNamesVisible()
Get host name display mode |
boolean |
isLegendVisible()
Get legend show mode |
boolean |
isLogScale()
Get logarithmic scale mode |
boolean |
isTooltipsEnabled()
Get tooltips mode |
boolean |
isZoomEnabled()
Get zoom mode |
void |
removeChangeListener(GraphSettingsChangeListener listener)
Remove change listener |
void |
setAutoRefresh(boolean enable)
Set or clear automatic refresh flag |
void |
setAutoRefreshInterval(int autoRefreshInterval)
|
void |
setAutoScale(boolean enable)
Enable or disable automatic scaling |
void |
setAxisColor(int axisColor)
|
void |
setBackgroundColor(int backgroundColor)
|
void |
setFlags(int flags)
|
void |
setGridColor(int gridColor)
|
void |
setGridVisible(boolean enable)
Show or hide grid |
void |
setHostNamesVisible(boolean enable)
Show or hide host names in legend |
void |
setItems(GraphItem[] items)
|
void |
setItemStyles(GraphItemStyle[] itemStyles)
|
void |
setLegendPosition(int legendPosition)
|
void |
setLegendVisible(boolean enable)
Show or hide legend |
void |
setLogScale(boolean enable)
Enable or disable log scale usage flag |
void |
setName(java.lang.String name)
|
void |
setRulerColor(int rulerColor)
|
void |
setSelectionColor(int selectionColor)
|
void |
setShortName(java.lang.String shortName)
|
void |
setTextColor(int textColor)
|
void |
setTimeFrame(int timeFrame)
|
void |
setTimeFrameType(int timeFrameType)
|
void |
setTimeFrom(java.util.Date timeFrom)
|
void |
setTimeTo(java.util.Date timeTo)
|
void |
setTimeUnit(int timeUnit)
|
void |
setTitle(java.lang.String title)
|
void |
setTooltipsEnabled(boolean enable)
Enable or disable tooltips |
void |
setZoomEnabled(boolean enable)
Enable or disable zooming |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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_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
Constructor Detail |
---|
public GraphSettings()
public GraphSettings(NXCPMessage msg, long baseId)
msg
- NXCP messagebaseId
- base variable idMethod Detail |
---|
public boolean isLogScale()
public void setLogScale(boolean enable)
enable
- true to enable log scalepublic boolean isAutoRefresh()
public void setAutoRefresh(boolean enable)
enable
- true to enable automatic refreshpublic boolean isGridVisible()
public void setGridVisible(boolean enable)
enable
- true to show gridpublic boolean isHostNamesVisible()
public void setHostNamesVisible(boolean enable)
enable
- true to show host names in legendpublic boolean isLegendVisible()
public void setLegendVisible(boolean enable)
enable
- true to show legendpublic boolean isTooltipsEnabled()
public void setTooltipsEnabled(boolean enable)
enable
- true to show tooltipspublic boolean isZoomEnabled()
public void setZoomEnabled(boolean enable)
enable
- true to enable zoompublic boolean isAutoScale()
public void setAutoScale(boolean enable)
enable
- true to enable automatic scalingpublic long getId()
public long getOwnerId()
public java.lang.String getName()
public java.util.List<AccessListElement> getAccessList()
public java.lang.String getShortName()
public int getFlags()
public int getTimeFrameType()
public int getTimeUnit()
public int getTimeFrame()
public java.util.Date getTimeFrom()
public java.util.Date getTimeTo()
public int getAutoRefreshInterval()
public int getAxisColor()
public int getBackgroundColor()
public int getGridColor()
public int getSelectionColor()
public int getTextColor()
public int getRulerColor()
public java.lang.String getTitle()
public GraphItemStyle[] getItemStyles()
public GraphItem[] getItems()
public void setName(java.lang.String name)
name
- the name to setpublic void setShortName(java.lang.String shortName)
shortName
- the shortName to setpublic void setFlags(int flags)
flags
- the flags to setpublic void setTimeFrameType(int timeFrameType)
timeFrameType
- the timeFrameType to setpublic void setTimeUnit(int timeUnit)
timeUnit
- the timeUnit to setpublic void setTimeFrame(int timeFrame)
timeFrame
- the timeFrame to setpublic void setTimeFrom(java.util.Date timeFrom)
timeFrom
- the timeFrom to setpublic void setTimeTo(java.util.Date timeTo)
timeTo
- the timeTo to setpublic void setAutoRefreshInterval(int autoRefreshInterval)
autoRefreshInterval
- the autoRefreshInterval to setpublic void setAxisColor(int axisColor)
axisColor
- the axisColor to setpublic void setBackgroundColor(int backgroundColor)
backgroundColor
- the backgroundColor to setpublic void setGridColor(int gridColor)
gridColor
- the gridColor to setpublic void setSelectionColor(int selectionColor)
selectionColor
- the selectionColor to setpublic void setTextColor(int textColor)
textColor
- the textColor to setpublic void setRulerColor(int rulerColor)
rulerColor
- the rulerColor to setpublic void setTitle(java.lang.String title)
title
- the title to setpublic void setItemStyles(GraphItemStyle[] itemStyles)
itemStyles
- the itemStyles to setpublic void setItems(GraphItem[] items)
items
- the items to setpublic long getTimeRangeMillis()
public int getLegendPosition()
public void setLegendPosition(int legendPosition)
legendPosition
- the legendPosition to setpublic void addChangeListener(GraphSettingsChangeListener listener)
listener
- change listenerpublic void removeChangeListener(GraphSettingsChangeListener listener)
listener
- change listener to removepublic void fireChangeNotification()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |