Package net.i2p.router.web
Class SummaryRenderer
java.lang.Object
net.i2p.router.web.SummaryRenderer
class SummaryRenderer extends Object
Generate the RRD graph png images,
including the combined rate graph.
- Since:
- 0.6.1.13
-
Field Summary
Fields Modifier and Type Field Description (package private) String
DEFAULT_FONT_NAME
(package private) String
DEFAULT_LEGEND_FONT_NAME
(package private) String
DEFAULT_TITLE_FONT_NAME
(package private) GraphicsEnvironment
e
(package private) List<String>
fontlist
(package private) String[]
sysfonts
-
Constructor Summary
Constructors Constructor Description SummaryRenderer(I2PAppContext ctx, SummaryListener lsnr)
-
Method Summary
Modifier and Type Method Description void
render(OutputStream out)
void
render(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, int endp, boolean showCredit)
Single graph.void
render(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, int endp, boolean showCredit, SummaryListener lsnr2, String titleOverride)
Single or two-data-source graph.static void
render(I2PAppContext ctx, OutputStream out, String filename)
Deprecated.unused
-
Field Details
-
DEFAULT_FONT_NAME
String DEFAULT_FONT_NAME -
DEFAULT_TITLE_FONT_NAME
String DEFAULT_TITLE_FONT_NAME -
DEFAULT_LEGEND_FONT_NAME
String DEFAULT_LEGEND_FONT_NAME -
e
-
sysfonts
String[] sysfonts -
fontlist
-
-
Constructor Details
-
Method Details
-
render
@Deprecated public static void render(I2PAppContext ctx, OutputStream out, String filename) throws IOExceptionDeprecated.unusedRender the stats as determined by the specified JRobin xml config, but note that this doesn't work on stock jvms, as it requires DOM level 3 load and store support. Perhaps we can bundle that, or specify who can get it from where, etc.- Throws:
UnsupportedOperationException
- alwaysIOException
-
render
- Throws:
IOException
-
render
public void render(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, int endp, boolean showCredit) throws IOExceptionSingle graph.- Parameters:
endp
- number of periods before now- Throws:
IOException
-
render
public void render(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, int endp, boolean showCredit, SummaryListener lsnr2, String titleOverride) throws IOExceptionSingle or two-data-source graph.- Parameters:
lsnr2
- 2nd data source to plot on same graph, or null. Not recommended for events.titleOverride
- If non-null, overrides the title- Throws:
IOException
- Since:
- 0.9.6 consolidated from StatSummarizer for bw.combined
-