class org.aswing.JToolTip extends Container
Sub classes | ||||
JSharedToolTip |
|
Used to display a "Tip" for a Component. Typically components provide api
to automate the process of using ToolTip
s.
For example, any AsWing component can use the Component
toolTipText
method to specify the text
for a standard tooltip. A component that wants to create a custom
ToolTip
display can create an owner ToolTip
and apply it to a component by
JToolTip.setComponent
method.
@see JSharedToolTip
Author paling
Show Events | Hide Events
|
Class Fields
static var defaultRoot:DisplayObjectContainer
The default container to hold tool tips.
By default(if you have not set one), it is the AsWingManager.getRoot()
.
Instance Fields
var containerRoot:DisplayObjectContainer
The container to hold this tool tip.
By default(if you have not set one), it is the getDefaultToolTipContainerRoot()
.
The offsets of the tooltip related the described component. The offsets point: delta x is o.x, delta y is o.y
var offsetsRelatedToMouse:Bool
Whether the offsets
is related the mouse position, otherwise
it will be related the described component position.
The change will be taked effect at the next showing, current showing will no be changed.
Specifies the component that the tooltip describes. The component may be null and will have no effect.
function moveLocationRelatedTo(globalPos:IntPoint): Void
Moves tool tip to new location related to the specified pos(global).
function startWaitToPopup(): Void
Starts waits to popup, if mouse are not moved for a while, the tool tip will be popuped.