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
Nested Classes Modifier and Type Interface Description static class
RrdGraphConstants.FontConstructor
Font constructor, to use embedded fonts.static class
RrdGraphConstants.FontTag
Allowed 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 String
ALIGN_CENTER_MARKER
Deprecated.static String
ALIGN_JUSTIFIED_MARKER
Deprecated.static String
ALIGN_LEFT_MARKER
Deprecated.static String
ALIGN_LEFTNONL_MARKER
Deprecated.static String
ALIGN_RIGHT_MARKER
Deprecated.static Color
BLIND_COLOR
An transparent colorstatic int
COLOR_ARROW
Deprecated.static int
COLOR_BACK
Deprecated.static int
COLOR_CANVAS
Deprecated.static int
COLOR_FONT
Deprecated.static int
COLOR_FRAME
Deprecated.static int
COLOR_GRID
Deprecated.static int
COLOR_MGRID
Deprecated.static int
COLOR_SHADEA
Deprecated.static int
COLOR_SHADEB
Deprecated.static int
COLOR_XAXIS
Deprecated.static int
COLOR_YAXIS
Deprecated.static int
DAY
Constant to represent daystatic Color
DEFAULT_ARROW_COLOR
Default arrow colorstatic Color
DEFAULT_BACK_COLOR
Default graph background colorstatic double
DEFAULT_BASE
Default value basestatic Color
DEFAULT_CANVAS_COLOR
Default graph canvas colorstatic String
DEFAULT_END
Default graph ending timestatic Color
DEFAULT_FONT_COLOR
Default font colorstatic Color
DEFAULT_FRAME_COLOR
Default frame colorstatic Color
DEFAULT_GRID_COLOR
Default minor grid colorstatic int
DEFAULT_HEIGHT
Default graph heightstatic String
DEFAULT_IMAGE_FORMAT
Default image formatstatic float
DEFAULT_IMAGE_QUALITY
Default image quality, used only for jpeg graphsstatic Font
DEFAULT_LARGE_FONT
Default graph large fontstatic Color
DEFAULT_MGRID_COLOR
Default major grid colorstatic Color
DEFAULT_SHADEA_COLOR
Default top-left graph shade colorstatic Color
DEFAULT_SHADEB_COLOR
Default bottom-right graph shade colorstatic Font
DEFAULT_SMALL_FONT
Default graph small fontstatic String
DEFAULT_START
Default graph starting timestatic int
DEFAULT_UNITS_LENGTH
Default units lengthstatic int
DEFAULT_WIDTH
Default graph widthstatic Color
DEFAULT_XAXIS_COLOR
Default x-axis colorstatic Color
DEFAULT_YAXIS_COLOR
Default x-axis colorstatic int
FIRST_DAY_OF_WEEK
Default first day of the week (obtained from the default locale)static RrdGraphConstants.FontTag
FONTTAG_AXIS
static RrdGraphConstants.FontTag
FONTTAG_DEFAULT
static RrdGraphConstants.FontTag
FONTTAG_LEGEND
static RrdGraphConstants.FontTag
FONTTAG_TITLE
static RrdGraphConstants.FontTag
FONTTAG_UNIT
static RrdGraphConstants.FontTag
FONTTAG_WATERMARK
static int
FRIDAY
Constant to represent Fridaystatic Font
GATOR_FONT
Font for the Gatorstatic String
GLUE_MARKER
Deprecated.static Stroke
GRID_STROKE
Stroke used to draw gridstatic String
HH_MM
HH:mm time formatstatic int
HOUR
Constant to represent hourstatic String
IN_MEMORY_IMAGE
Constant to represent in-memory image namestatic double
LEGEND_BOX
Used internallystatic double
LEGEND_BOX_SPACE
Used internallystatic int
LEGEND_INTERSPACING
Used internallystatic double
LEGEND_LEADING
Used internallystatic double
LEGEND_LEADING_SMALL
Used internallystatic int
MINUTE
Constant to represent minutestatic int
MONDAY
Constant to represent Mondaystatic int
MONTH
Constant to represent monthstatic String
NO_JUSTIFICATION_MARKER
Deprecated.static int
PADDING_BOTTOM
Used internallystatic int
PADDING_LEFT
Used internallystatic double
PADDING_LEGEND
Used internallystatic int
PADDING_PLOT
Used internallystatic int
PADDING_RIGHT
Used internallystatic int
PADDING_TITLE
Used internallystatic int
PADDING_TOP
Used internallystatic int
PADDING_VLABEL
Used internallystatic String
PROPERTYFONTBOLD
The name of the bold font, used to define theDEFAULT_LARGE_FONT
.static String
PROPERTYFONTBOLDURL
An URL to the bold font, used to define theDEFAULT_LARGE_FONT
.static String
PROPERTYFONTPLAIN
The name of the plain font, used to define theDEFAULT_SMALL_FONT
and theGATOR_FONT
.static String
PROPERTYFONTPLAINURL
An URL to the plain font, used to define theDEFAULT_SMALL_FONT
and theGATOR_FONT
.static String
PROPERTYFONTSPROPERTIES
The file that contains font configuration searched in the class path.static String
PROPERTYFONTSURL
A possible URL to a configuration file.static int
SATURDAY
Constant to represent Saturdaystatic int
SECOND
Constant to represent secondstatic int
SUNDAY
Constant to represent Sundaystatic int
THURSDAY
Constant to represent Thursdaystatic Stroke
TICK_STROKE
Stroke used to draw ticksstatic int
TUESDAY
Constant to represent Tuesdaystatic String
VERTICAL_SPACING_MARKER
Deprecated.static int
WEDNESDAY
Constant to represent Wednesdaystatic int
WEEK
Constant to represent weekstatic int
YEAR
Constant 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_FONT
and 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_FONT
and 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
-