Class DMatrixComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DMatrixComponent
extends JPanel
Renders a matrix as an image. Positive elements are shades of red, negative shades of blue, 0 is black.
See Also:
Serialized Form
  • Constructor Details

    • DMatrixComponent

      public DMatrixComponent​(int width, int height)
  • Method Details

    • setMatrix

      public void setMatrix​(org.ejml.data.DMatrixD1 A)
    • renderMatrix

      public static void renderMatrix​(org.ejml.data.DMatrixD1 M, BufferedImage image, double maxValue)
    • paint

      public void paint​(Graphics g)
      Overrides:
      paint in class JComponent