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 ClassesModifier and TypeInterfaceDescriptionstatic classFont constructor, to use embedded fonts.static enumAllowed font tag names which can be used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)method -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final ColorAn transparent colorstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intConstant to represent daystatic final ColorDefault arrow colorstatic final ColorDefault graph background colorstatic final doubleDefault value basestatic final ColorDefault graph canvas colorstatic final StringDefault graph ending timestatic final ColorDefault font colorstatic final ColorDefault frame colorstatic final ColorDefault minor grid colorstatic final intDefault graph heightstatic final StringDefault image formatstatic final floatDefault image quality, used only for jpeg graphsstatic final FontDefault graph large fontstatic final ColorDefault major grid colorstatic final ColorDefault top-left graph shade colorstatic final ColorDefault bottom-right graph shade colorstatic final FontDefault graph small fontstatic final StringDefault graph starting timestatic final intDefault units lengthstatic final intDefault graph widthstatic final ColorDefault x-axis colorstatic final ColorDefault x-axis colorstatic final intDefault first day of the week (obtained from the default locale)static final RrdGraphConstants.FontTagstatic final RrdGraphConstants.FontTagstatic final RrdGraphConstants.FontTagstatic final RrdGraphConstants.FontTagstatic final RrdGraphConstants.FontTagstatic final RrdGraphConstants.FontTagstatic final intConstant to represent Fridaystatic final FontFont for the Gatorstatic final StringDeprecated.static final StrokeStroke used to draw gridstatic final StringHH:mm time formatstatic final intConstant to represent hourstatic final StringConstant to represent in-memory image namestatic final doubleUsed internallystatic final doubleUsed internallystatic final intUsed internallystatic final doubleUsed internallystatic final doubleUsed internallystatic final intConstant to represent minutestatic final intConstant to represent Mondaystatic final intConstant to represent monthstatic final StringDeprecated.static final intUsed internallystatic final intUsed internallystatic final intUsed internallystatic final intUsed internallystatic final intUsed internallystatic final intUsed internallystatic final intUsed internallystatic final intUsed internallystatic final StringThe name of the bold font, used to define theDEFAULT_LARGE_FONT.static final StringAn URL to the bold font, used to define theDEFAULT_LARGE_FONT.static final StringThe name of the plain font, used to define theDEFAULT_SMALL_FONTand theGATOR_FONT.static final StringAn URL to the plain font, used to define theDEFAULT_SMALL_FONTand theGATOR_FONT.static final StringThe file that contains font configuration searched in the class path.static final StringA possible URL to a configuration file.static final intConstant to represent Saturdaystatic final intConstant to represent secondstatic final intConstant to represent Sundaystatic final intConstant to represent Thursdaystatic final StrokeStroke used to draw ticksstatic final intConstant to represent Tuesdaystatic final StringDeprecated.static final intConstant to represent Wednesdaystatic final intConstant to represent weekstatic final intConstant 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_FONTand 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_FONTand 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
-