Java Code Examples for sun.awt.windows.WComponentPeer#handlePaint()

The following examples show how to use sun.awt.windows.WComponentPeer#handlePaint() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: D3DScreenUpdateManager.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 2
Source File: D3DScreenUpdateManager.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 3
Source File: D3DScreenUpdateManager.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 4
Source File: D3DScreenUpdateManager.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 5
Source File: D3DScreenUpdateManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 6
Source File: D3DScreenUpdateManager.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 7
Source File: D3DScreenUpdateManager.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 8
Source File: D3DScreenUpdateManager.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 9
Source File: D3DScreenUpdateManager.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 10
Source File: D3DScreenUpdateManager.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 11
Source File: D3DScreenUpdateManager.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 12
Source File: D3DScreenUpdateManager.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}
 
Example 13
Source File: D3DScreenUpdateManager.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Posts a repaint event for the peer's target to the EDT
 * @param peer for which target's the repaint should be issued
 */
private void repaintPeerTarget(WComponentPeer peer) {
    Component target = (Component)peer.getTarget();
    Rectangle bounds = AWTAccessor.getComponentAccessor().getBounds(target);
    // the system-level painting operations should call the handlePaint()
    // method of the WComponentPeer class to repaint the component;
    // calling repaint() forces AWT to make call to update()
    peer.handlePaint(0, 0, bounds.width, bounds.height);
}