Package noaa.coastwatch.gui
Class TimedOpacityHelper
java.lang.Object
noaa.coastwatch.gui.TimedOpacityHelper
- All Implemented Interfaces:
OpacityHelper
- Since:
- 3.8.1
- Author:
- Peter Hollemans
-
Constructor Summary
ConstructorDescriptionTimedOpacityHelper
(Component component, float minimumAlpha, int maximumInactivity) Creates a new helper that updates the opacity of the specified container after a timeout period with no mouse movement. -
Method Summary
-
Constructor Details
-
TimedOpacityHelper
Creates a new helper that updates the opacity of the specified container after a timeout period with no mouse movement.- Parameters:
component
- the component to update. The component and its children must use the helper to paint using the new opacity value viasetupGraphics(java.awt.Graphics)
.minimumAlpha
- the minimum alpha value to use.maximumInactivity
- the maximum inactivity period in milliseconds.
-
-
Method Details
-
setOpacity
public void setOpacity(float alpha) - Specified by:
setOpacity
in interfaceOpacityHelper
-
getOpacity
public float getOpacity()- Specified by:
getOpacity
in interfaceOpacityHelper
-
setupGraphics
- Specified by:
setupGraphics
in interfaceOpacityHelper
-