org.netxms.client.datacollection
Class GraphSettings

java.lang.Object
  extended by org.netxms.client.datacollection.GraphSettings

public class GraphSettings
extends java.lang.Object

Settings for predefined graph


Field Summary
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 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
           
 
Constructor Summary
GraphSettings()
          Create default settings
GraphSettings(long id, long ownerId, java.util.Collection<AccessListElement> accessList)
          Create 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()
           
 java.lang.String getConfig()
           
 long getId()
           
 java.lang.String getName()
           
 long getOwnerId()
           
 java.lang.String getShortName()
           
 void removeChangeListener(GraphSettingsChangeListener listener)
          Remove change listener
 void setConfig(java.lang.String config)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

GraphSettings

public GraphSettings()
Create default settings


GraphSettings

public GraphSettings(long id,
                     long ownerId,
                     java.util.Collection<AccessListElement> accessList)
Create settings


GraphSettings

public GraphSettings(NXCPMessage msg,
                     long baseId)
Create graph settings object from NXCP message

Parameters:
msg - NXCP message
baseId - base variable id
Method Detail

getId

public long getId()
Returns:
the id

getOwnerId

public long getOwnerId()
Returns:
the ownerId

getName

public java.lang.String getName()
Returns:
the name

getAccessList

public java.util.List<AccessListElement> getAccessList()
Returns:
the accessList

getShortName

public java.lang.String getShortName()
Returns:
the shortName

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

addChangeListener

public void addChangeListener(GraphSettingsChangeListener listener)
Add change listener

Parameters:
listener - change listener

removeChangeListener

public void removeChangeListener(GraphSettingsChangeListener listener)
Remove change listener

Parameters:
listener - change listener to remove

fireChangeNotification

public void fireChangeNotification()
Fire change notification


getConfig

public java.lang.String getConfig()
Returns:
the config

setConfig

public void setConfig(java.lang.String config)
Parameters:
config - the config to set


Copyright © 2013. All Rights Reserved.