public class FrameOverlay extends OverlayWindow<FrameGuiImpl> implements FrameContainer
TopLevelWindow.IconDataType| Modifier and Type | Field and Description |
|---|---|
private double |
frameCfgCol
Same as frameLocation but the value comes from the frame config.
|
private double |
frameCfgRow
Same as frameLocation but the value comes from the frame config.
|
private Point |
frameLocation
Holds the original location of a frame in character units before it was contained
in the overlay.
|
private WidgetDimensionsListener |
ownerDimensionListener
An instance of the WidgetDimensionsListener interface.
|
private GUIWindowListener |
ownerWindowListener
The ownerWindowListener variable represents a listener that is notified when the visibility or state of
the owner window changes.
|
gd, windowPanelisteners, location, mousePtr, nativeInsets, physicalLocationZSCORE_ALWAYS_ON_TOP, ZSCORE_NORMAL, ZSCORE_TOP_ONLY| Modifier | Constructor and Description |
|---|---|
private |
FrameOverlay(FrameGuiImpl frame)
Constructs an overlay window for the supplied frame.
|
| Modifier and Type | Method and Description |
|---|---|
static FrameOverlay |
contain(FrameGuiImpl frame)
Contains the specified
FrameGuiImpl object as an overlay on the top-level window
of the supplied frame. |
void |
destroy()
Destroy this window.
|
void |
hide()
Hide window.
|
protected boolean |
isCloseOnWindowDeactivated()
Determines whether the window should be closed when it is deactivated.
|
void |
onFrameDimensionChanged(Dimension dimension)
Called when the dimension of a frame changes.
|
void |
onFrameLocationChanged(Point location)
This method is called when the location of the frame is changed.
|
private void |
restoreFrameState()
Restores the state of the frame.
|
private void |
saveFrameState()
Saves the current state of the frame.
|
void |
show()
Show window.
|
protected void |
updateLocation()
This method updates the location of the overlay window.
|
coordinates, draw, findMouseSource, getBorder, getChild, getClientContentPane, getContentPane, getGuiMessageArea, getId, getMaxWorkspaceSize, getMessageArea, getMinSize, getPortableMouseEventCoordinates, getRelativeTo, getResizedSize, getScreenDimension, getStatusArea, getTitleBar, getWorkspaceNativeSize, getWorkspaceScreenLocation, getWorkspaceSize, getZOrderScore, hasDecorations, isRealized, isResizeWorkspace, isResizing, isShareActivationWithOwner, processEvent, realize, resizeTo, setDestroyingListener, setRelativeTo, setSize, setWorkspaceLocation, setWorkspaceNativeSizeaddFrame, ancestor, bounds, clipRectangle, close, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, getTopFrame, getTopVisibleFrame, getWindowDefaultIcon, isFocusable, isLastLeaveResult, isMaximized, isMinimized, loadWindowIcon, parentOrSelfHidden, physicalBounds, processFocusEvent, reflectLocationChanged, repaint, repaintDecorations, resetMousePointer, resolveTitleFont, screenLocation, screenPhysicalLocation, setLastLeaveResult, setOwner, setWindowDefaultIcon, setWindowIcon, setWindowIcon, windowdrawIntdestroyWidgets, focusTraversable, getZOrderClass, hasFocus, hasTitle, hasTitlebar, isDisplayed, isModal, processKeyEvent, setTitle, title, toStringadd, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, deregisterSelectedWidget, detach, dimension, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, reflectAncestorChange, registerSelectedWidget, remove, removeContainerStateListener, replace, requestFocus, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setPhysicalDimensionInt, setSize, setTabItemList, setWidth, startSizeChange, swap, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged, width_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestorId, autoResize, clear, clearWidget, clipRectangle, clipWith, config, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, hasFocus, hasTooltip, hidden, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isEnabled, isHeader, isMouseDrag, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, screen, screenDimension, screenHeight, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, translate, triggerLocationChanged, unregisterWidgetListener, updateSystemParent, widgetRealizedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getFocusCreatedByKeyboard, iconify, isDesktopMinimized, isMaximized, isMinimized, loadWindowIcon, maximize, resizeTo, resolveTitleFont, restore, setFocusCreatedByKeyboard, setLocation, setPhysicalLocation, setWindowIconacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, config, defaultMousePtr, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hasTooltip, height, hidden, highlighted, ignoreEnable, initialHeight, initialWidth, insets, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestSync, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setMousePointer, setParent, setSensitiveForUIB, setState, setVisible, setWindow, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetListener, validateDisplayValue, widgetStateChanged, width, windowmouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedwidgetsAsListprivate final WidgetDimensionsListener ownerDimensionListener
private final GUIWindowListener ownerWindowListener
private Point frameLocation
private double frameCfgRow
private double frameCfgCol
private FrameOverlay(FrameGuiImpl frame)
frame - The FrameGuiImpl object to be contained in the overlay window.public static FrameOverlay contain(FrameGuiImpl frame)
FrameGuiImpl object as an overlay on the top-level window
of the supplied frame.frame - the FrameGuiImpl object to be contained in the overlay windowFrameOverlay object that represents the overlay window containing the frame,
or null if the specified frame cannot be containedpublic void onFrameLocationChanged(Point location)
onFrameLocationChanged in interface FrameContainerlocation - The new location of the frame.public void onFrameDimensionChanged(Dimension dimension)
onFrameDimensionChanged in interface FrameContainerdimension - The new dimension of the frame.public void show()
show in interface Widget<GuiOutputManager>show in class OverlayWindow<FrameGuiImpl>public void hide()
hide in interface Widget<GuiOutputManager>hide in class OverlayWindow<FrameGuiImpl>public void destroy()
destroy in interface Widget<GuiOutputManager>destroy in class OverlayWindow<FrameGuiImpl>protected void updateLocation()
updateLocation in class OverlayWindow<FrameGuiImpl>protected boolean isCloseOnWindowDeactivated()
isCloseOnWindowDeactivated in class OverlayWindow<FrameGuiImpl>true if the window should be closed when deactivated, false otherwise.private void saveFrameState()
private void restoreFrameState()