Class PoAutoValueLegend

  • All Implemented Interfaces:
    SafeDisposable
    Direct Known Subclasses:
    PoLinearValueLegend, PoNonLinearValueLegend1, PoNonLinearValueLegend2, PoNonLinearValueLegend3

    public class PoAutoValueLegend
    extends PoValueLegend
    Abstract class for automatic value legend. This class represents a value legend delimited by a rectangle defined by the points start and end. Values of the legend are drawn from the start point to the end point, so reversing their two points reverses also the value order.

    The distribution of the color boxes is handled automatically according to the number of values and the geometry of the rectangle delimiting the legend. The box sizes and the font size are calculated so that the boxes occupy the entire space inside the legend rectangle.

    • Field Detail

      • start

        public final SoSFVec2f start
        First point of one of the diagonals of the rectangle delimiting the legend. Values of the legend are drawn from the start point to the end point, so reversing their two points reverses also the values order. For instance if start = SbVec2f(0,0) and end = SbVec2f(0.5, 1), values are drawn from the down to the up.
      • end

        public final SoSFVec2f end
        Second point of the same diagonal.