org.springframework.richclient.util
Class OverlayHelper
java.lang.Object
org.springframework.richclient.util.OverlayHelper
- All Implemented Interfaces:
- SwingConstants
public class OverlayHelper
- extends Object
- implements SwingConstants
A helper class that attaches one component (the overlay) on top of another
component.
- Author:
- oliverh
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
overlay
protected final JComponent overlay
overlayClipper
protected final JComponent overlayClipper
overlayTarget
protected final JComponent overlayTarget
OverlayHelper
protected OverlayHelper(JComponent overlay,
JComponent overlayTarget,
int center,
int xOffset,
int yOffset)
attachOverlay
public static void attachOverlay(JComponent overlay,
JComponent overlayTarget,
int center,
int xOffset,
int yOffset)
- Attaches an overlay to the specified component.
- Parameters:
overlay
- the overlay componentoverlayTarget
- the component over which overlay
will be
attachedcenter
- position relative to overlayTarget
that overlay
should be centered. May be one of the
SwingConstants
compass positions or
SwingConstants.CENTER
.xOffset
- x offset from centeryOffset
- y offset from center- See Also:
SwingConstants
getOverlayCapableParent
protected Container getOverlayCapableParent(JComponent component)
getLayeredPane
protected JLayeredPane getLayeredPane(Container overlayCapableParent)
Copyright © 2004-2009 The Spring Framework. All Rights Reserved.