Package uk.ac.starlink.topcat
Class SortOrder
- java.lang.Object
-
- uk.ac.starlink.topcat.SortOrder
-
public class SortOrder extends java.lang.Object
Defines a sorting order for a table. An instance of this class defines the algorithm by which a sort is done, not rather than a given row sequence.Currently, the sort order is defined only by the column that the table is sorted on, but this may get extended one day. Note that the sense (up or down) of the sort is selected separately than by this object.
- Since:
- 23 Feb 2004
- Author:
- Mark Taylor (Starlink)
-
-
Constructor Summary
Constructors Constructor Description SortOrder(javax.swing.table.TableColumn tcol)
Constructs a new sort order based on a table column.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
javax.swing.table.TableColumn
getColumn()
Gives the column on which this table is based.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
NONE
public static final SortOrder NONE
SortOrder instance indicating the natural order of the data.
-
-
Method Detail
-
getColumn
public javax.swing.table.TableColumn getColumn()
Gives the column on which this table is based.- Returns:
- table column
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-