Class RowHeaderLayer

    • Constructor Detail

      • RowHeaderLayer

        public RowHeaderLayer​(IUniqueIndexLayer baseLayer,
                              ILayer verticalLayerDependency,
                              SelectionLayer selectionLayer)
        Creates a row header layer using the default configuration and painter.
        Parameters:
        baseLayer - The base layer for this layer, typically a DataLayer.
        verticalLayerDependency - The layer to link the vertical dimension to, typically the body layer.
        selectionLayer - The SelectionLayer needed to respond to selection events.
      • RowHeaderLayer

        public RowHeaderLayer​(IUniqueIndexLayer baseLayer,
                              ILayer verticalLayerDependency,
                              SelectionLayer... selectionLayer)
        Creates a row header layer using the default configuration and painter.
        Parameters:
        baseLayer - The base layer for this layer, typically a DataLayer.
        verticalLayerDependency - The layer to link the vertical dimension to, typically the body layer.
        selectionLayer - 0 to multiple SelectionLayer needed to respond to selection events.
        Since:
        1.4
      • RowHeaderLayer

        public RowHeaderLayer​(IUniqueIndexLayer baseLayer,
                              ILayer verticalLayerDependency,
                              SelectionLayer selectionLayer,
                              boolean useDefaultConfiguration)
        Creates a row header layer using the default painter.
        Parameters:
        baseLayer - The base layer for this layer, typically a DataLayer.
        verticalLayerDependency - The layer to link the vertical dimension to, typically the body layer.
        selectionLayer - The SelectionLayer needed to respond to selection events.
        useDefaultConfiguration - Flag to configure whether to use the default configuration or not.
      • RowHeaderLayer

        public RowHeaderLayer​(IUniqueIndexLayer baseLayer,
                              ILayer verticalLayerDependency,
                              SelectionLayer[] selectionLayer,
                              boolean useDefaultConfiguration)
        Creates a row header layer using the default painter.
        Parameters:
        baseLayer - The base layer for this layer, typically a DataLayer.
        verticalLayerDependency - The layer to link the vertical dimension to, typically the body layer.
        selectionLayer - 0 to multiple SelectionLayer needed to respond to selection events.
        useDefaultConfiguration - Flag to configure whether to use the default configuration or not.
        Since:
        1.4
      • RowHeaderLayer

        public RowHeaderLayer​(IUniqueIndexLayer baseLayer,
                              ILayer verticalLayerDependency,
                              SelectionLayer selectionLayer,
                              boolean useDefaultConfiguration,
                              ILayerPainter layerPainter)
        Parameters:
        baseLayer - The base layer for this layer, typically a DataLayer.
        verticalLayerDependency - The layer to link the vertical dimension to, typically the body layer.
        selectionLayer - The SelectionLayer needed to respond to selection events.
        useDefaultConfiguration - Flag to configure whether to use the default configuration or not.
        layerPainter - The painter for this layer or null to use the painter of the base layer
      • RowHeaderLayer

        public RowHeaderLayer​(IUniqueIndexLayer baseLayer,
                              ILayer verticalLayerDependency,
                              SelectionLayer[] selectionLayer,
                              boolean useDefaultConfiguration,
                              ILayerPainter layerPainter)
        Parameters:
        baseLayer - The base layer for this layer, typically a DataLayer.
        verticalLayerDependency - The layer to link the vertical dimension to, typically the body layer.
        selectionLayer - 0 to multiple SelectionLayer needed to respond to selection events.
        useDefaultConfiguration - Flag to configure whether to use the default configuration or not.
        layerPainter - The painter for this layer or null to use the painter of the base layer
        Since:
        1.4
    • Method Detail

      • doCommand

        public boolean doCommand​(ILayerCommand command)
        Description copied from interface: ILayer
        Opportunity to respond to a command as it flows down the stack. If the layer is not interested in the command it should allow the command to keep traveling down the stack.

        Note: Before the layer can process a command it must convert the command to its local coordinates using ILayerCommand.convertToTargetLayer(ILayer)

        Specified by:
        doCommand in interface ILayer
        Overrides:
        doCommand in class DimensionallyDependentLayer
        Parameters:
        command - The command to execute.
        Returns:
        true if the command has been handled and was therefore consumed, false otherwise.
      • getConfigLabelsByPosition

        public LabelStack getConfigLabelsByPosition​(int columnPosition,
                                                    int rowPosition)
        Description copied from interface: ILayer
        Returns the config labels for the cell at the given coordinates. Needed to retrieve the corresponding configurations out of the IConfigRegistry.
        Specified by:
        getConfigLabelsByPosition in interface ILayer
        Overrides:
        getConfigLabelsByPosition in class DimensionallyDependentLayer
        Parameters:
        columnPosition - The column position of the cell.
        rowPosition - The row position of the cell.
        Returns:
        The LabelStack with the config labels for the cell at the given coordinates.