|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.crosstabs.fill.calculation.BucketDefinition
public class BucketDefinition
Bucket definition.
| Nested Class Summary | |
|---|---|
class |
BucketDefinition.Bucket
Bucket value class. |
| Field Summary | |
|---|---|
protected java.util.Comparator |
comparator
|
static byte |
ORDER_ASCENDING
Ascending order constant. |
static byte |
ORDER_DESCENDING
Descending order constant. |
static byte |
TOTAL_POSITION_END
Constants indicating that totals are to be positioned at the end of the other buckets. |
static byte |
TOTAL_POSITION_NONE
Constant indicating that total are not required for this bucket. |
static byte |
TOTAL_POSITION_START
Constants indicating that totals are to be positioned before the other buckets. |
protected BucketDefinition.Bucket |
VALUE_NULL
The null bucket. |
protected BucketDefinition.Bucket |
VALUE_TOTAL
The total value for this bucket. |
protected static byte |
VALUE_TYPE_NULL
Value type used for null bucket values. |
protected static byte |
VALUE_TYPE_TOTAL
Value type used for total buckets. |
protected static byte |
VALUE_TYPE_VALUE
Value type used for non-null values. |
| Constructor Summary | |
|---|---|
BucketDefinition(java.lang.Class valueClass,
java.util.Comparator comparator,
byte order,
byte totalPosition)
Creates a bucket. |
|
| Method Summary | |
|---|---|
boolean |
computeTotal()
Whether this bucket needs total calculation. |
BucketDefinition.Bucket |
create(java.lang.Object value)
Creates a BucketValue object for a given value. |
java.util.Comparator |
getComparator()
Returns the comparator used for bucket ordering. |
byte |
getTotalPosition()
Returns the total bucket position. |
void |
setComputeTotal()
Instructs that the bucket will need total bucket calculation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte ORDER_ASCENDING
public static final byte ORDER_DESCENDING
public static final byte TOTAL_POSITION_NONE
public static final byte TOTAL_POSITION_START
public static final byte TOTAL_POSITION_END
protected static final byte VALUE_TYPE_VALUE
protected static final byte VALUE_TYPE_NULL
protected static final byte VALUE_TYPE_TOTAL
protected final BucketDefinition.Bucket VALUE_TOTAL
protected final BucketDefinition.Bucket VALUE_NULL
protected final java.util.Comparator comparator
| Constructor Detail |
|---|
public BucketDefinition(java.lang.Class valueClass,
java.util.Comparator comparator,
byte order,
byte totalPosition)
throws JRException
valueClass - the class of the bucket valuescomparator - the comparator to use for bucket sortingorder - the order type, ORDER_ASCENDING or ORDER_DESCENDING descendingtotalPosition - the position of the total bucket
JRException| Method Detail |
|---|
public boolean computeTotal()
public void setComputeTotal()
computeTotal()public byte getTotalPosition()
public java.util.Comparator getComparator()
public BucketDefinition.Bucket create(java.lang.Object value)
BucketValue object for a given value.
value - the value
BucketValue object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||