Class ShadowPopup
java.lang.Object
javax.swing.Popup
org.pushingpixels.substance.internal.contrib.jgoodies.looks.common.ShadowPopup
Does all the magic for getting popups with drop shadows.
It adds the drop shadow border to the Popup,
in
#show it snapshots the screen background as needed,
and in #hide it cleans up all changes made before.- See Also:
-
com.jgoodies.looks.common.ShadowPopupBordercom.jgoodies.looks.common.ShadowPopupFactory
-
Constructor Details
-
ShadowPopup
public ShadowPopup()
-
-
Method Details
-
canSnapshot
public static boolean canSnapshot() -
hide
public void hide()Hides and disposes of thePopup. Once aPopuphas been disposed you should no longer invoke methods on it. AdisposedPopupmay be reclaimed and later used based on thePopupFactory. As such, if you invoke methods on adisposedPopup, indeterminate behavior will result.In addition to the superclass behavior, we reset the stored horizontal and vertical drop shadows - if any.
-
show
public void show()Makes thePopupvisible. If the popup has a heavy-weight container, we try to snapshot the background. If thePopupis currently visible, it remains visible.
-