java.lang.Object
net.i2p.router.web.GraphRenderer.GraphRenderConfig.Builder
- Enclosing class:
GraphRenderer.GraphRenderConfig
Mutable counterpart of
GraphRenderer.GraphRenderConfig; every setter returns itself.Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanTrue to draw the primary as a line rather than a filled area.(package private) longWindow end, in wall-clock ms.(package private) List<GraphListener> Extra series of a combined graph, in legend order.(package private) booleanTrue to render every series as a filled path under a thin line.(package private) booleanTrue to keep the historical zero-floored y-axis.(package private) intFrame height in pixels.(package private) booleanTrue to omit the grid lines.(package private) booleanTrue to omit the legend, and with it the summary block and the restart markers.(package private) booleanTrue to omit the title derived from the stat name.(package private) StringActive UI language code, which selects the fonts and the translated title.(package private) GraphListenerThe listener holding the RRD: the datasource, the archive rows and the clock.(package private) booleanEmit the plot geometry and series as JSON instead of drawing the image.(package private) longThe rate's period in ms, which is also the archive step.(package private) intPeriods in the window.(package private) RateThe tracked rate, for its period, stat name and description.(package private) booleanTrue to keep rrd4j's signature line.(package private) booleanTrue to plot the event count instead of the stat itself.(package private) booleanTrue to rule off each router restart inside the window.(package private) booleanTrue to interpolate between samples instead of stepping.(package private) longWindow start, in wall-clock ms.(package private) StringConsole theme name every colour, font and width is read from.(package private) StringTitle to draw, or null to derive one from the stat name.(package private) booleanTrue to label the axis and the dates in UTC.(package private) intFrame width in pixels.Constructor Summary
ConstructorsConstructorDescriptionBuilder()Obtained fromGraphRenderer.GraphRenderConfig.builder(), the only place one is made.Method Summary
All MethodsModifier and TypeMethodDescription(package private) GraphRenderer.GraphRenderConfig.BuilderallLines(boolean v) Draw the primary as a line rather than as a filled area.(package private) GraphRenderer.GraphRenderConfigbuild()Freeze what has been set so far.(package private) GraphRenderer.GraphRenderConfig.Builderend(long v) Sets when the plotted window ends.(package private) GraphRenderer.GraphRenderConfig.Builderextras(List<GraphListener> v) Plot a list of extra series alongside the primary.(package private) GraphRenderer.GraphRenderConfig.BuilderfillSeries(boolean v) Draw every series as a filled path under a thin line.(package private) GraphRenderer.GraphRenderConfig.BuilderforceZero(boolean v) Keep the historical zero-floored y-axis.(package private) GraphRenderer.GraphRenderConfig.Builderheight(int v) Sets the frame height.(package private) GraphRenderer.GraphRenderConfig.BuilderhideGrid(boolean v) Chooses whether the grid lines are omitted.(package private) GraphRenderer.GraphRenderConfig.BuilderhideLegend(boolean v) Chooses whether the legend, and everything drawn with it, is omitted.(package private) GraphRenderer.GraphRenderConfig.BuilderhideTitle(boolean v) Chooses whether the title derived from the stat name is omitted.(package private) GraphRenderer.GraphRenderConfig.BuilderSelect the fonts and the translated title for one language.(package private) GraphRenderer.GraphRenderConfig.BuilderName the listener whose RRD this pass plots.(package private) GraphRenderer.GraphRenderConfig.BuilderPlot one extra series alongside the primary, wrapped into the extras list.(package private) GraphRenderer.GraphRenderConfig.Buildermeta(boolean v) Ask for the plot metadata rather than a drawing.(package private) GraphRenderer.GraphRenderConfig.Builderperiod(long v) Sets the archive step the window is measured in.(package private) GraphRenderer.GraphRenderConfig.BuilderperiodCount(int v) Sets how many periods the window covers.(package private) GraphRenderer.GraphRenderConfig.BuilderSets the rate this pass plots.(package private) GraphRenderer.GraphRenderConfig.BuildershowCredit(boolean v) Chooses whether rrd4j's signature line is kept.(package private) GraphRenderer.GraphRenderConfig.BuildershowEvents(boolean v) Chooses whether the event count is plotted instead of the stat.(package private) GraphRenderer.GraphRenderConfig.BuildershowRestarts(boolean v) Chooses whether each router restart is ruled off.(package private) GraphRenderer.GraphRenderConfig.Buildersmooth(boolean v) Interpolate between samples instead of stepping.(package private) GraphRenderer.GraphRenderConfig.Builderstart(long v) Sets when the plotted window begins.(package private) GraphRenderer.GraphRenderConfig.BuilderSelects the theme the frame is drawn in.(package private) GraphRenderer.GraphRenderConfig.BuilderSets the title, replacing the one derived from the stat name.(package private) GraphRenderer.GraphRenderConfig.BuilderuseUtc(boolean v) Label the axis and the dates in UTC.(package private) GraphRenderer.GraphRenderConfig.Builderwidth(int v) Sets the frame width.
Field Details
start
long startWindow start, in wall-clock ms.end
long endWindow end, in wall-clock ms.period
long periodThe rate's period in ms, which is also the archive step.width
int widthFrame width in pixels.height
int heightFrame height in pixels.periodCount
int periodCountPeriods in the window.theme
String themeConsole theme name every colour, font and width is read from.hideLegend
boolean hideLegendTrue to omit the legend, and with it the summary block and the restart markers.hideGrid
boolean hideGridTrue to omit the grid lines.hideTitle
boolean hideTitleTrue to omit the title derived from the stat name.showEvents
boolean showEventsTrue to plot the event count instead of the stat itself.showCredit
boolean showCreditTrue to keep rrd4j's signature line.showRestarts
boolean showRestartsTrue to rule off each router restart inside the window.titleOverride
String titleOverrideTitle to draw, or null to derive one from the stat name.rate
Rate rateThe tracked rate, for its period, stat name and description.extras
List<GraphListener> extrasExtra series of a combined graph, in legend order.allLines
boolean allLinesTrue to draw the primary as a line rather than a filled area.fillSeries
boolean fillSeriesTrue to render every series as a filled path under a thin line.useUtc
boolean useUtcTrue to label the axis and the dates in UTC.smooth
boolean smoothTrue to interpolate between samples instead of stepping.meta
boolean metaEmit the plot geometry and series as JSON instead of drawing the image.forceZero
boolean forceZeroTrue to keep the historical zero-floored y-axis.lang
String langActive UI language code, which selects the fonts and the translated title.listener
GraphListener listenerThe listener holding the RRD: the datasource, the archive rows and the clock.
Constructor Details
Builder
Builder()Obtained fromGraphRenderer.GraphRenderConfig.builder(), the only place one is made.
Method Details
start
Sets when the plotted window begins.- Parameters:
v- window start, in wall-clock ms- Returns:
- this builder, for chaining calls
end
Sets when the plotted window ends.- Parameters:
v- window end, in wall-clock ms- Returns:
- this builder, for chaining calls
period
Sets the archive step the window is measured in.- Parameters:
v- the rate's period in ms, which is also the archive step- Returns:
- this builder, for chaining calls
width
Sets the frame width.- Parameters:
v- frame width in pixels- Returns:
- this builder, for chaining calls
height
Sets the frame height.- Parameters:
v- frame height in pixels- Returns:
- this builder, for chaining calls
periodCount
Sets how many periods the window covers.- Parameters:
v- periods in the window- Returns:
- this builder, for chaining calls
theme
Selects the theme the frame is drawn in.- Parameters:
v- console theme name every colour, font and width is read from- Returns:
- this builder, for chaining calls
hideLegend
Chooses whether the legend, and everything drawn with it, is omitted.- Parameters:
v- true to omit the legend and everything drawn with it- Returns:
- this builder, for chaining calls
hideGrid
Chooses whether the grid lines are omitted.- Parameters:
v- true to omit the grid lines- Returns:
- this builder, for chaining calls
hideTitle
Chooses whether the title derived from the stat name is omitted.- Parameters:
v- true to omit the title derived from the stat name- Returns:
- this builder, for chaining calls
showEvents
Chooses whether the event count is plotted instead of the stat.- Parameters:
v- true to plot the event count instead of the stat itself- Returns:
- this builder, for chaining calls
showCredit
Chooses whether rrd4j's signature line is kept.- Parameters:
v- true to keep rrd4j's signature line- Returns:
- this builder, for chaining calls
showRestarts
Chooses whether each router restart is ruled off.- Parameters:
v- true to rule off each router restart inside the window- Returns:
- this builder, for chaining calls
titleOverride
Sets the title, replacing the one derived from the stat name.- Parameters:
v- title to draw, or null to derive one from the stat name- Returns:
- this builder, for chaining calls
rate
Sets the rate this pass plots.- Parameters:
v- the tracked rate, for its period, stat name and description- Returns:
- this builder, for chaining calls
extras
Plot a list of extra series alongside the primary.- Parameters:
v- extra series to plot on the same graph, or null/empty for none- Returns:
- this builder, for chaining calls
allLines
Draw the primary as a line rather than as a filled area.- Parameters:
v- true to draw the primary as a line instead of a filled area- Returns:
- this builder, for chaining calls
fillSeries
Draw every series as a filled path under a thin line.- Parameters:
v- render every series as a filled path under a thin line- Returns:
- this builder, for chaining calls
lsnr2
Plot one extra series alongside the primary, wrapped into the extras list.- Parameters:
v- single extra series to plot on the same graph, or null- Returns:
- this builder, for chaining calls
useUtc
Label the axis and the dates in UTC.- Parameters:
v- true to label the axis and the dates in UTC- Returns:
- this builder, for chaining calls
smooth
Interpolate between samples instead of stepping.- Parameters:
v- true to interpolate between samples instead of stepping- Returns:
- this builder, for chaining calls
meta
Ask for the plot metadata rather than a drawing.- Parameters:
v- true to emit JSON- Returns:
- this builder, for chaining calls
forceZero
Keep the historical zero-floored y-axis.- Parameters:
v- true to keep the historical zero-floored y-axis- Returns:
- this builder, for chaining calls
lang
Select the fonts and the translated title for one language.- Parameters:
v- active UI language code- Returns:
- this builder, for chaining calls
listener
Name the listener whose RRD this pass plots.- Parameters:
v- the listener holding the RRD to plot- Returns:
- this builder, for chaining calls
build
GraphRenderer.GraphRenderConfig build()Freeze what has been set so far.- Returns:
- the immutable configuration this builder has accumulated