Package org.rrd4j.graph
Interface RrdGraphConstants
-
- All Known Implementing Classes:
Axis,CommentText,LegendComposer,LegendText,PrintText,RrdGraph,RrdGraphDef,TimeAxis,ValueAxis,ValueAxisLogarithmic,ValueAxisMrtg
public interface RrdGraphConstantsClass 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.propertiesororg.rrd4j.fonts.properties.urlis 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.urlandorg.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.propertieslooking for the file/rrd4jfonts.propertiesin 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 intPADDING_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 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_FONTand 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_FONTand 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
-
-