org.ujmp.gui
Class MatrixGUIObject
java.lang.Object
org.ujmp.gui.AbstractGUIObject
org.ujmp.gui.MatrixGUIObject
- All Implemented Interfaces:
- Serializable, Cloneable, TableModel, Clearable, GUIObject, HasDescription, HasLabel, HasToolTip
public class MatrixGUIObject
- extends AbstractGUIObject
- implements TableModel
- See Also:
- Serialized Form
MatrixGUIObject
public MatrixGUIObject(Matrix m)
getMatrix
public Matrix getMatrix()
clear
public void clear()
- Specified by:
clear
in interface Clearable
getEstimatedMaxValue
public double getEstimatedMaxValue(long timeOut)
throws MatrixException
- Throws:
MatrixException
getEstimatedMinValue
public double getEstimatedMinValue(long timeOut)
throws MatrixException
- Throws:
MatrixException
getValueCount
public long getValueCount()
getListenerList
public final EventListenerList getListenerList()
getLabel
public String getLabel()
- Specified by:
getLabel
in interface HasLabel
setLabel
public void setLabel(String label)
- Specified by:
setLabel
in interface HasLabel
addTableModelListener
public final void addTableModelListener(TableModelListener l)
- Specified by:
addTableModelListener
in interface TableModel
removeTableModelListener
public final void removeTableModelListener(TableModelListener l)
- Specified by:
removeTableModelListener
in interface TableModel
getToolTipText
public final String getToolTipText()
- Specified by:
getToolTipText
in interface HasToolTip
- Overrides:
getToolTipText
in class AbstractGUIObject
fireValueChanged
public final void fireValueChanged()
- Specified by:
fireValueChanged
in interface GUIObject
- Overrides:
fireValueChanged
in class AbstractGUIObject
fireValueChanged
public final void fireValueChanged(int row,
int column,
Object value)
getColumnClass
public final Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface TableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName
in interface TableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface TableModel
getValueAt
public Object getValueAt(long[] c)
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt
in interface TableModel
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable
in interface TableModel
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt
in interface TableModel
coordinates
public Iterable<long[]> coordinates()
getRowName
public final String getRowName(int row)
getZCount
public int getZCount()
isSquare
public boolean isSquare()
getDoubleValueAt
public Double getDoubleValueAt(long... coordinates)
throws MatrixException
- Throws:
MatrixException
isSparse
public boolean isSparse()
isScalar
public boolean isScalar()
getColumnSelectionModel
public ListSelectionModel getColumnSelectionModel()
setColumnSelectionModel
public void setColumnSelectionModel(ListSelectionModel columnSelectionModel)
getRowSelectionModel
public ListSelectionModel getRowSelectionModel()
setRowSelectionModel
public void setRowSelectionModel(ListSelectionModel rowSelectionModel)
getSize
public long[] getSize()
getIcon
public final Icon getIcon()
- Specified by:
getIcon
in interface GUIObject
getDescription
public String getDescription()
- Specified by:
getDescription
in interface HasDescription
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interface HasDescription
toString
public String toString()
- Specified by:
toString
in class AbstractGUIObject
getCoreObject
public Matrix getCoreObject()
- Specified by:
getCoreObject
in interface GUIObject
getFrame
public JFrame getFrame()
- Specified by:
getFrame
in interface GUIObject
getPanel
public JPanel getPanel()
- Specified by:
getPanel
in interface GUIObject
Copyright © 2010. All Rights Reserved.