java.lang.Object
net.i2p.router.web.helpers.RingRenderer.RingSection
- Enclosing class:
RingRenderer
A section of a multi-section ring with a proportion and color class. Values are normalized to sum to 1.0 at render time.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionRingSection(double value, String cssClass) Holds one arc's share of the ring and the CSS class colouring it.Method Summary
Field Details
value
public final double valueproportion (0.0–1.0).cssClass
CSS color class: "green", "red", "yellow", "blue", "cyan", "gray".
Constructor Details
RingSection
Holds one arc's share of the ring and the CSS class colouring it.- Parameters:
value- the proportion of the ring this arc covers, normalized with the other sections to sum to 1.0 at render timecssClass- the CSS color class naming this section's arc