public class GraphItemStyle extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AREA |
static int |
INVERTED |
static int |
LINE |
static int |
SHOW_AVERAGE |
static int |
SHOW_THRESHOLDS |
static int |
SHOW_TREND |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
int |
getColor() |
int |
getFlags() |
int |
getLineWidth() |
int |
getType() |
boolean |
isInverted()
Convenient method for checking INVERTED flag
|
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) |
public static final int LINE
public static final int AREA
public static final int SHOW_AVERAGE
public static final int SHOW_THRESHOLDS
public static final int SHOW_TREND
public static final int INVERTED
public GraphItemStyle()
public GraphItemStyle(int color)
public GraphItemStyle(int type, int color, int lineWidth, int flags)
type
- color
- lineWidth
- flags
- public int getType()
public int getColor()
public int getLineWidth()
public int getFlags()
public void setType(int type)
type
- the type to setpublic void setColor(int color)
color
- the color to setpublic void setLineWidth(int lineWidth)
lineWidth
- the lineWidth to setpublic void setFlags(int flags)
flags
- the flags to setpublic boolean isShowAverage()
public boolean isShowThresholds()
public boolean isShowTrend()
public boolean isInverted()
Copyright © 2016. All rights reserved.