|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rrdService.util.XGrid
The class XGrid main purpose is to create graphical representations of the data stored in one or several RRDs. Apart from generating graphs, it can also extract numerical reports.
RoundRobinGraphic
, Serialized FormField Summary | |
private int |
baseGridInterval
The base grid interval of the grid |
private java.lang.String |
baseGridUnit
The base grid unit of the grid |
static java.lang.String |
DAY
DAY unit |
private boolean |
defaultGrid
Default grid |
static java.lang.String |
HOUR
HOUR unit |
private java.lang.String |
labelFormat
The label format of the grid |
private int |
labelInterval
The label interval of the grid |
private int |
labelPrecision
The label precision of the grid |
private java.lang.String |
labelUnit
The label unit of the grid |
private int |
majorGridInterval
The major grid interval of the grid |
private java.lang.String |
majorGridUnit
The major grid unit of the grid |
static java.lang.String |
MINUTE
MINUTE unit |
static java.lang.String |
MONTH
MONTH unit |
static java.lang.String |
SECOND
SECOND unit |
static java.lang.String |
WEEK
WEEK unit |
static java.lang.String |
YEAR
YEAR unit |
Constructor Summary | |
XGrid()
Default constructor of XGrid |
|
XGrid(java.lang.String baseGridUnit,
int baseGridInterval,
java.lang.String majorGridUnit,
int majorGridInterval,
java.lang.String labelUnit,
int labelInterval,
int labelPrecision,
java.lang.String labelFormat)
Constructor of XGrid |
Method Summary | |
int |
getBaseGridInterval()
Returns the base grid interval of this xgrid |
java.lang.String |
getBaseGridUnit()
Returns the base grid unit of this xgrid |
java.lang.String |
getLabelFormat()
Returns the label format of this xgrid |
int |
getLabelInterval()
Returns the label interval of this xgrid |
int |
getLabelPrecision()
Returns the label precision of this xgrid |
java.lang.String |
getLabelUnit()
Returns the label unit of this xgrid |
int |
getMajorGridInterval()
Returns the major grid interval of this xgrid |
java.lang.String |
getMajorGridUnit()
Returns the major grid unit of this xgrid |
boolean |
isUnit(java.lang.String unit)
Returns true if the string parameter is a valide unit |
void |
setBaseGridInterval(int baseGridInterval)
Replaces the base grid interval of this xgrid |
void |
setBaseGridUnit(java.lang.String baseGridUnit)
Replaces the base grid unit of this xgrid |
void |
setLabelFormat(java.lang.String labelFormat)
Replaces the label format of this xgrid |
void |
setLabelInterval(int labelInterval)
Replaces the label interval of this xgrid |
void |
setLabelPrecision(int labelPrecision)
Replaces the label precision of this xgrid |
void |
setLabelUnit(java.lang.String labelUnit)
Replaces the label unit of this xgrid |
void |
setMajorGridInterval(int majorGridInterval)
Replaces the major grid interval of this xgrid |
void |
setMajorGridUnit(java.lang.String majorGridUnit)
Replaces the major grid unit of this xgrid |
java.lang.String |
toString()
Returns a string representation of this xgrid |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int baseGridInterval
private java.lang.String baseGridUnit
public static final java.lang.String DAY
private boolean defaultGrid
public static final java.lang.String HOUR
private java.lang.String labelFormat
private int labelInterval
private int labelPrecision
private java.lang.String labelUnit
private int majorGridInterval
private java.lang.String majorGridUnit
public static final java.lang.String MINUTE
public static final java.lang.String MONTH
public static final java.lang.String SECOND
public static final java.lang.String WEEK
public static final java.lang.String YEAR
Constructor Detail |
public XGrid()
public XGrid(java.lang.String baseGridUnit, int baseGridInterval, java.lang.String majorGridUnit, int majorGridInterval, java.lang.String labelUnit, int labelInterval, int labelPrecision, java.lang.String labelFormat) throws java.lang.Exception
baseGridUnit
- The base grid interval of the gridbaseGridInterval
- The base grid interval of the gridmajorGridUnit
- The major grid unit of the gridmajorGridInterval
- The major grid interval of the gridlabelUnit
- The label unit of the gridlabelInterval
- The label interval of the gridlabelPrecision
- The label precision of the gridlabelFormat
- The label format of the gridMethod Detail |
public int getBaseGridInterval()
public java.lang.String getBaseGridUnit()
public java.lang.String getLabelFormat()
public int getLabelInterval()
public int getLabelPrecision()
public java.lang.String getLabelUnit()
public int getMajorGridInterval()
public java.lang.String getMajorGridUnit()
public boolean isUnit(java.lang.String unit)
unit
- the string to testpublic void setBaseGridInterval(int baseGridInterval)
baseGridInterval
- The base grid interval of the gridpublic void setBaseGridUnit(java.lang.String baseGridUnit) throws java.lang.Exception
baseGridUnit
- The base grid interval of the gridpublic void setLabelFormat(java.lang.String labelFormat)
labelFormat
- The label format of the gridpublic void setLabelInterval(int labelInterval)
labelInterval
- The label interval of the gridpublic void setLabelPrecision(int labelPrecision)
labelInterval
- The label interval of the gridpublic void setLabelUnit(java.lang.String labelUnit) throws java.lang.Exception
labelUnit
- The label unit of the gridpublic void setMajorGridInterval(int majorGridInterval)
majorGridInterval
- The major grid interval of the gridpublic void setMajorGridUnit(java.lang.String majorGridUnit) throws java.lang.Exception
majorGridUnit
- The major grid unit of the gridpublic java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |