|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ComponentColumn> mavis.gui.ComponentColumn
public enum ComponentColumn
Represents a column in the magnetic component table. Calculates the values of that column. The overriding methods of each column type are used by the MagneticComponentTableModel to get proper return values for the AbstractTableModel methods like getValueAt, etc.
Enum Constant Summary | |
---|---|
ANGLE
Showing the maximum angular deviation of the magnetic component. |
|
ANTIPOLE
Showing the antipole checkbox setting of the magnetic component. |
|
COUNT
Showing ordinal number of the magnetic component, starting from number 1. |
|
D
Showing the declination of the magnetic component. |
|
DJ
Showing the Median intensity of the magnetic component. |
|
EXCLUDED
Showing the excluded points in the range of the magnetic component. |
|
I
Showing the inclination of the magnetic component. |
|
PLAT
Showing the Ancient pole position (Latitude) of the magnetic component. |
|
PLON
Showing the Ancient pole position (Longitude) of the magnetic component. |
|
RANGE
Showing the intensity/temperature range of the magnetic component. |
|
STEPS
Showing the steps included in the magnetic component. |
Field Summary | |
---|---|
protected java.lang.String |
columnName
Name of the column. |
private static StyledWrapper |
defaultWrapper
Style for the default cell renderer |
private static StyledWrapper |
headerWrapper
Style for the cell header renderer |
protected java.text.NumberFormat |
numberFormat
The number format for the values in this column. |
protected java.lang.String |
toolTipText
The tooltip for the column. |
protected java.lang.String |
value
The value for the column. |
Method Summary | |
---|---|
static ComponentColumn[] |
getAllColumns()
Returns all the columns supported by the program. |
java.lang.Class<?> |
getColumnClass()
Returns the class of this column regardless of the row. |
java.lang.String |
getColumnName()
Returns the name of this column. |
java.text.NumberFormat |
getNumberFormat()
Returns the number format used for rendering the numbers in this column. |
java.lang.String |
getToolTipText(Project project)
Returns the tooltip text for this column. |
java.lang.Object |
getValue(int rowIndex,
Session session)
Returns the value for this column's specified row. |
boolean |
isCellEditable(int rowIndex)
Returns true if the cell can be edited. |
void |
setNumberFormat(java.text.NumberFormat numberFormat)
Sets the number format used for rendering the numbers in this column. |
void |
setValue(java.lang.Object value,
int rowIndex,
Session session)
|
static ComponentColumn |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ComponentColumn[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
StyledWrapper |
wrap(java.lang.Object value,
int rowIndex,
Session session)
Wraps the specified object to a styled renderer's wrapper according to the state of the measurement step. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ComponentColumn COUNT
public static final ComponentColumn STEPS
public static final ComponentColumn RANGE
public static final ComponentColumn D
public static final ComponentColumn I
public static final ComponentColumn ANGLE
public static final ComponentColumn DJ
public static final ComponentColumn PLON
public static final ComponentColumn PLAT
public static final ComponentColumn EXCLUDED
public static final ComponentColumn ANTIPOLE
Field Detail |
---|
private static final StyledWrapper defaultWrapper
private static final StyledWrapper headerWrapper
protected java.lang.String columnName
protected java.lang.String toolTipText
protected java.lang.String value
protected java.text.NumberFormat numberFormat
Method Detail |
---|
public static final ComponentColumn[] values()
for(ComponentColumn c : ComponentColumn.values()) System.out.println(c);
public static ComponentColumn valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static ComponentColumn[] getAllColumns()
public StyledWrapper wrap(java.lang.Object value, int rowIndex, Session session)
value
- the object to be wrapped.rowIndex
- the index of the row. Can be greater than the number of measurement steps.session
- the project whose value to get. Can be null.
public java.lang.Object getValue(int rowIndex, Session session)
rowIndex
- the index of the row. Can be greater than the number of measurement steps.session
- the project whose value to get. Can be null.
public void setValue(java.lang.Object value, int rowIndex, Session session)
public java.lang.String getColumnName()
public java.lang.String getToolTipText(Project project)
public java.lang.Class<?> getColumnClass()
public java.text.NumberFormat getNumberFormat()
public void setNumberFormat(java.text.NumberFormat numberFormat)
java.lang.NullPointerException
- if numberFormat is null.public boolean isCellEditable(int rowIndex)
rowIndex
- the row being queried
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |