Class AlternatingRowConfigLabelAccumulator

    • Field Detail

      • layer

        protected ILayer layer
        The layer that should be used for row index transformation or null if no transformation should be performed.
        Since:
        1.6
    • Constructor Detail

      • AlternatingRowConfigLabelAccumulator

        public AlternatingRowConfigLabelAccumulator()
        Creates an AlternatingRowConfigLabelAccumulator that operates on row positions. In several layer compositions, this will lead to jumping alternating colors, as e.g. the ViewportLayer updates row positions on scrolling.
      • AlternatingRowConfigLabelAccumulator

        public AlternatingRowConfigLabelAccumulator​(ILayer layer)
        Creates an AlternatingRowConfigLabelAccumulator that operates on row indices. To achieve that it uses the given layer to calculate the row index by given row position.
        Parameters:
        layer - The layer that should be used for row index transformation, typically the ViewportLayer or body layer stack.
    • Method Detail

      • accumulateConfigLabels

        public void accumulateConfigLabels​(LabelStack configLabels,
                                           int columnPosition,
                                           int rowPosition)
        Description copied from interface: IConfigLabelAccumulator
        Add labels applicable to this cell position
        Specified by:
        accumulateConfigLabels in interface IConfigLabelAccumulator
        Parameters:
        configLabels - the labels currently applied to the cell. The labels contributed by this provider must be added to this stack
        columnPosition - of the cell for which labels are being gathered
        rowPosition - of the cell for which labels are being gathered