Package quadbase.util
Interface IZoomInfo
public interface IZoomInfo
This interface is used to set/get different properties associated with doing time-series zooming.
Users can obtain a handle to this by calling the gethZoomInfo() function in QbChart.
Note that Zooming only works with time-series data. i.e. the data type of the category column
should be one of: Time, Date, or Timestamp.
-
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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intConstants for the Date/Time units -
Method Summary
Modifier and TypeMethodDescriptionintGet the aggregate operator used for aggregating points along the primary value axis.Returns the lower bound value (min value) plotted in the category axis.intGet the maximum allowable scale unit.intGet the maximum allowable scale valueintGet the minimum allowable scale unit.intGet the minimum allowable scale value.intReturns the unit of the scale value being used.intGet the scale value used while plotting the new dataintThis function gets the secondary aggregate operator.Returns the upper bound value (max value) plotted in the category axis.booleanReturns whether or not a linear scale is being used for the category axis.booleanCheck if the current chart contains a time-series zoom or not.voidsetAggregateOperator(int aggOp) This function sets the primary aggregate operatorvoidsetLinearScale(boolean isLinear) Enables/Disables drawing of a linear scale for the category axis.voidsetLowerBound(Date lowerBound) Sets the lower bound (min) value used in zooming.voidsetMaxScale(int value, int unit) Sets the maximum allowable scale unit and value used in zoom.voidsetMinScale(int value, int unit) Sets the minimum allowable scale unit and value used in zoom.voidsetScale(int value, int unit) Sets the unit and value of scaling to be performed.voidsetSecondaryAggregateOperator(int aggOp) This function sets the secondary aggregate operator.voidsetUpperBound(Date upperBound) Sets the upper bound (max) value used in zooming.voidsetZoomEnabled(boolean isZoomEnabled) Enable/Disable zooming along a time-series category axis.
-
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:
-
YEAR
static final int YEARConstants for the Date/Time units- See Also:
-
MONTH
static final int MONTH- See Also:
-
WEEK
static final int WEEK- See Also:
-
DAY
static final int DAY- See Also:
-
HOUR
static final int HOUR- See Also:
-
MINUTE
static final int MINUTE- See Also:
-
SECOND
static final int SECOND- See Also:
-
-
Method Details
-
isZoomEnabled
boolean isZoomEnabled()Check if the current chart contains a time-series zoom or not.- Returns:
- True if it is a zoom chart, false otherwise.
-
setZoomEnabled
void setZoomEnabled(boolean isZoomEnabled) Enable/Disable zooming along a time-series category axis.- Parameters:
isZoomEnabled- Set it to true if zooming is required, false otherwise.
-
getAggregateOperator
int getAggregateOperator()Get the aggregate operator used for aggregating points along the primary value axis. -
setAggregateOperator
void setAggregateOperator(int aggOp) This function sets the primary aggregate operator- Parameters:
aggOp- The aggregate operator used for displaying points along the primary value axis. Valid aggregate operators are MIN, MAX, AVG, SUM, and COUNT.- See Also:
-
getSecondaryAggregateOperator
int getSecondaryAggregateOperator()This function gets the secondary aggregate operator. Only valid if a secondary column exists in the chart.- Returns:
- The secondary aggregate operator.
- See Also:
-
setSecondaryAggregateOperator
void setSecondaryAggregateOperator(int aggOp) This function sets the secondary aggregate operator. Only valid if a secondary column exists in the chart- Parameters:
aggOp- The secondary aggregate Operator. Valid aggregate operators are MIN, MAX, AVG, SUM, and COUNT.- See Also:
-
isLinearScale
boolean isLinearScale()Returns whether or not a linear scale is being used for the category axis.- Returns:
- True if a linear scale has been plotted, false otherwise.
-
setLinearScale
void setLinearScale(boolean isLinear) Enables/Disables drawing of a linear scale for the category axis.- Parameters:
isLinear- Set it to true if a linear scale is desired, false otherwise.
-
getLowerBound
Date getLowerBound()Returns the lower bound value (min value) plotted in the category axis.- Returns:
- The lower bound value.
-
setLowerBound
Sets the lower bound (min) value used in zooming.- Parameters:
lowerBound- The lower bound used in zooming. The type of the lower bound parameter should be one of:java.sql.Date java.sql.Time java.sql.Timestamp
-
getUpperBound
Date getUpperBound()Returns the upper bound value (max value) plotted in the category axis.- Returns:
- The upper bound value.
- See Also:
-
setUpperBound
Sets the upper bound (max) value used in zooming.- Parameters:
upperBound- The upper bound value used in zooming.- See Also:
-
getScaleUnit
int getScaleUnit()Returns the unit of the scale value being used.- Returns:
- The scale unit being used. It can be one of:
IZoomInfo.YEAR IZoomInfo.MONTH IZoomInfo.WEEK IZoomInfo.DAY IZoomInfo.HOUR IZoomInfo.MINUTE IZoomInfo.SECOND
-
getScaleValue
int getScaleValue()Get the scale value used while plotting the new data- Returns:
- The scale value used in Zooming.
- See Also:
-
setScale
void setScale(int value, int unit) Sets the unit and value of scaling to be performed.- Parameters:
value- The scale value to use.unit- The scale unit to use.- See Also:
-
getMinScaleUnit
int getMinScaleUnit()Get the minimum allowable scale unit.- Returns:
- The minimum allowable scale unit.
- See Also:
-
getMinScaleValue
int getMinScaleValue()Get the minimum allowable scale value.- Returns:
- The minimum allowable scale value.
- See Also:
-
setMinScale
void setMinScale(int value, int unit) Sets the minimum allowable scale unit and value used in zoom.- Parameters:
value- The minimum allowable scale value.unit- The minimum allowable scale unit.- See Also:
-
getMaxScaleUnit
int getMaxScaleUnit()Get the maximum allowable scale unit.- Returns:
- The maximum allowable scale unit.
- See Also:
-
getMaxScaleValue
int getMaxScaleValue()Get the maximum allowable scale value- Returns:
- The maximum allowable scale value.
- See Also:
-
setMaxScale
void setMaxScale(int value, int unit) Sets the maximum allowable scale unit and value used in zoom.- Parameters:
value- The maximum allowable scale valueunit- The maximum allowable scale unit.- See Also:
-