Package org.ujmp.gui
Class DefaultMatrixGUIObject
- java.lang.Object
-
- org.ujmp.gui.AbstractGUIObject
-
- org.ujmp.gui.AbstractMatrixGUIObject
-
- org.ujmp.gui.DefaultMatrixGUIObject
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.table.TableModel
,Clearable
,GUIObject
,HasDescription
,HasLabel
,HasToolTip
,MatrixGUIObject
,TableModel64
public class DefaultMatrixGUIObject extends AbstractMatrixGUIObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected long
columnCount
protected boolean
columnCountUpToDate
protected java.util.Map<Coordinates,DataItem>
dataCache
protected java.awt.Image
icon
protected boolean
iconUpToDate
protected long
rowCount
protected boolean
rowCountUpToDate
private static long
serialVersionUID
protected java.util.List<Coordinates>
todo
-
Fields inherited from class org.ujmp.gui.AbstractMatrixGUIObject
matrix
-
Fields inherited from interface org.ujmp.core.interfaces.HasDescription
DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description DefaultMatrixGUIObject(Matrix matrix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
fireValueChanged()
Indicates that changed in the object have been made, that should be updated on the screen.void
fireValueChanged(long row, long column, java.lang.Object value)
void
fireValueChanged(Coordinates coordinates, java.lang.Object value)
void
fireValueChanged(Coordinates start, Coordinates end)
java.awt.Color
getColorAt(long rowIndex, long columnIndex)
long
getColumnCount64()
java.lang.String
getColumnName(int columnIndex)
java.lang.String
getColumnName(long columnIndex)
java.util.Map<Coordinates,DataItem>
getDataCache()
java.lang.String
getDescription()
java.awt.Image
getIcon()
java.lang.String
getLabel()
Returns the String label of an object.java.lang.Object
getLabelObject()
Returns the label of an object.long
getRowCount64()
java.util.List<Coordinates>
getTodo()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
java.lang.Object
getValueAt(long rowIndex, long columnIndex)
boolean
isColumnCountUpToDate()
boolean
isIconUpToDate()
boolean
isRowCountUpToDate()
void
setColumnCount(long columnCount)
void
setColumnCountUpToDate(boolean b)
void
setDescription(java.lang.String description)
void
setIcon(java.awt.image.BufferedImage image)
void
setIconUpToDate(boolean b)
void
setLabel(java.lang.Object label)
Sets the label of an objectvoid
setRowCount(long rowCount)
void
setRowCountUpToDate(boolean b)
void
setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
void
setValueAt(java.lang.Object aValue, long rowIndex, long columnIndex)
java.lang.String
toString()
void
updateUI()
-
Methods inherited from class org.ujmp.gui.AbstractMatrixGUIObject
addTableModelListener, addTableModelListener, getColumnClass, getColumnClass, getColumnCount, getColumnSelectionModel, getCoreObject, getFrame, getListenerList, getMatrix, getMouseOverCoordinates, getPanel, getRowCount, getRowSelectionModel, isCellEditable, isCellEditable, removeTableModelListener, removeTableModelListener, setMouseOverCoordinates
-
Methods inherited from class org.ujmp.gui.AbstractGUIObject
getModCount, getToolTipText, showGUI
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ujmp.core.interfaces.GUIObject
getModCount, showGUI
-
Methods inherited from interface org.ujmp.core.interfaces.HasToolTip
getToolTipText
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
dataCache
protected final java.util.Map<Coordinates,DataItem> dataCache
-
todo
protected final java.util.List<Coordinates> todo
-
rowCount
protected volatile long rowCount
-
columnCount
protected volatile long columnCount
-
iconUpToDate
protected volatile boolean iconUpToDate
-
rowCountUpToDate
protected volatile boolean rowCountUpToDate
-
columnCountUpToDate
protected volatile boolean columnCountUpToDate
-
icon
protected java.awt.Image icon
-
-
Constructor Detail
-
DefaultMatrixGUIObject
public DefaultMatrixGUIObject(Matrix matrix)
-
-
Method Detail
-
getRowCount64
public long getRowCount64()
-
getColumnCount64
public long getColumnCount64()
-
fireValueChanged
public void fireValueChanged(Coordinates coordinates, java.lang.Object value)
- Specified by:
fireValueChanged
in interfaceGUIObject
- Overrides:
fireValueChanged
in classAbstractGUIObject
-
fireValueChanged
public void fireValueChanged(Coordinates start, Coordinates end)
- Specified by:
fireValueChanged
in interfaceGUIObject
- Overrides:
fireValueChanged
in classAbstractGUIObject
-
fireValueChanged
public final void fireValueChanged()
Description copied from interface:GUIObject
Indicates that changed in the object have been made, that should be updated on the screen.- Specified by:
fireValueChanged
in interfaceGUIObject
- Overrides:
fireValueChanged
in classAbstractGUIObject
-
updateUI
public final void updateUI()
-
fireValueChanged
public final void fireValueChanged(long row, long column, java.lang.Object value)
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
-
getValueAt
public java.lang.Object getValueAt(long rowIndex, long columnIndex)
-
getColorAt
public java.awt.Color getColorAt(long rowIndex, long columnIndex)
-
clear
public final void clear()
-
getLabel
public final java.lang.String getLabel()
Description copied from interface:HasLabel
Returns the String label of an object.- Returns:
- the label
-
setLabel
public final void setLabel(java.lang.Object label)
Description copied from interface:HasLabel
Sets the label of an object- Parameters:
label
- the new label.
-
getLabelObject
public final java.lang.Object getLabelObject()
Description copied from interface:HasLabel
Returns the label of an object.- Returns:
- the label
-
getColumnName
public final java.lang.String getColumnName(long columnIndex)
-
getColumnName
public final java.lang.String getColumnName(int columnIndex)
-
setValueAt
public final void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
-
setValueAt
public final void setValueAt(java.lang.Object aValue, long rowIndex, long columnIndex)
-
getIcon
public java.awt.Image getIcon()
- Specified by:
getIcon
in interfaceGUIObject
- Overrides:
getIcon
in classAbstractMatrixGUIObject
-
getDescription
public final java.lang.String getDescription()
-
setDescription
public final void setDescription(java.lang.String description)
-
toString
public final java.lang.String toString()
- Specified by:
toString
in classAbstractGUIObject
-
isIconUpToDate
public boolean isIconUpToDate()
-
setIconUpToDate
public void setIconUpToDate(boolean b)
-
setIcon
public void setIcon(java.awt.image.BufferedImage image)
-
isColumnCountUpToDate
public boolean isColumnCountUpToDate()
-
setColumnCount
public void setColumnCount(long columnCount)
-
setColumnCountUpToDate
public void setColumnCountUpToDate(boolean b)
-
isRowCountUpToDate
public boolean isRowCountUpToDate()
-
setRowCount
public void setRowCount(long rowCount)
-
setRowCountUpToDate
public void setRowCountUpToDate(boolean b)
-
getTodo
public java.util.List<Coordinates> getTodo()
-
getDataCache
public java.util.Map<Coordinates,DataItem> getDataCache()
-
-