Package org.rrd4j.graph
Interface RrdGraphConstants
- All Known Implementing Classes:
Axis,CommentText,LegendComposer,LegendText,PrintText,RrdGraph,RrdGraphDef,TimeAxis,ValueAxis,ValueAxisLogarithmic,ValueAxisMrtg
public interface RrdGraphConstants
Class to represent various constants used for graphing. No methods are specified.
The fonts settings can be changed use some on the following properties, sorted by increased priority.
org.rrd4j.fonts.propertiesorg.rrd4j.fonts.properties.urlorg.rrd4j.font.plainorg.rrd4j.font.boldorg.rrd4j.font.plain.urlorg.rrd4j.font.bold.url
org.rrd4j.fonts.properties or org.rrd4j.fonts.properties.url is used, the file provided contains any other property of lower priority .
The last four properties defines directly the plain or bold font. All properties URL related (org.rrd4j.fonts.url, org.rrd4j.font.plain.url and
org.rrd4j.font.bold.url) download data from an URL. They are useful when those data are provided by the file system, defined by the OS.
The others search for the data in the classpath. So it's easy to provided font-pack as a jar that's put before RRD44J's jar.
The default settings uses org.rrd4j.fonts.properties looking for the file /rrd4jfonts.properties in the classpath.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRrdGraphConstants.FontConstructorFont constructor, to use embedded fonts.static classRrdGraphConstants.FontTagAllowed font tag names which can be used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)method -
Field Summary
Fields Modifier and Type Field Description static StringALIGN_CENTER_MARKERDeprecated.static StringALIGN_JUSTIFIED_MARKERDeprecated.static StringALIGN_LEFT_MARKERDeprecated.static StringALIGN_LEFTNONL_MARKERDeprecated.static StringALIGN_RIGHT_MARKERDeprecated.static ColorBLIND_COLORAn transparent colorstatic intCOLOR_ARROWDeprecated.static intCOLOR_BACKDeprecated.static intCOLOR_CANVASDeprecated.static intCOLOR_FONTDeprecated.static intCOLOR_FRAMEDeprecated.static intCOLOR_GRIDDeprecated.static intCOLOR_MGRIDDeprecated.static intCOLOR_SHADEADeprecated.static intCOLOR_SHADEBDeprecated.static intCOLOR_XAXISDeprecated.static intCOLOR_YAXISDeprecated.static intDAYConstant to represent daystatic ColorDEFAULT_ARROW_COLORDefault arrow colorstatic ColorDEFAULT_BACK_COLORDefault graph background colorstatic doubleDEFAULT_BASEDefault value basestatic ColorDEFAULT_CANVAS_COLORDefault graph canvas colorstatic StringDEFAULT_ENDDefault graph ending timestatic ColorDEFAULT_FONT_COLORDefault font colorstatic ColorDEFAULT_FRAME_COLORDefault frame colorstatic ColorDEFAULT_GRID_COLORDefault minor grid colorstatic intDEFAULT_HEIGHTDefault graph heightstatic StringDEFAULT_IMAGE_FORMATDefault image formatstatic floatDEFAULT_IMAGE_QUALITYDefault image quality, used only for jpeg graphsstatic FontDEFAULT_LARGE_FONTDefault graph large fontstatic ColorDEFAULT_MGRID_COLORDefault major grid colorstatic ColorDEFAULT_SHADEA_COLORDefault top-left graph shade colorstatic ColorDEFAULT_SHADEB_COLORDefault bottom-right graph shade colorstatic FontDEFAULT_SMALL_FONTDefault graph small fontstatic StringDEFAULT_STARTDefault graph starting timestatic intDEFAULT_UNITS_LENGTHDefault units lengthstatic intDEFAULT_WIDTHDefault graph widthstatic ColorDEFAULT_XAXIS_COLORDefault x-axis colorstatic ColorDEFAULT_YAXIS_COLORDefault x-axis colorstatic intFIRST_DAY_OF_WEEKDefault first day of the week (obtained from the default locale)static RrdGraphConstants.FontTagFONTTAG_AXISstatic RrdGraphConstants.FontTagFONTTAG_DEFAULTstatic RrdGraphConstants.FontTagFONTTAG_LEGENDstatic RrdGraphConstants.FontTagFONTTAG_TITLEstatic RrdGraphConstants.FontTagFONTTAG_UNITstatic RrdGraphConstants.FontTagFONTTAG_WATERMARKstatic intFRIDAYConstant to represent Fridaystatic FontGATOR_FONTFont for the Gatorstatic StringGLUE_MARKERDeprecated.static StrokeGRID_STROKEStroke used to draw gridstatic StringHH_MMHH:mm time formatstatic intHOURConstant to represent hourstatic StringIN_MEMORY_IMAGEConstant to represent in-memory image namestatic doubleLEGEND_BOXUsed internallystatic doubleLEGEND_BOX_SPACEUsed internallystatic intLEGEND_INTERSPACINGUsed internallystatic doubleLEGEND_LEADINGUsed internallystatic doubleLEGEND_LEADING_SMALLUsed internallystatic intMINUTEConstant to represent minutestatic intMONDAYConstant to represent Mondaystatic intMONTHConstant to represent monthstatic StringNO_JUSTIFICATION_MARKERDeprecated.static intPADDING_BOTTOMUsed internallystatic intPADDING_LEFTUsed internallystatic doublePADDING_LEGENDUsed internallystatic intPADDING_PLOTUsed internallystatic intPADDING_RIGHTUsed internallystatic intPADDING_TITLEUsed internallystatic intPADDING_TOPUsed internallystatic intPADDING_VLABELUsed internallystatic StringPROPERTYFONTBOLDThe name of the bold font, used to define theDEFAULT_LARGE_FONT.static StringPROPERTYFONTBOLDURLAn URL to the bold font, used to define theDEFAULT_LARGE_FONT.static StringPROPERTYFONTPLAINThe name of the plain font, used to define theDEFAULT_SMALL_FONTand theGATOR_FONT.static StringPROPERTYFONTPLAINURLAn URL to the plain font, used to define theDEFAULT_SMALL_FONTand theGATOR_FONT.static StringPROPERTYFONTSPROPERTIESThe file that contains font configuration searched in the class path.static StringPROPERTYFONTSURLA possible URL to a configuration file.static intSATURDAYConstant to represent Saturdaystatic intSECONDConstant to represent secondstatic intSUNDAYConstant to represent Sundaystatic intTHURSDAYConstant to represent Thursdaystatic StrokeTICK_STROKEStroke used to draw ticksstatic intTUESDAYConstant to represent Tuesdaystatic StringVERTICAL_SPACING_MARKERDeprecated.static intWEDNESDAYConstant to represent Wednesdaystatic intWEEKConstant to represent weekstatic intYEARConstant to represent year
-
Field Details
-
DEFAULT_START
Default graph starting time- See Also:
- Constant Field Values
-
DEFAULT_END
Default graph ending time- See Also:
- Constant Field Values
-
HH_MM
HH:mm time format- See Also:
- Constant Field Values
-
SECOND
static final int SECONDConstant to represent second- See Also:
- Constant Field Values
-
MINUTE
static final int MINUTEConstant to represent minute- See Also:
- Constant Field Values
-
HOUR
static final int HOURConstant to represent hour- See Also:
- Constant Field Values
-
DAY
static final int DAYConstant to represent day- See Also:
- Constant Field Values
-
WEEK
static final int WEEKConstant to represent week- See Also:
- Constant Field Values
-
MONTH
static final int MONTHConstant to represent month- See Also:
- Constant Field Values
-
YEAR
static final int YEARConstant to represent year- See Also:
- Constant Field Values
-
MONDAY
static final int MONDAYConstant to represent Monday- See Also:
- Constant Field Values
-
TUESDAY
static final int TUESDAYConstant to represent Tuesday- See Also:
- Constant Field Values
-
WEDNESDAY
static final int WEDNESDAYConstant to represent Wednesday- See Also:
- Constant Field Values
-
THURSDAY
static final int THURSDAYConstant to represent Thursday- See Also:
- Constant Field Values
-
FRIDAY
static final int FRIDAYConstant to represent Friday- See Also:
- Constant Field Values
-
SATURDAY
static final int SATURDAYConstant to represent Saturday- See Also:
- Constant Field Values
-
SUNDAY
static final int SUNDAYConstant to represent Sunday- See Also:
- Constant Field Values
-
COLOR_CANVAS
Deprecated.Index of the canvas color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_BACK
Deprecated.Index of the background color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_SHADEA
Deprecated.Index of the top-left graph shade color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_SHADEB
Deprecated.Index of the bottom-right graph shade color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_GRID
Deprecated.Index of the minor grid color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_MGRID
Deprecated.Index of the major grid color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_FONT
Deprecated.Index of the font color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_FRAME
Deprecated.Index of the frame color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_ARROW
Deprecated.Index of the arrow color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_XAXIS
Deprecated.Index of the x-axis color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
COLOR_YAXIS
Deprecated.Index of the yaxis color. Used inRrdGraphDef.setColor(int, java.awt.Paint)- See Also:
- Constant Field Values
-
FIRST_DAY_OF_WEEK
static final int FIRST_DAY_OF_WEEKDefault first day of the week (obtained from the default locale) -
DEFAULT_CANVAS_COLOR
Default graph canvas color -
DEFAULT_BACK_COLOR
Default graph background color -
DEFAULT_SHADEA_COLOR
Default top-left graph shade color -
DEFAULT_SHADEB_COLOR
Default bottom-right graph shade color -
DEFAULT_GRID_COLOR
Default minor grid color -
DEFAULT_MGRID_COLOR
Default major grid color -
DEFAULT_FONT_COLOR
Default font color -
DEFAULT_FRAME_COLOR
Default frame color -
DEFAULT_ARROW_COLOR
Default arrow color -
DEFAULT_XAXIS_COLOR
Default x-axis color -
DEFAULT_YAXIS_COLOR
Default x-axis color -
BLIND_COLOR
An transparent color -
ALIGN_LEFT_MARKER
Deprecated.Constant to represent left alignment marker -
ALIGN_LEFTNONL_MARKER
Deprecated.Constant to represent left alignment marker, without new line -
ALIGN_CENTER_MARKER
Deprecated.Constant to represent centered alignment marker -
ALIGN_RIGHT_MARKER
Deprecated.Constant to represent right alignment marker -
ALIGN_JUSTIFIED_MARKER
Deprecated.Constant to represent justified alignment marker -
GLUE_MARKER
Deprecated.Constant to represent "glue" marker -
VERTICAL_SPACING_MARKER
Deprecated.Constant to represent vertical spacing marker -
NO_JUSTIFICATION_MARKER
Deprecated.Constant to represent no justification markers -
IN_MEMORY_IMAGE
Constant to represent in-memory image name- See Also:
- Constant Field Values
-
DEFAULT_UNITS_LENGTH
static final int DEFAULT_UNITS_LENGTHDefault units length- See Also:
- Constant Field Values
-
DEFAULT_WIDTH
static final int DEFAULT_WIDTHDefault graph width- See Also:
- Constant Field Values
-
DEFAULT_HEIGHT
static final int DEFAULT_HEIGHTDefault graph height- See Also:
- Constant Field Values
-
DEFAULT_IMAGE_FORMAT
Default image format- See Also:
- Constant Field Values
-
DEFAULT_IMAGE_QUALITY
static final float DEFAULT_IMAGE_QUALITYDefault image quality, used only for jpeg graphs- See Also:
- Constant Field Values
-
DEFAULT_BASE
static final double DEFAULT_BASEDefault value base- See Also:
- Constant Field Values
-
PROPERTYFONTSPROPERTIES
The file that contains font configuration searched in the class path. The default value is/rrd4jfonts.properties- See Also:
- Constant Field Values
-
PROPERTYFONTSURL
A possible URL to a configuration file.- See Also:
- Constant Field Values
-
PROPERTYFONTPLAIN
The name of the plain font, used to define theDEFAULT_SMALL_FONTand theGATOR_FONT. To be found in the classpath.- See Also:
- Constant Field Values
-
PROPERTYFONTBOLD
The name of the bold font, used to define theDEFAULT_LARGE_FONT. To be found in the classpath.- See Also:
- Constant Field Values
-
PROPERTYFONTPLAINURL
An URL to the plain font, used to define theDEFAULT_SMALL_FONTand theGATOR_FONT.- See Also:
- Constant Field Values
-
PROPERTYFONTBOLDURL
An URL to the bold font, used to define theDEFAULT_LARGE_FONT.- See Also:
- Constant Field Values
-
DEFAULT_SMALL_FONT
Default graph small font -
DEFAULT_LARGE_FONT
Default graph large font -
GATOR_FONT
Font for the Gator -
LEGEND_LEADING
static final double LEGEND_LEADINGUsed internally- See Also:
- Constant Field Values
-
LEGEND_LEADING_SMALL
static final double LEGEND_LEADING_SMALLUsed internally- See Also:
- Constant Field Values
-
LEGEND_BOX_SPACE
static final double LEGEND_BOX_SPACEUsed internally- See Also:
- Constant Field Values
-
LEGEND_BOX
static final double LEGEND_BOXUsed internally- See Also:
- Constant Field Values
-
LEGEND_INTERSPACING
static final int LEGEND_INTERSPACINGUsed internally- See Also:
- Constant Field Values
-
PADDING_LEFT
static final int PADDING_LEFTUsed internally- See Also:
- Constant Field Values
-
PADDING_TOP
static final int PADDING_TOPUsed internally- See Also:
- Constant Field Values
-
PADDING_TITLE
static final int PADDING_TITLEUsed internally- See Also:
- Constant Field Values
-
PADDING_RIGHT
static final int PADDING_RIGHTUsed internally- See Also:
- Constant Field Values
-
PADDING_PLOT
static final int PADDING_PLOTUsed internally- See Also:
- Constant Field Values
-
PADDING_LEGEND
static final double PADDING_LEGENDUsed internally- See Also:
- Constant Field Values
-
PADDING_BOTTOM
static final int PADDING_BOTTOMUsed internally- See Also:
- Constant Field Values
-
PADDING_VLABEL
static final int PADDING_VLABELUsed internally- See Also:
- Constant Field Values
-
GRID_STROKE
Stroke used to draw grid -
TICK_STROKE
Stroke used to draw ticks -
FONTTAG_DEFAULT
-
FONTTAG_TITLE
-
FONTTAG_AXIS
-
FONTTAG_UNIT
-
FONTTAG_LEGEND
-
FONTTAG_WATERMARK
-