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
ororg.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
andorg.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 int
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 Detail
-
DEFAULT_START
static final String DEFAULT_START
Default graph starting time- See Also:
- Constant Field Values
-
DEFAULT_END
static final String DEFAULT_END
Default graph ending time- See Also:
- Constant Field Values
-
HH_MM
static final String HH_MM
HH:mm time format- See Also:
- Constant Field Values
-
SECOND
static final int SECOND
Constant to represent second- See Also:
- Constant Field Values
-
MINUTE
static final int MINUTE
Constant to represent minute- See Also:
- Constant Field Values
-
HOUR
static final int HOUR
Constant to represent hour- See Also:
- Constant Field Values
-
DAY
static final int DAY
Constant to represent day- See Also:
- Constant Field Values
-
WEEK
static final int WEEK
Constant to represent week- See Also:
- Constant Field Values
-
MONTH
static final int MONTH
Constant to represent month- See Also:
- Constant Field Values
-
YEAR
static final int YEAR
Constant to represent year- See Also:
- Constant Field Values
-
MONDAY
static final int MONDAY
Constant to represent Monday- See Also:
- Constant Field Values
-
TUESDAY
static final int TUESDAY
Constant to represent Tuesday- See Also:
- Constant Field Values
-
WEDNESDAY
static final int WEDNESDAY
Constant to represent Wednesday- See Also:
- Constant Field Values
-
THURSDAY
static final int THURSDAY
Constant to represent Thursday- See Also:
- Constant Field Values
-
FRIDAY
static final int FRIDAY
Constant to represent Friday- See Also:
- Constant Field Values
-
SATURDAY
static final int SATURDAY
Constant to represent Saturday- See Also:
- Constant Field Values
-
SUNDAY
static final int SUNDAY
Constant to represent Sunday- See Also:
- Constant Field Values
-
COLOR_CANVAS
@Deprecated static final int COLOR_CANVAS
Deprecated.Index of the canvas color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_BACK
@Deprecated static final int COLOR_BACK
Deprecated.Index of the background color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_SHADEA
@Deprecated static final int 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 static final int 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 static final int COLOR_GRID
Deprecated.Index of the minor grid color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_MGRID
@Deprecated static final int COLOR_MGRID
Deprecated.Index of the major grid color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_FONT
@Deprecated static final int COLOR_FONT
Deprecated.Index of the font color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_FRAME
@Deprecated static final int COLOR_FRAME
Deprecated.Index of the frame color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_ARROW
@Deprecated static final int COLOR_ARROW
Deprecated.Index of the arrow color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_XAXIS
@Deprecated static final int COLOR_XAXIS
Deprecated.Index of the x-axis color. Used inRrdGraphDef.setColor(int, java.awt.Paint)
- See Also:
- Constant Field Values
-
COLOR_YAXIS
@Deprecated static final int 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_WEEK
Default first day of the week (obtained from the default locale)
-
DEFAULT_CANVAS_COLOR
static final Color DEFAULT_CANVAS_COLOR
Default graph canvas color
-
DEFAULT_BACK_COLOR
static final Color DEFAULT_BACK_COLOR
Default graph background color
-
DEFAULT_SHADEA_COLOR
static final Color DEFAULT_SHADEA_COLOR
Default top-left graph shade color
-
DEFAULT_SHADEB_COLOR
static final Color DEFAULT_SHADEB_COLOR
Default bottom-right graph shade color
-
DEFAULT_GRID_COLOR
static final Color DEFAULT_GRID_COLOR
Default minor grid color
-
DEFAULT_MGRID_COLOR
static final Color DEFAULT_MGRID_COLOR
Default major grid color
-
DEFAULT_FONT_COLOR
static final Color DEFAULT_FONT_COLOR
Default font color
-
DEFAULT_FRAME_COLOR
static final Color DEFAULT_FRAME_COLOR
Default frame color
-
DEFAULT_ARROW_COLOR
static final Color DEFAULT_ARROW_COLOR
Default arrow color
-
DEFAULT_XAXIS_COLOR
static final Color DEFAULT_XAXIS_COLOR
Default x-axis color
-
DEFAULT_YAXIS_COLOR
static final Color DEFAULT_YAXIS_COLOR
Default x-axis color
-
BLIND_COLOR
static final Color BLIND_COLOR
An transparent color
-
ALIGN_LEFT_MARKER
@Deprecated static final String ALIGN_LEFT_MARKER
Deprecated.Constant to represent left alignment marker
-
ALIGN_LEFTNONL_MARKER
@Deprecated static final String ALIGN_LEFTNONL_MARKER
Deprecated.Constant to represent left alignment marker, without new line
-
ALIGN_CENTER_MARKER
@Deprecated static final String ALIGN_CENTER_MARKER
Deprecated.Constant to represent centered alignment marker
-
ALIGN_RIGHT_MARKER
@Deprecated static final String ALIGN_RIGHT_MARKER
Deprecated.Constant to represent right alignment marker
-
ALIGN_JUSTIFIED_MARKER
@Deprecated static final String ALIGN_JUSTIFIED_MARKER
Deprecated.Constant to represent justified alignment marker
-
GLUE_MARKER
@Deprecated static final String GLUE_MARKER
Deprecated.Constant to represent "glue" marker
-
VERTICAL_SPACING_MARKER
@Deprecated static final String VERTICAL_SPACING_MARKER
Deprecated.Constant to represent vertical spacing marker
-
NO_JUSTIFICATION_MARKER
@Deprecated static final String NO_JUSTIFICATION_MARKER
Deprecated.Constant to represent no justification markers
-
IN_MEMORY_IMAGE
static final String IN_MEMORY_IMAGE
Constant to represent in-memory image name- See Also:
- Constant Field Values
-
DEFAULT_UNITS_LENGTH
static final int DEFAULT_UNITS_LENGTH
Default units length- See Also:
- Constant Field Values
-
DEFAULT_WIDTH
static final int DEFAULT_WIDTH
Default graph width- See Also:
- Constant Field Values
-
DEFAULT_HEIGHT
static final int DEFAULT_HEIGHT
Default graph height- See Also:
- Constant Field Values
-
DEFAULT_IMAGE_FORMAT
static final String DEFAULT_IMAGE_FORMAT
Default image format- See Also:
- Constant Field Values
-
DEFAULT_IMAGE_QUALITY
static final float DEFAULT_IMAGE_QUALITY
Default image quality, used only for jpeg graphs- See Also:
- Constant Field Values
-
DEFAULT_BASE
static final double DEFAULT_BASE
Default value base- See Also:
- Constant Field Values
-
PROPERTYFONTSPROPERTIES
static final String PROPERTYFONTSPROPERTIES
The file that contains font configuration searched in the class path. The default value is/rrd4jfonts.properties
- See Also:
- Constant Field Values
-
PROPERTYFONTSURL
static final String PROPERTYFONTSURL
A possible URL to a configuration file.- See Also:
- Constant Field Values
-
PROPERTYFONTPLAIN
static final String 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
static final String 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
static final String PROPERTYFONTPLAINURL
An URL to the plain font, used to define theDEFAULT_SMALL_FONT
and theGATOR_FONT
.- See Also:
- Constant Field Values
-
PROPERTYFONTBOLDURL
static final String PROPERTYFONTBOLDURL
An URL to the bold font, used to define theDEFAULT_LARGE_FONT
.- See Also:
- Constant Field Values
-
DEFAULT_SMALL_FONT
static final Font DEFAULT_SMALL_FONT
Default graph small font
-
DEFAULT_LARGE_FONT
static final Font DEFAULT_LARGE_FONT
Default graph large font
-
GATOR_FONT
static final Font GATOR_FONT
Font for the Gator
-
LEGEND_LEADING
static final double LEGEND_LEADING
Used internally- See Also:
- Constant Field Values
-
LEGEND_LEADING_SMALL
static final double LEGEND_LEADING_SMALL
Used internally- See Also:
- Constant Field Values
-
LEGEND_BOX_SPACE
static final double LEGEND_BOX_SPACE
Used internally- See Also:
- Constant Field Values
-
LEGEND_BOX
static final double LEGEND_BOX
Used internally- See Also:
- Constant Field Values
-
LEGEND_INTERSPACING
static final int LEGEND_INTERSPACING
Used internally- See Also:
- Constant Field Values
-
PADDING_LEFT
static final int PADDING_LEFT
Used internally- See Also:
- Constant Field Values
-
PADDING_TOP
static final int PADDING_TOP
Used internally- See Also:
- Constant Field Values
-
PADDING_TITLE
static final int PADDING_TITLE
Used internally- See Also:
- Constant Field Values
-
PADDING_RIGHT
static final int PADDING_RIGHT
Used internally- See Also:
- Constant Field Values
-
PADDING_PLOT
static final int PADDING_PLOT
Used internally- See Also:
- Constant Field Values
-
PADDING_LEGEND
static final int PADDING_LEGEND
Used internally- See Also:
- Constant Field Values
-
PADDING_BOTTOM
static final int PADDING_BOTTOM
Used internally- See Also:
- Constant Field Values
-
PADDING_VLABEL
static final int PADDING_VLABEL
Used internally- See Also:
- Constant Field Values
-
GRID_STROKE
static final Stroke GRID_STROKE
Stroke used to draw grid
-
TICK_STROKE
static final Stroke TICK_STROKE
Stroke used to draw ticks
-
FONTTAG_DEFAULT
static final RrdGraphConstants.FontTag FONTTAG_DEFAULT
-
FONTTAG_TITLE
static final RrdGraphConstants.FontTag FONTTAG_TITLE
-
FONTTAG_AXIS
static final RrdGraphConstants.FontTag FONTTAG_AXIS
-
FONTTAG_UNIT
static final RrdGraphConstants.FontTag FONTTAG_UNIT
-
FONTTAG_LEGEND
static final RrdGraphConstants.FontTag FONTTAG_LEGEND
-
FONTTAG_WATERMARK
static final RrdGraphConstants.FontTag FONTTAG_WATERMARK
-
-