Class LevelSize

    • Constructor Detail

      • LevelSize

        public LevelSize()
      • LevelSize

        public LevelSize​(Number value,
                         String unit)
        Constructs with value and unit.
    • Method Detail

      • getUnit

        public String getUnit()
        Returns how to interpret levelSize.value.
        • percentage gives a width relative to result of outer radius minus inner radius.
        • pixels gives the ring a fixed width in pixels.
        • weight takes the remaining width after percentage and pixels, and distributes it across all "weighted" levels. The value relative to the sum of all weights determines the width.

        Default: "weight"

      • setUnit

        public void setUnit​(String unit)
        Sets how to interpret levelSize.value.
        • percentage gives a width relative to result of outer radius minus inner radius.
        • pixels gives the ring a fixed width in pixels.
        • weight takes the remaining width after percentage and pixels, and distributes it across all "weighted" levels. The value relative to the sum of all weights determines the width.
      • getValue

        public Number getValue()
        Returns the value used for calculating the width of the ring. Its' affect is determined by levelSize.unit.

        Default: 1

      • setValue

        public void setValue​(Number value)
        Sets the value used for calculating the width of the ring. Its' affect is determined by levelSize.unit.