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.properties
org.rrd4j.fonts.properties.url
org.rrd4j.font.plain
org.rrd4j.font.bold
org.rrd4j.font.plain.url
org.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
Modifier and TypeInterfaceDescriptionstatic class
Font constructor, to use embedded fonts.static enum
Allowed font tag names which can be used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)
method -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final Color
An transparent colorstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Constant to represent daystatic final Color
Default arrow colorstatic final Color
Default graph background colorstatic final double
Default value basestatic final Color
Default graph canvas colorstatic final String
Default graph ending timestatic final Color
Default font colorstatic final Color
Default frame colorstatic final Color
Default minor grid colorstatic final int
Default graph heightstatic final String
Default image formatstatic final float
Default image quality, used only for jpeg graphsstatic final Font
Default graph large fontstatic final Color
Default major grid colorstatic final Color
Default top-left graph shade colorstatic final Color
Default bottom-right graph shade colorstatic final Font
Default graph small fontstatic final String
Default graph starting timestatic final int
Default units lengthstatic final int
Default graph widthstatic final Color
Default x-axis colorstatic final Color
Default x-axis colorstatic final int
Default first day of the week (obtained from the default locale)static final RrdGraphConstants.FontTag
static final RrdGraphConstants.FontTag
static final RrdGraphConstants.FontTag
static final RrdGraphConstants.FontTag
static final RrdGraphConstants.FontTag
static final RrdGraphConstants.FontTag
static final int
Constant to represent Fridaystatic final Font
Font for the Gatorstatic final String
Deprecated.static final Stroke
Stroke used to draw gridstatic final String
HH:mm time formatstatic final int
Constant to represent hourstatic final String
Constant to represent in-memory image namestatic final double
Used internallystatic final double
Used internallystatic final int
Used internallystatic final double
Used internallystatic final double
Used internallystatic final int
Constant to represent minutestatic final int
Constant to represent Mondaystatic final int
Constant to represent monthstatic final String
Deprecated.static final int
Used internallystatic final int
Used internallystatic final int
Used internallystatic final int
Used internallystatic final int
Used internallystatic final int
Used internallystatic final int
Used internallystatic final int
Used internallystatic final String
The name of the bold font, used to define theDEFAULT_LARGE_FONT
.static final String
An URL to the bold font, used to define theDEFAULT_LARGE_FONT
.static final String
The name of the plain font, used to define theDEFAULT_SMALL_FONT
and theGATOR_FONT
.static final String
An URL to the plain font, used to define theDEFAULT_SMALL_FONT
and theGATOR_FONT
.static final String
The file that contains font configuration searched in the class path.static final String
A possible URL to a configuration file.static final int
Constant to represent Saturdaystatic final int
Constant to represent secondstatic final int
Constant to represent Sundaystatic final int
Constant to represent Thursdaystatic final Stroke
Stroke used to draw ticksstatic final int
Constant to represent Tuesdaystatic final String
Deprecated.static final int
Constant to represent Wednesdaystatic final int
Constant to represent weekstatic final int
Constant to represent year
-
Field Details
-
DEFAULT_START
Default graph starting time- See Also:
-
DEFAULT_END
Default graph ending time- See Also:
-
HH_MM
HH:mm time format- See Also:
-
SECOND
static final int SECONDConstant to represent second- See Also:
-
MINUTE
static final int MINUTEConstant to represent minute- See Also:
-
HOUR
static final int HOURConstant to represent hour- See Also:
-
DAY
static final int DAYConstant to represent day- See Also:
-
WEEK
static final int WEEKConstant to represent week- See Also:
-
MONTH
static final int MONTHConstant to represent month- See Also:
-
YEAR
static final int YEARConstant to represent year- See Also:
-
MONDAY
static final int MONDAYConstant to represent Monday- See Also:
-
TUESDAY
static final int TUESDAYConstant to represent Tuesday- See Also:
-
WEDNESDAY
static final int WEDNESDAYConstant to represent Wednesday- See Also:
-
THURSDAY
static final int THURSDAYConstant to represent Thursday- See Also:
-
FRIDAY
static final int FRIDAYConstant to represent Friday- See Also:
-
SATURDAY
static final int SATURDAYConstant to represent Saturday- See Also:
-
SUNDAY
static final int SUNDAYConstant to represent Sunday- See Also:
-
COLOR_CANVAS
Deprecated.Index of the canvas color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_BACK
Deprecated.Index of the background color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_SHADEA
Deprecated.Index of the top-left graph shade color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_SHADEB
Deprecated.Index of the bottom-right graph shade color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_GRID
Deprecated.Index of the minor grid color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_MGRID
Deprecated.Index of the major grid color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_FONT
Deprecated.Index of the font color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_FRAME
Deprecated.Index of the frame color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_ARROW
Deprecated.Index of the arrow color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_XAXIS
Deprecated.Index of the x-axis color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
COLOR_YAXIS
Deprecated.Index of the yaxis color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
-
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:
-
DEFAULT_UNITS_LENGTH
static final int DEFAULT_UNITS_LENGTHDefault units length- See Also:
-
DEFAULT_WIDTH
static final int DEFAULT_WIDTHDefault graph width- See Also:
-
DEFAULT_HEIGHT
static final int DEFAULT_HEIGHTDefault graph height- See Also:
-
DEFAULT_IMAGE_FORMAT
Default image format- See Also:
-
DEFAULT_IMAGE_QUALITY
static final float DEFAULT_IMAGE_QUALITYDefault image quality, used only for jpeg graphs- See Also:
-
DEFAULT_BASE
static final double DEFAULT_BASEDefault value base- See Also:
-
PROPERTYFONTSPROPERTIES
The file that contains font configuration searched in the class path. The default value is/rrd4jfonts.properties
- See Also:
-
PROPERTYFONTSURL
A possible URL to a configuration file.- See Also:
-
PROPERTYFONTPLAIN
The name of the plain font, used to define theDEFAULT_SMALL_FONT
and theGATOR_FONT
. To be found in the classpath.- See Also:
-
PROPERTYFONTBOLD
The name of the bold font, used to define theDEFAULT_LARGE_FONT
. To be found in the classpath.- See Also:
-
PROPERTYFONTPLAINURL
An URL to the plain font, used to define theDEFAULT_SMALL_FONT
and theGATOR_FONT
.- See Also:
-
PROPERTYFONTBOLDURL
An URL to the bold font, used to define theDEFAULT_LARGE_FONT
.- See Also:
-
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:
-
LEGEND_LEADING_SMALL
static final double LEGEND_LEADING_SMALLUsed internally- See Also:
-
LEGEND_BOX_SPACE
static final double LEGEND_BOX_SPACEUsed internally- See Also:
-
LEGEND_BOX
static final double LEGEND_BOXUsed internally- See Also:
-
LEGEND_INTERSPACING
static final int LEGEND_INTERSPACINGUsed internally- See Also:
-
PADDING_LEFT
static final int PADDING_LEFTUsed internally- See Also:
-
PADDING_TOP
static final int PADDING_TOPUsed internally- See Also:
-
PADDING_TITLE
static final int PADDING_TITLEUsed internally- See Also:
-
PADDING_RIGHT
static final int PADDING_RIGHTUsed internally- See Also:
-
PADDING_PLOT
static final int PADDING_PLOTUsed internally- See Also:
-
PADDING_LEGEND
static final int PADDING_LEGENDUsed internally- See Also:
-
PADDING_BOTTOM
static final int PADDING_BOTTOMUsed internally- See Also:
-
PADDING_VLABEL
static final int PADDING_VLABELUsed internally- See Also:
-
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
-