class GraphRenderer extends Object
| Modifier and Type | Field and 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 and Description |
|---|
GraphRenderer(I2PAppContext ctx,
GraphListener lsnr) |
| Modifier and Type | Method and 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,
GraphListener lsnr2,
String titleOverride)
Single or two-data-source graph.
|
String DEFAULT_FONT_NAME
String DEFAULT_LEGEND_FONT_NAME
String DEFAULT_TITLE_FONT_NAME
String[] sysfonts
public GraphRenderer(I2PAppContext ctx, GraphListener lsnr)
public void render(OutputStream out) throws IOException
IOExceptionpublic void render(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, int endp, boolean showCredit) throws IOException
endp - number of periods before nowIOExceptionpublic void render(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, int endp, boolean showCredit, GraphListener lsnr2, String titleOverride) throws IOException
lsnr2 - 2nd data source to plot on same graph, or null. Not recommended for events.titleOverride - If non-null, overrides the titleIOException