Package quadbase.util
Interface ILabel
This interface is used to set/get different properties associated with the labels drawn in a
chart.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThis function returns a handle to an object of type IFormat.This function returns the horizontal and vertical label offset.booleanThis function checks if the given label(s) is/are visible or not.voidThis function sets the format object for the label being displayed.voidThis function sets the horizontal and vertical label offsets.voidsetVisible(boolean b) This function enables/disables the drawing of label(s).
-
Method Details
-
isVisible
boolean isVisible()This function checks if the given label(s) is/are visible or not.- Returns:
- true if the labels are visible, false otherwise
-
setVisible
void setVisible(boolean b) This function enables/disables the drawing of label(s).- Parameters:
b- true if labels are to be displayed, false otherwise.
-
getOffset
Dimension getOffset()This function returns the horizontal and vertical label offset.- Returns:
- The horizontal and vertical offsets in a Dimension object.
-
setOffset
This function sets the horizontal and vertical label offsets.- Parameters:
offset- The horizontal and vertical offsets stored in a Dimension object.
-
getFormat
IFormat getFormat()This function returns a handle to an object of type IFormat.Associated QbChart property:
DATA_LABEL_FORMAT- Returns:
- A handle to an object of type IFormat
- See Also:
-
setFormat
This function sets the format object for the label being displayed.Associated QbChart property:
DATA_LABEL_FORMAT- Parameters:
f- The format for the label being displayed.
-