| Modifier and Type | Field and Description |
|---|---|
| private int | hostH
Host window absolute bounds. |
| private int | hostW
Host window absolute bounds. |
| private int | hostX
Host window absolute bounds. |
| private int | hostY
Host window absolute bounds. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | addNotify()
Overrides java. Makes this Frame displayable by connecting it to a native screen resource. |
| public abstract <T extends DragGestureRecognizer> T | createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
Create a drag gesture recognizer for the lightweight frame. |
| public abstract DragSourceContextPeer | createDragSourceContextPeer(DragGestureEvent dge)
Create a drag source context peer for the lightweight frame. |
| public void | emulateActivation(boolean
if activate)true, activates the frame;
otherwise, deactivates the frameRequests the peer to emulate activation or deactivation of the frame. |
| public Graphics | getGraphics()
Overrides java. Creates a graphics context for this component. |
| public Rectangle | Returns: the host window boundsReturns the absolute bounds of the host (embedding) window. |
| public final Container | Returns: nullOverrides java. Blocks introspection of a parent window by this child. |
| public abstract int | Returns: the scale factor
Deprecated
since 9. replaced by
getScaleFactorX() and
getScaleFactorY
Returns the scale factor of this frame. |
| public abstract double | Returns: the x coordinate scale factorReturns the scale factor of this frame along x coordinate. |
| public abstract double | Returns: the y coordinate scale factorReturns the scale factor of this frame along y coordinate. |
| public abstract void | |
| public final boolean | isResizable()
Overrides java. Indicates whether this frame is resizable by the user. |
| public abstract void | notifyDisplayChanged(int
the scale factor scaleFactor)
Deprecated
since 9. replaced by
notifyDisplayChanged(double, double)
Called when display of the hosted frame is changed. |
| public abstract void | notifyDisplayChanged(double
the scale factor scaleFactorX, double the scale factor scaleFactorY)Called when display of the hosted frame is changed. |
| public final void | remove(MenuComponent m)
Overrides java. Implements java. Removes the specified menu bar from this frame. |
| public abstract void | |
| public void | |
| public final void | setIconImage(Image image)
Overrides java. Sets the image to be displayed as the icon for this window. |
| public final void | setIconImages(List<? extends Image> icons)
Overrides java. Sets the sequence of images to be displayed as the icon for this window. |
| public final void | setMenuBar(MenuBar mb)
Overrides java. Sets the menu bar for this frame to the specified menu bar. |
| private void | |
| public final void | setResizable(boolean resizable)
Overrides java. Sets whether this frame is resizable by the user. |
| public final void | setTitle(String title)
Overrides java. Sets the title for this frame to the specified string. |
| public final void | toBack()
Overrides java. If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window. |
| public final void | toFront()
Overrides java. If this Window is visible, brings this Window to the front and may make it the focused Window. |
| public abstract void |
| hostH | back to summary |
|---|---|
| private int hostH Host window absolute bounds. | |
| hostW | back to summary |
|---|---|
| private int hostW Host window absolute bounds. | |
| hostX | back to summary |
|---|---|
| private int hostX Host window absolute bounds. | |
| hostY | back to summary |
|---|---|
| private int hostY Host window absolute bounds. | |
| LightweightFrame | back to summary |
|---|---|
| public LightweightFrame() Constructs a new, initially invisible | |
| addDropTarget | back to summary |
|---|---|
| public abstract void addDropTarget(DropTarget dt) Adds a drop target to the lightweight frame. | |
| addNotify | back to summary |
|---|---|
| public void addNotify() Overrides java. Doc from java. Makes this Frame displayable by connecting it to a native screen resource. Making a frame displayable will cause any of its children to be made displayable. This method is called internally by the toolkit and should not be called directly by programs.
| |
| createDragGestureRecognizer | back to summary |
|---|---|
| public abstract <T extends DragGestureRecognizer> T createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl) Create a drag gesture recognizer for the lightweight frame. | |
| createDragSourceContextPeer | back to summary |
|---|---|
| public abstract DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException Create a drag source context peer for the lightweight frame. | |
| emulateActivation | back to summary |
|---|---|
| public void emulateActivation(boolean activate) Requests the peer to emulate activation or deactivation of the frame. Peers should override this method if they are to implement this functionality.
| |
| getGraphics | back to summary |
|---|---|
| public Graphics getGraphics() Overrides java. Doc from java. Creates a graphics context for this component. This method will
return
| |
| getHostBounds | back to summary |
|---|---|
| public Rectangle getHostBounds() Returns the absolute bounds of the host (embedding) window.
| |
| getParent | back to summary |
|---|---|
| public final Container getParent() Overrides java. Blocks introspection of a parent window by this child. | |
| getScaleFactor | back to summary |
|---|---|
| public abstract int getScaleFactor()
Returns the scale factor of this frame. The default value is 1.
| |
| getScaleFactorX | back to summary |
|---|---|
| public abstract double getScaleFactorX() Returns the scale factor of this frame along x coordinate. The default value is 1.
| |
| getScaleFactorY | back to summary |
|---|---|
| public abstract double getScaleFactorY() Returns the scale factor of this frame along y coordinate. The default value is 1.
| |
| grabFocus | back to summary |
|---|---|
| public abstract void grabFocus() Delegates the focus grab action to the client (embedding) application. The method is called by the AWT grab machinery.
| |
| isResizable | back to summary |
|---|---|
| public final boolean isResizable() Overrides java. Doc from java. Indicates whether this frame is resizable by the user. By default, all frames are initially resizable.
| |
| notifyDisplayChanged | back to summary |
|---|---|
| public abstract void notifyDisplayChanged(int scaleFactor)
Called when display of the hosted frame is changed.
| |
| notifyDisplayChanged | back to summary |
|---|---|
| public abstract void notifyDisplayChanged(double scaleFactorX, double scaleFactorY) Called when display of the hosted frame is changed.
| |
| remove | back to summary |
|---|---|
| public final void remove(MenuComponent m) Overrides java. Implements java. Doc from java. Removes the specified menu bar from this frame.
| |
| removeDropTarget | back to summary |
|---|---|
| public abstract void removeDropTarget(DropTarget dt) Removes a drop target from the lightweight frame. | |
| setHostBounds | back to summary |
|---|---|
| public void setHostBounds(int x, int y, int w, int h) Sets the absolute bounds of the host (embedding) window. | |
| setIconImage | back to summary |
|---|---|
| public final void setIconImage(Image image) Overrides java. Doc from java. Sets the image to be displayed as the icon for this window.
This method can be used instead of The following statement:
setIconImage(image);
is equivalent to:
ArrayList<Image> imageList = new ArrayList<Image>();
imageList.add(image);
setIconImages(imageList);
Note : Native windowing systems may use different images of differing dimensions to represent a window, depending on the context (e.g. window decoration, window list, taskbar, etc.). They could also use just a single image for all contexts or no image at all.
| |
| setIconImages | back to summary |
|---|---|
| public final void setIconImages(List<? extends Image> icons) Overrides java. Doc from java. Sets the sequence of images to be displayed as the icon
for this window. Subsequent calls to Depending on the platform capabilities one or several images of different dimensions will be used as the window's icon.
The
Ownerless windows with no icon specified use platform-default icon.
The icon of an owned window may be inherited from the owner
unless explicitly overridden.
Setting the icon to Note : Native windowing systems may use different images of differing dimensions to represent a window, depending on the context (e.g. window decoration, window list, taskbar, etc.). They could also use just a single image for all contexts or no image at all.
| |
| setMenuBar | back to summary |
|---|---|
| public final void setMenuBar(MenuBar mb) Overrides java. Doc from java. Sets the menu bar for this frame to the specified menu bar.
| |
| setPeer | back to summary |
|---|---|
| private void setPeer(final FramePeer p) | |
| setResizable | back to summary |
|---|---|
| public final void setResizable(boolean resizable) Overrides java. Doc from java. Sets whether this frame is resizable by the user.
| |
| setTitle | back to summary |
|---|---|
| public final void setTitle(String title) Overrides java. Doc from java. Sets the title for this frame to the specified string.
| |
| toBack | back to summary |
|---|---|
| public final void toBack() Overrides java. Doc from java. If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window. Places this Window at the bottom of the stacking order and shows it behind any other Windows in this VM. No action will take place is this Window is not visible. Some platforms do not allow Windows which are owned by other Windows to appear below their owners. Every attempt will be made to move this Window as low as possible in the stacking order; however, developers should not assume that this method will move this Window below all other windows in every situation. Because of variations in native windowing systems, no guarantees about changes to the focused and active Windows can be made. Developers must never assume that this Window is no longer the focused or active Window until this Window receives a WINDOW_LOST_FOCUS or WINDOW_DEACTIVATED event. On platforms where the top-most window is the focused window, this method will probably cause this Window to lose focus. In that case, the next highest, focusable Window in this VM will receive focus. On platforms where the stacking order does not typically affect the focused window, this method will probably leave the focused and active Windows unchanged.
| |
| toFront | back to summary |
|---|---|
| public final void toFront() Overrides java. Doc from java. If this Window is visible, brings this Window to the front and may make it the focused Window. Places this Window at the top of the stacking order and shows it in front of any other Windows in this VM. No action will take place if this Window is not visible. Some platforms do not allow Windows which own other Windows to appear on top of those owned Windows. Some platforms may not permit this VM to place its Windows above windows of native applications, or Windows of other VMs. This permission may depend on whether a Window in this VM is already focused. Every attempt will be made to move this Window as high as possible in the stacking order; however, developers should not assume that this method will move this Window above all other windows in every situation. Developers must never assume that this Window is the focused or active Window until this Window receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED event. On platforms where the top-most window is the focused window, this method will probably focus this Window (if it is not already focused) under the following conditions:
If this method causes this Window to be focused, and this Window is a Frame or a Dialog, it will also become activated. If this Window is focused, but it is not a Frame or a Dialog, then the first Frame or Dialog that is an owner of this Window will be activated. If this window is blocked by modal dialog, then the blocking dialog is brought to the front and remains above the blocked window.
| |
| ungrabFocus | back to summary |
|---|---|
| public abstract void ungrabFocus() Delegates the focus ungrab action to the client (embedding) application. The method is called by the AWT grab machinery.
| |