|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.query.Column
public final class Column
Describes a column of a IStructuredResult
.
Nested Class Summary | |
---|---|
static class |
Column.Alignment
Alignment of the column, i.e. |
static class |
Column.SortDirection
Sort direction of the column. |
Constructor Summary | |
---|---|
Column(java.lang.String label)
Build a column with the given label. |
|
Column(java.lang.String label,
java.lang.Class<?> type)
Build a column with the given label. |
|
Column(java.lang.String label,
java.lang.Class<?> type,
Column.Alignment align,
Column.SortDirection direction,
java.text.Format formatter,
java.util.Comparator<?> comparator)
|
Method Summary | |
---|---|
Column |
aligning(Column.Alignment align)
Alignment of the column. |
Column |
comparing(java.util.Comparator<?> comparator)
Comparator to sort the column. |
Column |
decorator(IDecorator decorator)
|
boolean |
equals(java.lang.Object obj)
|
Column |
formatting(java.text.Format formatter)
Formatter to format the column values. |
Column.Alignment |
getAlign()
|
boolean |
getCalculateTotals()
|
java.util.Comparator<?> |
getComparator()
|
java.lang.Object |
getData(java.lang.Object key)
|
IDecorator |
getDecorator()
|
java.text.Format |
getFormatter()
|
java.lang.String |
getLabel()
|
Column.SortDirection |
getSortDirection()
|
java.lang.Class<?> |
getType()
|
int |
hashCode()
|
boolean |
isNumeric()
Returns true if the columns represents a numeric type, i.e. |
Column |
noTotals()
Indicates that no totals are to be calculated for the column even if the column contains numbers. |
java.lang.Object |
setData(java.lang.Object key,
java.lang.Object value)
|
Column |
sorting(Column.SortDirection direction)
Initial sort direction of the column. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Column(java.lang.String label)
label
- the top of the columnpublic Column(java.lang.String label, java.lang.Class<?> type)
label
- the top of the columntype
- a type of the column, such as float, int, Doublepublic Column(java.lang.String label, java.lang.Class<?> type, Column.Alignment align, Column.SortDirection direction, java.text.Format formatter, java.util.Comparator<?> comparator)
Method Detail |
---|
public Column formatting(java.text.Format formatter)
public Column aligning(Column.Alignment align)
public Column comparing(java.util.Comparator<?> comparator)
public Column sorting(Column.SortDirection direction)
public Column noTotals()
public Column decorator(IDecorator decorator)
public java.lang.Class<?> getType()
public Column.Alignment getAlign()
public Column.SortDirection getSortDirection()
public java.lang.String getLabel()
public java.util.Comparator<?> getComparator()
public java.text.Format getFormatter()
public boolean getCalculateTotals()
public IDecorator getDecorator()
public boolean isNumeric()
public java.lang.Object setData(java.lang.Object key, java.lang.Object value)
public java.lang.Object getData(java.lang.Object key)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |