org.ujmp.gui
Class MatrixGUIObject

java.lang.Object
  extended by org.ujmp.gui.AbstractGUIObject
      extended by 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

Field Summary
 
Fields inherited from class org.ujmp.gui.AbstractGUIObject
ALL, COLUMN, ROW, X, Y, Z
 
Constructor Summary
MatrixGUIObject(Matrix m)
           
 
Method Summary
 void addTableModelListener(TableModelListener l)
           
 void clear()
           
 Iterable<long[]> coordinates()
           
 void fireValueChanged()
           
 void fireValueChanged(int row, int column, Object value)
           
 Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int columnIndex)
           
 ListSelectionModel getColumnSelectionModel()
           
 Matrix getCoreObject()
           
 String getDescription()
           
 Double getDoubleValueAt(long... coordinates)
           
 double getEstimatedMaxValue(long timeOut)
           
 double getEstimatedMinValue(long timeOut)
           
 JFrame getFrame()
           
 Icon getIcon()
           
 String getLabel()
           
 EventListenerList getListenerList()
           
 Matrix getMatrix()
           
 JPanel getPanel()
           
 int getRowCount()
           
 String getRowName(int row)
           
 ListSelectionModel getRowSelectionModel()
           
 long[] getSize()
           
 String getToolTipText()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 Object getValueAt(long[] c)
           
 long getValueCount()
           
 int getZCount()
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isScalar()
           
 boolean isSparse()
           
 boolean isSquare()
           
 void removeTableModelListener(TableModelListener l)
           
 void setColumnSelectionModel(ListSelectionModel columnSelectionModel)
           
 void setDescription(String description)
           
 void setLabel(String label)
           
 void setRowSelectionModel(ListSelectionModel rowSelectionModel)
           
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
           
 String toString()
           
 
Methods inherited from class org.ujmp.gui.AbstractGUIObject
getModCount, showGUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatrixGUIObject

public MatrixGUIObject(Matrix m)
Method Detail

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.