public interface RrdGraphConstantsThe 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.urlorg.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.
| Modifier and Type | Interface and Description |
|---|---|
static class | RrdGraphConstants.FontConstructorFont constructor, to use embedded fonts. |
static class | RrdGraphConstants.FontTagAllowed font tag names which can be used in RrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag,
java.awt.Font) method |
| Modifier and Type | Field and Description |
|---|---|
static String | ALIGN_CENTER_MARKERDeprecated. |
static String | ALIGN_JUSTIFIED_MARKERDeprecated. |
static String | ALIGN_LEFT_MARKERDeprecated. |
static String | ALIGN_LEFTNONL_MARKERDeprecated. |
static String | ALIGN_RIGHT_MARKERDeprecated. |
static Color | BLIND_COLORAn transparent color |
static int | COLOR_ARROWIndex of the arrow color. |
static int | COLOR_BACKIndex of the background color. |
static int | COLOR_CANVASIndex of the canvas color. |
static int | COLOR_FONTIndex of the font color. |
static int | COLOR_FRAMEIndex of the frame color. |
static int | COLOR_GRIDIndex of the minor grid color. |
static int | COLOR_MGRIDIndex of the major grid color. |
static int | COLOR_SHADEAIndex of the top-left graph shade color. |
static int | COLOR_SHADEBIndex of the bottom-right graph shade color. |
static int | COLOR_XAXISIndex of the x-axis color. |
static int | COLOR_YAXISIndex of the yaxis color. |
static int | DAYConstant to represent day |
static Color | DEFAULT_ARROW_COLORDefault arrow color |
static Color | DEFAULT_BACK_COLORDefault graph background color |
static double | DEFAULT_BASEDefault value base |
static Color | DEFAULT_CANVAS_COLORDefault graph canvas color |
static String | DEFAULT_ENDDefault graph ending time |
static Color | DEFAULT_FONT_COLORDefault font color |
static Color | DEFAULT_FRAME_COLORDefault frame color |
static Color | DEFAULT_GRID_COLORDefault minor grid color |
static int | DEFAULT_HEIGHTDefault graph height |
static String | DEFAULT_IMAGE_FORMATDefault image format |
static float | DEFAULT_IMAGE_QUALITYDefault image quality, used only for jpeg graphs |
static Font | DEFAULT_LARGE_FONTDefault graph large font |
static Color | DEFAULT_MGRID_COLORDefault major grid color |
static Color | DEFAULT_SHADEA_COLORDefault top-left graph shade color |
static Color | DEFAULT_SHADEB_COLORDefault bottom-right graph shade color |
static Font | DEFAULT_SMALL_FONTDefault graph small font |
static String | DEFAULT_STARTDefault graph starting time |
static int | DEFAULT_UNITS_LENGTHDefault units length |
static int | DEFAULT_WIDTHDefault graph width |
static Color | DEFAULT_XAXIS_COLORDefault x-axis color |
static Color | DEFAULT_YAXIS_COLORDefault x-axis color |
static int | FIRST_DAY_OF_WEEKDefault first day of the week (obtained from the default locale) |
static RrdGraphConstants.FontTag | FONTTAG_AXISAxis font tag |
static RrdGraphConstants.FontTag | FONTTAG_DEFAULTDefault font tag |
static RrdGraphConstants.FontTag | FONTTAG_LEGENDLegend font tag |
static RrdGraphConstants.FontTag | FONTTAG_TITLETitle font tag |
static RrdGraphConstants.FontTag | FONTTAG_UNITUnit font tag |
static RrdGraphConstants.FontTag | FONTTAG_WATERMARKWatermark font tag |
static int | FRIDAYConstant to represent Friday |
static Font | GATOR_FONTFont for the Gator |
static String | GLUE_MARKERDeprecated. |
static Stroke | GRID_STROKEStroke used to draw grid |
static String | HH_MMHH:mm time format |
static int | HOURConstant to represent hour |
static String | IN_MEMORY_IMAGEConstant to represent in-memory image name |
static double | LEGEND_BOXUsed internally |
static double | LEGEND_BOX_SPACEUsed internally |
static int | LEGEND_INTERSPACINGUsed internally |
static double | LEGEND_LEADINGUsed internally |
static double | LEGEND_LEADING_SMALLUsed internally |
static int | MINUTEConstant to represent minute |
static int | MONDAYConstant to represent Monday |
static int | MONTHConstant to represent month |
static String | NO_JUSTIFICATION_MARKERDeprecated. |
static int | PADDING_BOTTOMUsed internally |
static int | PADDING_LEFTUsed internally |
static double | PADDING_LEGENDUsed internally |
static int | PADDING_PLOTUsed internally |
static int | PADDING_RIGHTUsed internally |
static int | PADDING_TITLEUsed internally |
static int | PADDING_TOPUsed internally |
static int | PADDING_VLABELUsed internally |
static String | PROPERTYFONTBOLDThe name of the bold font, used to define the DEFAULT_LARGE_FONT. |
static String | PROPERTYFONTBOLDURLA URL to the bold font, used to define the DEFAULT_LARGE_FONT. |
static String | PROPERTYFONTPLAINThe name of the plain font, used to define the DEFAULT_SMALL_FONT and the GATOR_FONT. |
static String | PROPERTYFONTPLAINURLA URL to the plain font, used to define the DEFAULT_SMALL_FONT and the GATOR_FONT. |
static String | PROPERTYFONTSPROPERTIESThe file that contains font configuration searched in the class path. |
static String | PROPERTYFONTSURLA possible URL to a configuration file. |
static int | SATURDAYConstant to represent Saturday |
static int | SECONDConstant to represent second |
static int | SUNDAYConstant to represent Sunday |
static int | THURSDAYConstant to represent Thursday |
static Stroke | TICK_STROKEStroke used to draw ticks |
static int | TUESDAYConstant to represent Tuesday |
static String | VERTICAL_SPACING_MARKERDeprecated. |
static int | WEDNESDAYConstant to represent Wednesday |
static int | WEEKConstant to represent week |
static int | YEARConstant to represent year |
@Deprecated static final String ALIGN_CENTER_MARKER
@Deprecated static final String ALIGN_JUSTIFIED_MARKER
@Deprecated static final String ALIGN_LEFT_MARKER
@Deprecated static final String ALIGN_LEFTNONL_MARKER
@Deprecated static final String ALIGN_RIGHT_MARKER
static final Color BLIND_COLOR
static final int COLOR_ARROW
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_BACK
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_CANVAS
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_FONT
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_FRAME
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_GRID
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_MGRID
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_SHADEA
RrdGraphDef.setColor(int,
java.awt.Paint)static final int COLOR_SHADEB
RrdGraphDef.setColor(int,
java.awt.Paint)static final int COLOR_XAXIS
RrdGraphDef.setColor(int, java.awt.Paint)static final int COLOR_YAXIS
RrdGraphDef.setColor(int, java.awt.Paint)static final int DAY
static final Color DEFAULT_ARROW_COLOR
static final Color DEFAULT_BACK_COLOR
static final double DEFAULT_BASE
static final Color DEFAULT_CANVAS_COLOR
static final String DEFAULT_END
static final Color DEFAULT_FONT_COLOR
static final Color DEFAULT_FRAME_COLOR
static final Color DEFAULT_GRID_COLOR
static final int DEFAULT_HEIGHT
static final String DEFAULT_IMAGE_FORMAT
static final float DEFAULT_IMAGE_QUALITY
static final Font DEFAULT_LARGE_FONT
static final Color DEFAULT_MGRID_COLOR
static final Color DEFAULT_SHADEA_COLOR
static final Color DEFAULT_SHADEB_COLOR
static final Font DEFAULT_SMALL_FONT
static final String DEFAULT_START
static final int DEFAULT_UNITS_LENGTH
static final int DEFAULT_WIDTH
static final Color DEFAULT_XAXIS_COLOR
static final Color DEFAULT_YAXIS_COLOR
static final int FIRST_DAY_OF_WEEK
static final RrdGraphConstants.FontTag FONTTAG_AXIS
static final RrdGraphConstants.FontTag FONTTAG_DEFAULT
static final RrdGraphConstants.FontTag FONTTAG_LEGEND
static final RrdGraphConstants.FontTag FONTTAG_TITLE
static final RrdGraphConstants.FontTag FONTTAG_UNIT
static final RrdGraphConstants.FontTag FONTTAG_WATERMARK
static final int FRIDAY
static final Font GATOR_FONT
@Deprecated static final String GLUE_MARKER
static final Stroke GRID_STROKE
static final String HH_MM
static final int HOUR
static final String IN_MEMORY_IMAGE
static final double LEGEND_BOX
static final double LEGEND_BOX_SPACE
static final int LEGEND_INTERSPACING
static final double LEGEND_LEADING
static final double LEGEND_LEADING_SMALL
static final int MINUTE
static final int MONDAY
static final int MONTH
@Deprecated static final String NO_JUSTIFICATION_MARKER
static final int PADDING_BOTTOM
static final int PADDING_LEFT
static final double PADDING_LEGEND
static final int PADDING_PLOT
static final int PADDING_RIGHT
static final int PADDING_TITLE
static final int PADDING_TOP
static final int PADDING_VLABEL
static final String PROPERTYFONTBOLD
DEFAULT_LARGE_FONT. To be found in the
classpath.static final String PROPERTYFONTBOLDURL
DEFAULT_LARGE_FONT.static final String PROPERTYFONTPLAIN
DEFAULT_SMALL_FONT and the GATOR_FONT. To be found in the classpath.static final String PROPERTYFONTPLAINURL
DEFAULT_SMALL_FONT and the GATOR_FONT.static final String PROPERTYFONTSPROPERTIES
/rrd4jfonts.propertiesstatic final String PROPERTYFONTSURL
static final int SATURDAY
static final int SECOND
static final int SUNDAY
static final int THURSDAY
static final Stroke TICK_STROKE
static final int TUESDAY
@Deprecated static final String VERTICAL_SPACING_MARKER
static final int WEDNESDAY
static final int WEEK
static final int YEAR