Lines Matching refs:peer

129      * restored when a graphics object is requested from the peer.
141 * <li>the peer is either Canvas, Panel, Window, Frame,
146 * @param peer peer for which the surface is to be created
157 WComponentPeer peer,
161 return super.createScreenSurface(gc, peer, bbNum, isResize);
166 if (canUseD3DOnScreen(peer, gc, bbNum)) {
172 sd = D3DSurfaceData.createData(peer);
178 sd = GDIWindowSurfaceData.createData(peer);
181 // this peer will have a gdi surface until next time a surface
192 repaintPeerTarget(peer);
200 * peer.
205 * - if we are in full-screen mode then it must be the peer of the
212 * @returns true if we can use a d3d surface for this peer's onscreen
215 public static boolean canUseD3DOnScreen(final WComponentPeer peer,
224 String peerName = peer.getClass().getName();
225 Rectangle r = peer.getBounds();
226 Component target = (Component)peer.getTarget();
232 peer.isAccelCapable() &&
255 * @param peer peer associated with the surface data
264 WComponentPeer peer, Color fgColor, Color bgColor, Font font)
278 return super.createGraphics(sd, peer, fgColor, bgColor, font);
282 * Posts a repaint event for the peer's target to the EDT
283 * @param peer for which target's the repaint should be issued
285 private void repaintPeerTarget(WComponentPeer peer) {
286 Component target = (Component)peer.getTarget();
291 peer.handlePaint(0, 0, bounds.width, bounds.height);
324 public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
327 SurfaceData newSurface = super.getReplacementScreenSurface(peer, sd);
514 * Creates (or returns a cached one) gdi surface for the same peer as
518 * @return gdi window surface associated with the d3d window surfaces' peer