java.lang.Object
net.i2p.router.web.helpers.RingRenderer.RingSection
Enclosing class:
RingRenderer

public static class RingRenderer.RingSectionextends Object
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 Details

    • value

      public final double value
      proportion (0.0–1.0).
    • cssClass

      public final String cssClass
      CSS color class: "green", "red", "yellow", "blue", "cyan", "gray".
  • Constructor Details

    • RingSection

      public RingSection(double value, String cssClass)
      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 time
      cssClass - the CSS color class naming this section's arc