Package quadbase.util
Interface IHint
public interface IHint
This interface is used to set/get properties associated with hints displayed for data points and
hyperlinks.
A handle to IHint for hyperlinks can be called by invoking gethHint() in IHyperLinkSet. A
handle to IHint for data points can be called by invoking gethHint()) in IDataPointSet.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the background color of the information box used to display hints for data points and hyperlinks.Returns the border color of the information box used to display hints for data points and hyperlinks.gethText()Gets a handle to the IText object used to set font properties for the hint string.Gets the relative offsets (horizontal and vertical) of the hintboxgetPickData(int x, int y) Returns PickData for corresponding coordinate (x, y)booleanReturns whether or not the display of hints is enabled.voidSets the background color for the hint information box.voidSets the border color for the hint information box.voidsetEnabled(boolean b) Enables/Disables the display of hints.voidsetHintBoxInfo(IHintBoxInfo hintBoxInfo) Sets the display text for hint boxvoidSets the relative offsets of the hintbox
-
Method Details
-
setEnabled
void setEnabled(boolean b) Enables/Disables the display of hints.Associated QbChart properties: SHOW_LINKHINT SHOW_DATAHINT- Parameters:
b- The boolean state for displaying hints.
-
isEnabled
boolean isEnabled()Returns whether or not the display of hints is enabled.- Returns:
- True if hint display is enabled, false otherwise.
-
getBackgroundColor
Color getBackgroundColor()Returns the background color of the information box used to display hints for data points and hyperlinks.- Returns:
- The background color for the hint information box.
-
setBackgroundColor
Sets the background color for the hint information box.- Parameters:
c- The background Color object.
-
getBorderColor
Color getBorderColor()Returns the border color of the information box used to display hints for data points and hyperlinks.- Returns:
- The border color for the hint information box.
-
setBorderColor
Sets the border color for the hint information box.- Parameters:
c- The border Color object.
-
getPickData
Returns PickData for corresponding coordinate (x, y)- Parameters:
x- horizontal position of a charty- vertical position of a chart- Returns:
- PickData which contains data point information.
- See Also:
-
getOffset
Dimension getOffset()Gets the relative offsets (horizontal and vertical) of the hintbox- Returns:
- the offset as a Dimension object.
-
setOffset
Sets the relative offsets of the hintbox- Parameters:
offset- The Dimension object containing the horizontal and vertical offsets, in pixel units.
-
setHintBoxInfo
Sets the display text for hint box- Parameters:
hintBoxInfo- display text info for hint box- See Also:
-
gethText
IText gethText()Gets a handle to the IText object used to set font properties for the hint string.- Returns:
- A handle to an object that implements IText
- See Also:
-