org.netxms.client.datacollection
Class GraphItemStyle

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

public class GraphItemStyle
extends java.lang.Object

This class contains styling for individual graph items


Field Summary
static int AREA
           
static int LINE
           
static int SHOW_AVERAGE
           
static int SHOW_THRESHOLDS
           
static int SHOW_TREND
           
 
Constructor Summary
GraphItemStyle()
          Create style record with default values.
GraphItemStyle(int color)
          Create style record for line item with given color
GraphItemStyle(int type, int color, int lineWidth, int flags)
          constructor
 
Method Summary
 int getColor()
           
 int getFlags()
           
 int getLineWidth()
           
 int getType()
           
 boolean isShowAverage()
          Convenient method for checking SHOW_AVERAGE flag
 boolean isShowThresholds()
          Convenient method for checking SHOW_THRESHOLDS flag
 boolean isShowTrend()
          Convenient method for checking SHOW_TREND flag
 void setColor(int color)
           
 void setFlags(int flags)
           
 void setLineWidth(int lineWidth)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE

public static final int LINE
See Also:
Constant Field Values

AREA

public static final int AREA
See Also:
Constant Field Values

SHOW_AVERAGE

public static final int SHOW_AVERAGE
See Also:
Constant Field Values

SHOW_THRESHOLDS

public static final int SHOW_THRESHOLDS
See Also:
Constant Field Values

SHOW_TREND

public static final int SHOW_TREND
See Also:
Constant Field Values
Constructor Detail

GraphItemStyle

public GraphItemStyle()
Create style record with default values.


GraphItemStyle

public GraphItemStyle(int color)
Create style record for line item with given color


GraphItemStyle

public GraphItemStyle(int type,
                      int color,
                      int lineWidth,
                      int flags)
constructor

Parameters:
type -
color -
lineWidth -
flags -
Method Detail

getType

public int getType()
Returns:
the type

getColor

public int getColor()
Returns:
the color

getLineWidth

public int getLineWidth()
Returns:
the lineWidth

getFlags

public int getFlags()
Returns:
the flags

setType

public void setType(int type)
Parameters:
type - the type to set

setColor

public void setColor(int color)
Parameters:
color - the color to set

setLineWidth

public void setLineWidth(int lineWidth)
Parameters:
lineWidth - the lineWidth to set

setFlags

public void setFlags(int flags)
Parameters:
flags - the flags to set

isShowAverage

public boolean isShowAverage()
Convenient method for checking SHOW_AVERAGE flag

Returns:
true if SHOW_AVERAGE is set

isShowThresholds

public boolean isShowThresholds()
Convenient method for checking SHOW_THRESHOLDS flag

Returns:
true if SHOW_THRESHOLDS is set

isShowTrend

public boolean isShowTrend()
Convenient method for checking SHOW_TREND flag

Returns:
true if SHOW_TREND is set


Copyright © 2012. All Rights Reserved.