Package quadbase.util
Interface IDrillDown
public interface IDrillDown
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDrillDown(int cType, int categoryIndex, int seriesIndex, int sumbyIndex, boolean isDrill2D) Adds a new drill-down definition to the end of the drill down list.intCounts number of drill down levels If non drill-down chart return -1intReturns the primary aggregate operator used for drill-down.Returns the base drill-namevoidinsertDrillDownAt(int number, int cType, int categoryIndex, int seriesIndex, int sumbyIndex, boolean isDrill2D) Inserts a new drill-down definition to the chartbooleanThis function is used to check if the dynamic drill down function is enabled or notbooleanThis function is used to check if the pre-set drill down function is enabled or notvoidremoveDrillDown(int number) Removes a drill-down from the chart.voidResets the chart and remove all the drill down levelsvoidsetAggregateOperator(int aggOp) Sets the primary aggregate operator to use when displaying summary charts.voidsetDrillName(String drillBaseName) Sets the base name for defining drill-down charts.voidsetDynamicDrillDown(boolean b) Enables dynamic drill down function for chart viewervoidsetSecondaryAggregateOperator(int aggOp) Sets the secondary AggregateOperator to use when displaying summary charts.
-
Field Details
-
MIN
static final int MIN- See Also:
-
MAX
static final int MAX- See Also:
-
AVG
static final int AVG- See Also:
-
SUM
static final int SUM- See Also:
-
COUNT
static final int COUNT- See Also:
-
FIRST
static final int FIRST- See Also:
-
LAST
static final int LAST- See Also:
-
SUMSQUARE
static final int SUMSQUARE- See Also:
-
VARIANCE
static final int VARIANCE- See Also:
-
STDDEV
static final int STDDEV- See Also:
-
COUNTDISTINCT
static final int COUNTDISTINCT- See Also:
-
MAX_OPS
static final int MAX_OPS- See Also:
-
-
Method Details
-
setDrillName
Sets the base name for defining drill-down charts.- Parameters:
drillBaseName- The base drill name to use.
-
getDrillName
String getDrillName()Returns the base drill-name- Returns:
- The base drill-down name.
-
resetDrillDown
Resets the chart and remove all the drill down levels -
countDrillDownLevel
int countDrillDownLevel()Counts number of drill down levels If non drill-down chart return -1 -
isPreSetDrillDown
boolean isPreSetDrillDown()This function is used to check if the pre-set drill down function is enabled or not- Returns:
- True if pre-set drill down is enabled, False otherwise
-
setDynamicDrillDown
Enables dynamic drill down function for chart viewer- Parameters:
b- True if dynamic drill down function needs to be enabled, False otherwise- Throws:
IOExceptionSQLExceptionClassNotFoundException
-
isDynamicDrillDown
boolean isDynamicDrillDown()This function is used to check if the dynamic drill down function is enabled or not- Returns:
- True if dynamic drill down is enabled, False otherwise
-
setAggregateOperator
void setAggregateOperator(int aggOp) Sets the primary aggregate operator to use when displaying summary charts.- Parameters:
aggOp- The input primary aggregate operator, one of:IDrillDown.SUM IDrillDown.AVG IDrillDown.MIN IDrillDown.MAX IDrillDown.COUNT
-
getAggregateOperator
int getAggregateOperator()Returns the primary aggregate operator used for drill-down.- Returns:
- The primary aggregate operator used in drill-down.
-
setSecondaryAggregateOperator
void setSecondaryAggregateOperator(int aggOp) Sets the secondary AggregateOperator to use when displaying summary charts.- Parameters:
aggOp- The input secondary aggregate operator.- See Also:
-
addDrillDown
void addDrillDown(int cType, int categoryIndex, int seriesIndex, int sumbyIndex, boolean isDrill2D) throws IOException, SQLException, ClassNotFoundException Adds a new drill-down definition to the end of the drill down list.- Parameters:
cType- The chartType to use for the new drill-down.categoryIndex- The category index for the drill-down chart. This should be >= 0seriesIndex- The series index for the new drill-down chart. This can be set to -1 if no series is desired.sumbyIndex- The sumBy column index for the drill-down chart. This can be set to -1 if no sumBy column is desired.isDrill2D- The dimension for the drill-down chart. This can be set to true if drill-down chart is 2D else it can be set to false if drill-down chart is 3D- Throws:
IOExceptionSQLExceptionClassNotFoundException
-
insertDrillDownAt
void insertDrillDownAt(int number, int cType, int categoryIndex, int seriesIndex, int sumbyIndex, boolean isDrill2D) throws IOException, SQLException, ClassNotFoundException Inserts a new drill-down definition to the chart- Parameters:
number- Insert a new chart after that drill-down level number- Throws:
IOExceptionSQLExceptionClassNotFoundException
-
removeDrillDown
Removes a drill-down from the chart.- Parameters:
number- The drill-down number to remove (in the order entered).- Throws:
IOExceptionSQLExceptionClassNotFoundException
-