Class MatrixViewerPanel

    • Constructor Detail

      • MatrixViewerPanel

        public MatrixViewerPanel()
    • Method Detail

      • setMatrixRendererSolution

        public void setMatrixRendererSolution​(MatrixRendererSolution matrixRendererSolution)
      • addMatrixRenderer

        public void addMatrixRenderer​(MatrixRenderer matrixRenderer)
      • addMatrixRenderer

        public void addMatrixRenderer​(MatrixRenderer matrixRenderer,
                                      boolean defautRenderer)
        Add new matrix renderer.
        Parameters:
        matrixRenderer - matrix renderer
        defautRenderer - renderer can be called with a null matrix to get default rendering
      • removeMatrixRenderer

        public void removeMatrixRenderer​(Object matrixRenderer)
      • setMatrix

        public void setMatrix​(MatrixND matrix)
        Set currently displayed matrix.
        Parameters:
        matrix - new matrix to display
      • getMatrix

        public MatrixND getMatrix()
        Get currently displayed matrix.
        Returns:
        current matrix
      • addMatrixDimentionAction

        public void addMatrixDimentionAction​(MatrixDimensionAction matrixDimentionAction)
        Add new action.
        Parameters:
        matrixDimentionAction - new action
      • buildPanel

        protected void buildPanel()
        Build main panel.
      • updateSelectedRenderingComponent

        public void updateSelectedRenderingComponent()
        Set rendering component in rendering container.
      • initRenderering

        public void initRenderering​(List[] dimSelectedValues,
                                    int[] selectedActions)
        Init renderering by autoselecting some dimensions values and some dimensions action. And perform rendering.
        Parameters:
        dimSelectedValues - selected values in each dimensions
        selectedActions - selected action in each dimensions
        Throws:
        IllegalArgumentException - if matrix has not been set