LightweightContent interface. Note, that it may not be shown
as a standalone toplevel frame. Its purpose is to provide functionality
for lightweight embedding.
| Modifier and Type | Field and Description |
|---|---|
| private BufferedImage | |
| private Component | |
| private LightweightContent | |
| private JPanel | |
| private int[] | |
| private static boolean | copyBufferEnabled
|
| private PropertyChangeListener | |
| private SwingUtilities2. | |
| private final JRootPane | |
| private volatile double | |
| private volatile double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addDropTarget(DropTarget dt)
Implements abstract sun. Adds a drop target to the lightweight frame. |
| public void | addNotify()
Overrides sun. Makes this Frame displayable by connecting it to a native screen resource. |
| public <T extends DragGestureRecognizer> T | createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
Implements abstract sun. Create a drag gesture recognizer for the lightweight frame. |
| public DragSourceContextPeer | createDragSourceContextPeer(DragGestureEvent dge)
Implements abstract sun. Create a drag source context peer for the lightweight frame. |
| public void | dispose()
Overrides java. Releases all of the native screen resources used by this
|
| public Container | |
| public Component | |
| public Graphics | getGraphics()
Overrides sun. Creates a graphics context for this component. |
| public JLayeredPane | |
| public JRootPane | getRootPane()
Implements javax. Return this component's single JRootPane child. |
| public int | getScaleFactor()
Implements abstract sun. Returns the scale factor of this frame. |
| public double | getScaleFactorX()
Implements abstract sun. Returns the scale factor of this frame along x coordinate. |
| public double | getScaleFactorY()
Implements abstract sun. Returns the scale factor of this frame along y coordinate. |
| public void | grabFocus()
Implements abstract sun. Delegates the focus grab action to the client (embedding) application. |
| private void | |
| public void | notifyDisplayChanged(final int scaleFactor)
Implements abstract sun. Called when display of the hosted frame is changed. |
| public void | notifyDisplayChanged(final double scaleFactorX, final double scaleFactorY)
Implements abstract sun. Called when display of the hosted frame is changed. |
| private void | |
| public void | |
| public void | removeDropTarget(DropTarget dt)
Implements abstract sun. Removes a drop target from the lightweight frame. |
| public void | reshape(int x, int y, int width, int height)
Overrides java. Reshapes the bounding rectangle for this component. |
| private void | |
| public void | setContent(final LightweightContent
the content)LightweightContent instanceSets the |
| public void | setContentPane(Container contentPane)
Implements javax. The "contentPane" is the primary container for application specific components. |
| public void | setGlassPane(Component glassPane)
Implements javax. The glassPane is always the first child of the rootPane and the rootPanes layout manager ensures that it's always as big as the rootPane. |
| public void | setLayeredPane(JLayeredPane layeredPane)
Implements javax. A Container that manages the contentPane and in some cases a menu bar. |
| private void | |
| public void | ungrabFocus()
Implements abstract sun. Delegates the focus ungrab action to the client (embedding) application. |
| private void |
| bbImage | back to summary |
|---|---|
| private BufferedImage bbImage | |
| component | back to summary |
|---|---|
| private Component component Hides java. | |
| content | back to summary |
|---|---|
| private LightweightContent content | |
| contentPane | back to summary |
|---|---|
| private JPanel contentPane | |
| copyBuffer | back to summary |
|---|---|
| private int[] copyBuffer | |
| copyBufferEnabled | back to summary |
|---|---|
| private static boolean copyBufferEnabled
| |
| layoutSizeListener | back to summary |
|---|---|
| private PropertyChangeListener layoutSizeListener | |
| repaintListener | back to summary |
|---|---|
| private SwingUtilities2. | |
| rootPane | back to summary |
|---|---|
| private final JRootPane rootPane | |
| scaleFactorX | back to summary |
|---|---|
| private volatile double scaleFactorX | |
| scaleFactorY | back to summary |
|---|---|
| private volatile double scaleFactorY | |
| JLightweightFrame | back to summary |
|---|---|
| public JLightweightFrame() Constructs a new, initially invisible | |
| addDropTarget | back to summary |
|---|---|
| public void addDropTarget(DropTarget dt) Implements abstract sun. Doc from sun. Adds a drop target to the lightweight frame. | |
| addNotify | back to summary |
|---|---|
| public void addNotify() Overrides sun. 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 <T extends DragGestureRecognizer> T createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl) Implements abstract sun. Doc from sun. Create a drag gesture recognizer for the lightweight frame. | |
| createDragSourceContextPeer | back to summary |
|---|---|
| public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException Implements abstract sun. Doc from sun. Create a drag source context peer for the lightweight frame. | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides java. Doc from java. Releases all of the native screen resources used by this
The Note When the last displayable window within the Java virtual machine (VM) is disposed of, the VM may terminate. See AWT Threading Issues for more information.
| |
| getContentPane | back to summary |
|---|---|
| public Container getContentPane() Implements javax. Doc from javax. Returns the contentPane.
| |
| getGlassPane | back to summary |
|---|---|
| public Component getGlassPane() Implements javax. Doc from javax. Returns the glassPane.
| |
| getGraphics | back to summary |
|---|---|
| public Graphics getGraphics() Overrides sun. Doc from java. Creates a graphics context for this component. This method will
return
| |
| getLayeredPane | back to summary |
|---|---|
| public JLayeredPane getLayeredPane() Implements javax. Doc from javax. Returns the layeredPane.
| |
| getRootPane | back to summary |
|---|---|
| public JRootPane getRootPane() Implements javax. Doc from javax. Return this component's single JRootPane child. A conventional implementation of this interface will have all of the other methods indirect through this one. The rootPane has two children: the glassPane and the layeredPane.
| |
| getScaleFactor | back to summary |
|---|---|
| public int getScaleFactor() Implements abstract sun. Doc from sun. Returns the scale factor of this frame. The default value is 1.
| |
| getScaleFactorX | back to summary |
|---|---|
| public double getScaleFactorX() Implements abstract sun. Doc from sun. Returns the scale factor of this frame along x coordinate. The default value is 1.
| |
| getScaleFactorY | back to summary |
|---|---|
| public double getScaleFactorY() Implements abstract sun. Doc from sun. Returns the scale factor of this frame along y coordinate. The default value is 1.
| |
| grabFocus | back to summary |
|---|---|
| public void grabFocus() Implements abstract sun. Doc from sun. Delegates the focus grab action to the client (embedding) application. The method is called by the AWT grab machinery.
| |
| initInterior | back to summary |
|---|---|
| private void initInterior() | |
| notifyDisplayChanged | back to summary |
|---|---|
| public void notifyDisplayChanged(final int scaleFactor) Implements abstract sun. Doc from sun. Called when display of the hosted frame is changed.
| |
| notifyDisplayChanged | back to summary |
|---|---|
| public void notifyDisplayChanged(final double scaleFactorX, final double scaleFactorY) Implements abstract sun. Doc from sun. Called when display of the hosted frame is changed.
| |
| notifyImageUpdated | back to summary |
|---|---|
| private void notifyImageUpdated(int x, int y, int width, int height) | |
| overrideNativeWindowHandle | back to summary |
|---|---|
| public void overrideNativeWindowHandle(long handle, Runnable closeWindow) | |
| removeDropTarget | back to summary |
|---|---|
| public void removeDropTarget(DropTarget dt) Implements abstract sun. Doc from sun. Removes a drop target from the lightweight frame. | |
| reshape | back to summary |
|---|---|
| public void reshape(int x, int y, int width, int height) Overrides java. Doc from java. Reshapes the bounding rectangle for this component.
| |
| resizeBuffer | back to summary |
|---|---|
| private void resizeBuffer(int width, int height, double newScaleFactorX, double newScaleFactorY) | |
| setContent | back to summary |
|---|---|
| public void setContent(final LightweightContent content) Sets the
| |
| setContentPane | back to summary |
|---|---|
| public void setContentPane(Container contentPane) Implements javax. Doc from javax. The "contentPane" is the primary container for application specific components. Applications should add children to the contentPane, set its layout manager, and so on. The contentPane may not be null.
Generally implemented with
| |
| setGlassPane | back to summary |
|---|---|
| public void setGlassPane(Component glassPane) Implements javax. Doc from javax. The glassPane is always the first child of the rootPane and the rootPanes layout manager ensures that it's always as big as the rootPane. By default it's transparent and not visible. It can be used to temporarily grab all keyboard and mouse input by adding listeners and then making it visible. by default it's not visible. The glassPane may not be null.
Generally implemented with
| |
| setLayeredPane | back to summary |
|---|---|
| public void setLayeredPane(JLayeredPane layeredPane) Implements javax. Doc from javax. A Container that manages the contentPane and in some cases a menu bar. The layeredPane can be used by descendants that want to add a child to the RootPaneContainer that isn't layout managed. For example an internal dialog or a drag and drop effect component. The layeredPane may not be null. Generally implemented with getRootPane().setLayeredPane(layeredPane);
| |
| syncCopyBuffer | back to summary |
|---|---|
| private void syncCopyBuffer(boolean reset, int x, int y, int w, int h, double scaleX, double scaleY) | |
| ungrabFocus | back to summary |
|---|---|
| public void ungrabFocus() Implements abstract sun. Doc from sun. Delegates the focus ungrab action to the client (embedding) application. The method is called by the AWT grab machinery.
| |
| updateClientCursor | back to summary |
|---|---|
| private void updateClientCursor() | |