Package quadbase.util
Interface IHistogramInfo
public interface IHistogramInfo
This interface is used to set/get different properties associated with a histogram.
Users can obtain a handle to this by calling the gethHistogramInfo() function in QbChart
-
Method Summary
Modifier and TypeMethodDescriptionGet the lower bound for the histogram.getScale()Get the scale value used to do the rounding operation in the histogram.Get the upper bound for the histogram.booleanThis function is used to find out if the current chart is a histogram or not.booleanThis function is used to determine if a linear scale has been plotted in the histogram.booleanAre the values rounded off prior to plotting in the histogram.voidsetHistogram(boolean histState) This function is used to set/unset the histogram option in a chart.voidsetLinearScale(boolean isLinear) State whether or not to use a linear scale in the histogram.voidsetLowerBound(Object lowerBound) Set the lower bound for the histogram.voidsetRounded(boolean isRounded) State whether or not to round values before plotting the histogram.voidSet the scale value to use in the rounding operation.voidsetUpperBound(Object upperBound) Set the upper bound for the histogram.
-
Method Details
-
isHistogram
boolean isHistogram()This function is used to find out if the current chart is a histogram or not.- Returns:
- True if the chart is a histogram, false otherwise.
-
setHistogram
void setHistogram(boolean histState) This function is used to set/unset the histogram option in a chart.- Parameters:
histState- Set it to true if a histogram plot is required.
-
isLinearScale
boolean isLinearScale()This function is used to determine if a linear scale has been plotted in the histogram.- Returns:
- True if a linear scale is being used, false otherwise.
-
setLinearScale
void setLinearScale(boolean isLinear) State whether or not to use a linear scale in the histogram. Linear scale can be set to true only if rounding is enabled- Parameters:
isLinear- Set it to true if a linear scale is desired.- See Also:
-
getLowerBound
Object getLowerBound()Get the lower bound for the histogram. The data type returned matches the datatype of the category column.- Returns:
- The lower bound of the values plotted for the histogram.
The object returned can have the following type:
Integer, Short, Long, Float, Double, String
-
setLowerBound
Set the lower bound for the histogram. This can also be set to null.- Parameters:
lowerBound- The lower bound desired in the plot.- See Also:
-
getUpperBound
Object getUpperBound()Get the upper bound for the histogram.- Returns:
- The upper bound of the values plotted for the histogram.
- See Also:
-
setUpperBound
Set the upper bound for the histogram. This can also be set to null.- Parameters:
upperBound- The upper bound desired in the plot.- See Also:
-
isRounded
boolean isRounded()Are the values rounded off prior to plotting in the histogram.- Returns:
- True if the values are rounded off, false otherwise.
-
setRounded
void setRounded(boolean isRounded) State whether or not to round values before plotting the histogram.- Parameters:
isRounded- Set to true if rounding is desired, false otherwise.
-
getScale
Number getScale()Get the scale value used to do the rounding operation in the histogram.- Returns:
- The scale value used to do the rounding.
-
setScale
Set the scale value to use in the rounding operation.- Parameters:
value- The number to use while rounding off values in the histogram.- See Also:
-