|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.charts.heatmap.NFHeatmapGridBlockSort
public class NFHeatmapGridBlockSort
The NFHeatmapGridBlockSort class defines the grid sort criteria. The sort type specifies which data in the grid to sort (cell labels, cell values or none). The sort order specifies ascending or descending sort order. The grid data (cell values, cell labels and active labels) must be re-sent if going from a sorted list back to a non-sorted list.
Field Summary | |
---|---|
static int |
ASCENDING
Ascending sort |
static int |
DEFAULT_SORT_ORDER
Default value for the sort order if not set. |
static int |
DEFAULT_SORT_TYPE
Default value for the sort type if not set. |
static int |
DESCENDING
Descending sort |
static int |
LABEL
Sort by label |
static int |
NONE
No sorting |
static java.util.Hashtable |
sortOrderMap
Sort order hashtable |
static java.util.Hashtable |
sortTypeMap
Sort type hashtable |
static int |
VALUE
Sort by value |
Constructor Summary | |
---|---|
NFHeatmapGridBlockSort()
Constructs a grid block sort object with default values. |
|
NFHeatmapGridBlockSort(int sortType,
int sortOrder)
Constructs a grid block sort object from the specified sort type and sort order. |
Method Summary | |
---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing the grid sort criteria. |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing the grid sort criteria to the given StringBuffer. |
int |
getSortOrder()
Returns the sort order (ASCENDING or DESCENDING) |
int |
getSortType()
Returns the sort type (LABEL, VALUE or NONE) |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
int |
setCDL(java.lang.String[] elements,
int offset)
Configures this object from a CDL parameter representation. |
void |
setSortOrder(int sortOrder)
Sets the sort order (ASCENDING or DESCENDING) |
void |
setSortType(int sortType)
Sets the sort type (LABEL, VALUE or NONE) |
java.lang.String |
toString()
Returns a String object representing the grid sort criteria.. |
Methods inherited from class netcharts.pro.common.NFBaseClass |
---|
clone, getModified, getUserObject, setModified, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LABEL
public static final int VALUE
public static final int NONE
public static final int DEFAULT_SORT_TYPE
public static final int ASCENDING
public static final int DESCENDING
public static final int DEFAULT_SORT_ORDER
public static java.util.Hashtable sortTypeMap
public static java.util.Hashtable sortOrderMap
Constructor Detail |
---|
public NFHeatmapGridBlockSort()
public NFHeatmapGridBlockSort(int sortType, int sortOrder)
Method Detail |
---|
public void setSortType(int sortType)
(LABEL, VALUE or NONE)
If the specified sort type is not valid then an IllegalArgumentException will be thrown.
sortType
- sort typepublic int getSortType()
(LABEL, VALUE or NONE)
DEFAULT_SORT_TYPE
if not set.public void setSortOrder(int sortOrder)
(ASCENDING or DESCENDING)
If the value passed is not a valid sort order an IllegalArgumentException will be thrown.
sortOrder
- sort orderpublic int getSortOrder()
(ASCENDING or DESCENDING)
DEFAULT_SORT_ORDER
if not set.public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
(sortType, sortOrder)
public void getCDL(java.lang.StringBuffer sb, boolean includeParens)
sb
- Target buffer to append the CDL parametersincludeParens
- If true, this will cause the parameters to be delimited
with parenthesis.public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class java.lang.Object
public void setCDL(java.lang.String cdl)
setCDL
in interface NFCDLGenerator
cdl
- CDL in the form: (sortType, sortOrder)
public int setCDL(java.lang.String[] elements, int offset)
elements
- Array of parameter elements. This array is expected to contain
consecutive elements containing sort type and sort order information.offset
- Offset into the elements array.
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |