org.nuiton.math.matrix.gui.MatrixTableModelLinear Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nuiton-matrix Show documentation
Show all versions of nuiton-matrix Show documentation
Librairie de matrice multi-dimensions.
The newest version!
/* *##% NuitonMatrix
* Copyright (C) 2004 - 2009 CodeLutin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* . ##%*/
package org.nuiton.math.matrix.gui;
import static org.nuiton.i18n.I18n._;
import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JTable;
import javax.swing.UIManager;
import javax.swing.border.Border;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellRenderer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nuiton.math.matrix.MatrixIterator;
import org.nuiton.math.matrix.MatrixND;
/**
* MatrixTableModelLinear.
*
* Created: 22 mars 2006 12:11:46
*
* @author poussin
* @version $Revision: 197 $
*
* Last update: $Date: 2009-11-02 12:11:40 +0100 (lun., 02 nov. 2009) $
* by : $Author: echatellier $
*/
public class MatrixTableModelLinear extends AbstractTableModel implements
MatrixTableModel {
/** serialVersionUID. */
private static final long serialVersionUID = -7498520067143762434L;
/** Logger for this class. */
private static Log log = LogFactory.getLog(MatrixTableModelLinear.class);
protected boolean enabled = true;
protected MatrixND m = null;
protected boolean showDefault = false;
protected double defaultValue = 0;
protected List