Package rma.swing.table
Class ParameterStringCellRenderer
java.lang.Object
rma.swing.table.RmaCellRenderer
rma.swing.table.ParameterStringCellRenderer
- All Implemented Interfaces:
Serializable
,TableCellRenderer
,UnitsCellRenderer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class rma.swing.table.RmaCellRenderer
RmaCellRenderer.ValueProperty
-
Field Summary
Fields inherited from class rma.swing.table.RmaCellRenderer
_columnScalingList, _defaultFont, _focusedCellBorder, _formater, _ignoreParameterRounding, _missingString, _numberFont, _paramIdForScaling, _scaleFactor, _showComma, _unitSystem, backgroundColor, component, DEBUG, foregroundColor, selectedBackgroundColor, selectedForegroundColor, selectionColor, value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTableCellRendererComponent
(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Renders a unit system in a ParameterString Object by telling the object which unit system to render in.void
setDisplayUnitsSystem
(int unitSystem) Sets the DisplayUnitsSystem attribute of the ParameterStringCellRenderer objectMethods inherited from class rma.swing.table.RmaCellRenderer
getAlternateRowBackground, getBackgroundColor, getComponent, getForegroundColor, getHorizontalAlignment, getSelectedBackgroundColor, getSelectedForegroundColor, ignoreParameterRounding, renderCellComponent, renderSelectedCellComponent, setAlternateRowBackground, setBackgroundColor, setDisplayScaleFactor, setDisplayScaleFactor, setForegroundColor, setHorizontalAlignment, setIcon, setIgnoreParameterRounding, setMissingString, setSelectedBackgroundColor, setSelectedForegroundColor, setShowCommas, setToolTipText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface rma.swing.table.UnitsCellRenderer
setDisplayScaleFactor
-
Constructor Details
-
ParameterStringCellRenderer
public ParameterStringCellRenderer()
-
-
Method Details
-
setDisplayUnitsSystem
public void setDisplayUnitsSystem(int unitSystem) Sets the DisplayUnitsSystem attribute of the ParameterStringCellRenderer object- Specified by:
setDisplayUnitsSystem
in interfaceUnitsCellRenderer
- Overrides:
setDisplayUnitsSystem
in classRmaCellRenderer
- Parameters:
unitSystem
- The new DisplayUnitsSystem value
-
getTableCellRendererComponent
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Renders a unit system in a ParameterString Object by telling the object which unit system to render in.- Specified by:
getTableCellRendererComponent
in interfaceTableCellRenderer
- Overrides:
getTableCellRendererComponent
in classRmaCellRenderer
- Parameters:
table
- The Table requesting the componentvalue
- The data value to be renderedisSelected
- boolean marking if the cell is selectedhasFocus
- boolean marking if the cell has Focusrow
- the row number of the cellcolumn
- the column number of the cell- Returns:
- The component that represents the rendered value of the object value.
-