Package org.netxms.client.datacollection
Class GraphItemStyle
- java.lang.Object
-
- org.netxms.client.datacollection.GraphItemStyle
-
public class GraphItemStyle extends Object
This class contains styling for individual graph items
-
-
Field Summary
Fields Modifier and Type Field Description static intAREAstatic intINVERTEDstatic intLINEstatic intSHOW_AVERAGEstatic intSHOW_THRESHOLDSstatic intSHOW_TREND
-
Constructor Summary
Constructors Constructor Description GraphItemStyle()Create style record with default values.GraphItemStyle(int color)Create style record for line item with given colorGraphItemStyle(int type, int color, int lineWidth, int flags)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColor()intgetFlags()intgetLineWidth()intgetType()booleanisInverted()Convenient method for checking INVERTED flagbooleanisShowAverage()Convenient method for checking SHOW_AVERAGE flagbooleanisShowThresholds()Convenient method for checking SHOW_THRESHOLDS flagbooleanisShowTrend()Convenient method for checking SHOW_TREND flagvoidsetColor(int color)voidsetFlags(int flags)voidsetLineWidth(int lineWidth)voidsetType(int type)
-
-
-
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
-
INVERTED
public static final int INVERTED
- 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- Parameters:
color- The color
-
GraphItemStyle
public GraphItemStyle(int type, int color, int lineWidth, int flags)constructor- Parameters:
type- The typecolor- The colorlineWidth- The line widthflags- The 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
-
isInverted
public boolean isInverted()
Convenient method for checking INVERTED flag- Returns:
- true if INVERTED is set
-
-