All Packages Class Hierarchy This Package Previous Next Index
Class com.micronova.mnfc.IToolTipManager
java.lang.Object
|
+----com.micronova.mnfc.IToolTipManager
- public class IToolTipManager
- extends Object
- implements Target
IToolTipManager manages tooltips.
Typically an IToolTipManager is attached to an IApplication.
- Version:
- 1.01
- Author:
- Makoto Nagata, MicroNova
-
dismissDelay
- The delay before the current tooltip is dismissed if the mouse pointer does not move.
-
enabled
- Set to true if this IToolTipManager is enabled.
-
initialDelay
- The delay before which a tooltip will appear after the mouse enters a tooltip view.
-
isToolTipSource
- Set to true if the View under the mouse pointer is an instance of IToolTipSource (for dynamic tooltip).
-
maxRows
- Maximal number of text rows.
-
mouseEvent
- Current MouseEvent.
-
reshowDelay
- The delay within which a tooltip will be reshown at once if the mouse pointer exits and enters another tooltip view.
-
state
- Current state.
-
STATE_IDLE
- Idle state (the mouse is not in any tooltip view).
-
STATE_INITWAIT
- The Mouse has entered a tooltip view and waiting for initialDelay timer.
-
STATE_RESHOWWAIT
- The mouse has exited a tooltip view and waiting for reshowDelay timer.
-
STATE_TIPDISMISSED
- The tooltip is dismissed but the mouse is still inside the tooltip view.
-
STATE_TIPSHOWN
- The tooltip is shown and waiting for dismissDelay timer.
-
table
- Holds registered IToolTips.
-
timer
- Delay timer.
-
TIMER
- Delay timer command.
-
toolTip
- IToolTip to be displayed.
-
toolTipBackgroundColor
- Default TextView background color.
-
toolTipBorder
- Default tooltip border.
-
toolTipFont
- Default TextView font.
-
toolTipForegroundColor
- Default TextView foreground color.
-
toolTipView
- Default TextView that displays tooltip text.
-
toolTipWindow
- InternalWindow that displays tooltip.
-
toolTipWindowLayer
- InternalWindow layer for the tooltip window.
-
toolTipWindowWidth
- Default tooltip window width.
-
view
- Current View under mouse pointer.
-
xOffset
- X-offset from the mouse pointer for the tooltip window.
-
yOffset
- Y-offset from the mouse pointer for the tooltip window.
-
IToolTipManager()
-
Constructs an IToolTipManager.
-
createToolTipView()
-
Creates a View for tooltip.
-
createToolTipWindow(View)
-
Creates an InternalWindow for tooltip using the given toolTipView.
-
getDismissDelay()
-
Returns the current dismiss delay in microseconds.
-
getInitialDelay()
-
Returns current initial delay in microseconds.
-
getReshowDelay()
-
Returns the reshow delay in microseconds.
-
getToolTip(View)
-
Returns the IToolTip registered for the view.
-
getToolTipText(IToolTip, MouseEvent)
-
Returns dynamic tooltip text for an IToolTipSource.
-
hideToolTip()
-
Hides the tooltip window.
-
isEnabled()
-
Returns true if this tooltip manager is enabled.
-
mouseEntered(View, MouseEvent)
-
Called when the mouse enters a tooltip view.
-
mouseExited(View, MouseEvent)
-
Called when the mouse exists a tooltip view.
-
mouseMoved(View, MouseEvent)
-
Called when the mouse is moved within a tooltip view.
-
performCommand(String, Object)
-
Overridden to handle timer events.
-
prepareToolTip(IToolTip)
-
Prepares tooltip to be shown.
-
registerToolTip(IToolTip)
-
Registers an IToolTip.
-
registerToolTip(View, String)
-
Registers a tooltip 'toolTipText' for a 'view'.
-
setDismissDelay(int)
-
Sets the dismiss delay in microseconds.
-
setEnabled(boolean)
-
Enables/disables this tooltip manager.
-
setInitialDelay(int)
-
Sets the initial delay in microseconds.
-
setReshowDelay(int)
-
Sets the reshow delay in microseconds.
-
showToolTip(IToolTip)
-
Shows the tooltip window.
-
startTimer(int)
-
Starts the delay timer.
-
stopTimer()
-
Stops the delay timer if running.
-
timerUp()
-
Called when the delay timer expires.
-
toolTipEntered(View, MouseEvent)
-
Called when the mouse enters a tooltip area of a view.
-
toolTipExited(View, MouseEvent)
-
Called when the mouse exits the tooltip area of the view.
-
unregisterToolTip(IToolTip)
-
Unregisters an IToolTip.
-
unregisterToolTip(View)
-
Unregisters tooltip for a view.
-
unregisterToolTipForDescendents(View)
-
Unregisters tooltips for all descendents of the given view (including the view itself).
TIMER
public static final String TIMER
- Delay timer command.
STATE_IDLE
public static final int STATE_IDLE
- Idle state (the mouse is not in any tooltip view).
STATE_INITWAIT
public static final int STATE_INITWAIT
- The Mouse has entered a tooltip view and waiting for initialDelay timer.
STATE_TIPSHOWN
public static final int STATE_TIPSHOWN
- The tooltip is shown and waiting for dismissDelay timer.
STATE_TIPDISMISSED
public static final int STATE_TIPDISMISSED
- The tooltip is dismissed but the mouse is still inside the tooltip view.
STATE_RESHOWWAIT
public static final int STATE_RESHOWWAIT
- The mouse has exited a tooltip view and waiting for reshowDelay timer.
table
public Hashtable table
- Holds registered IToolTips.
initialDelay
public int initialDelay
- The delay before which a tooltip will appear after the mouse enters a tooltip view.
dismissDelay
public int dismissDelay
- The delay before the current tooltip is dismissed if the mouse pointer does not move.
reshowDelay
public int reshowDelay
- The delay within which a tooltip will be reshown at once if the mouse pointer exits and enters another tooltip view.
enabled
public boolean enabled
- Set to true if this IToolTipManager is enabled.
timer
public Timer timer
- Delay timer.
isToolTipSource
public boolean isToolTipSource
- Set to true if the View under the mouse pointer is an instance of IToolTipSource (for dynamic tooltip).
state
public int state
- Current state.
toolTipWindow
public InternalWindow toolTipWindow
- InternalWindow that displays tooltip.
toolTipWindowLayer
public int toolTipWindowLayer
- InternalWindow layer for the tooltip window.
toolTipView
public TextView toolTipView
- Default TextView that displays tooltip text.
toolTipBackgroundColor
public Color toolTipBackgroundColor
- Default TextView background color.
toolTipForegroundColor
public Color toolTipForegroundColor
- Default TextView foreground color.
toolTipFont
public Font toolTipFont
- Default TextView font.
toolTipBorder
public Border toolTipBorder
- Default tooltip border.
xOffset
public int xOffset
- X-offset from the mouse pointer for the tooltip window.
yOffset
public int yOffset
- Y-offset from the mouse pointer for the tooltip window.
toolTipWindowWidth
public int toolTipWindowWidth
- Default tooltip window width.
maxRows
public int maxRows
- Maximal number of text rows. If the tooltip text exceeds this number of rows with the given toolTipWindowWidth, the window is expanded horizontally.
mouseEvent
public MouseEvent mouseEvent
- Current MouseEvent.
view
public View view
- Current View under mouse pointer.
toolTip
public IToolTip toolTip
- IToolTip to be displayed.
IToolTipManager
public IToolTipManager()
- Constructs an IToolTipManager.
registerToolTip
public void registerToolTip(IToolTip toolTip)
- Registers an IToolTip.
unregisterToolTip
public void unregisterToolTip(IToolTip toolTip)
- Unregisters an IToolTip.
registerToolTip
public void registerToolTip(View view,
String toolTipText)
- Registers a tooltip 'toolTipText' for a 'view'.
unregisterToolTip
public void unregisterToolTip(View view)
- Unregisters tooltip for a view.
unregisterToolTipForDescendents
public void unregisterToolTipForDescendents(View view)
- Unregisters tooltips for all descendents of the given view (including the view itself).
getToolTip
public IToolTip getToolTip(View view)
- Returns the IToolTip registered for the view. Returns null if there is no tooltip registered.
createToolTipView
public View createToolTipView()
- Creates a View for tooltip. The default implementation
creates a TextView. This is called once on initialization.
createToolTipWindow
public InternalWindow createToolTipWindow(View toolTipView)
- Creates an InternalWindow for tooltip using the given toolTipView. This is called once on initialization. The tooltip window contains a ContainerView that holds toolTipView (created by createToolTipView()).
isEnabled
public boolean isEnabled()
- Returns true if this tooltip manager is enabled.
setEnabled
public void setEnabled(boolean flag)
- Enables/disables this tooltip manager.
setInitialDelay
public void setInitialDelay(int microSeconds)
- Sets the initial delay in microseconds. This is the
delay before which a tooltip will appear after the mouse
enters a tooltip view.
getInitialDelay
public int getInitialDelay()
- Returns current initial delay in microseconds.
setDismissDelay
public void setDismissDelay(int microSeconds)
- Sets the dismiss delay in microseconds. This is the time
a tooltip stays visible if the mouse does not move.
getDismissDelay
public int getDismissDelay()
- Returns the current dismiss delay in microseconds.
setReshowDelay
public void setReshowDelay(int microSeconds)
- Sets the reshow delay in microseconds. This is the time
within which a tooltip will be reshown immediately
when the mouse re-enters a tooltip view.
getReshowDelay
public int getReshowDelay()
- Returns the reshow delay in microseconds.
prepareToolTip
public void prepareToolTip(IToolTip toolTip)
- Prepares tooltip to be shown.
showToolTip
public void showToolTip(IToolTip toolTip)
- Shows the tooltip window.
hideToolTip
public void hideToolTip()
- Hides the tooltip window.
getToolTipText
public String getToolTipText(IToolTip toolTip,
MouseEvent event)
- Returns dynamic tooltip text for an IToolTipSource.
startTimer
public void startTimer(int delay)
- Starts the delay timer.
stopTimer
public void stopTimer()
- Stops the delay timer if running.
toolTipEntered
public void toolTipEntered(View view,
MouseEvent event)
- Called when the mouse enters a tooltip area of a view.
toolTipExited
public void toolTipExited(View view,
MouseEvent event)
- Called when the mouse exits the tooltip area of the view.
mouseEntered
public void mouseEntered(View view,
MouseEvent event)
- Called when the mouse enters a tooltip view.
mouseExited
public void mouseExited(View view,
MouseEvent event)
- Called when the mouse exists a tooltip view.
mouseMoved
public void mouseMoved(View view,
MouseEvent event)
- Called when the mouse is moved within a tooltip view.
timerUp
public void timerUp()
- Called when the delay timer expires.
performCommand
public void performCommand(String command,
Object object)
- Overridden to handle timer events.
All Packages Class Hierarchy This Package Previous Next Index