Lines Matching refs:peer

37 import java.awt.peer.ComponentPeer;
38 import java.awt.peer.ContainerPeer;
39 import java.awt.peer.LightweightPeer;
198 * The peer of the component. The peer implements the component's
199 * behavior. The peer is set when the <code>Component</code> is
200 * added to a container that also is a peer.
204 transient ComponentPeer peer;
282 * The font which the peer is currently using.
283 * (<code>null</code> if no peer exists.)
810 * (i.e. the peer is created).
837 // of the peer and therefore the call to XSetBackground.
927 return comp.peer != null;
933 return comp.peer;
935 public void setPeer(Component comp, ComponentPeer peer) {
936 comp.peer = peer;
939 return (comp.peer instanceof LightweightPeer);
1067 return peer;
1086 if (peer != null) dropTarget.removeNotify(peer);
1099 // if we have a new one, and we have a peer, add it!
1104 if (peer != null) dropTarget.addNotify(peer);
1109 if (peer != null) dropTarget.addNotify(peer);
1164 ComponentPeer peer = getPeer();
1165 if (peer != null) {
1166 return peer.updateGraphicsData(gc);
1217 ComponentPeer peer = this.peer;
1218 if ((peer != null) && ! (peer instanceof LightweightPeer)){
1219 return peer.getToolkit();
1242 return (peer != null) && valid;
1411 if (visible && (peer != null)) {
1470 ComponentPeer peer = this.peer;
1471 if (peer != null) {
1472 peer.setEnabled(true);
1519 ComponentPeer peer = this.peer;
1520 if (peer != null) {
1521 peer.setEnabled(false);
1616 ComponentPeer peer = this.peer;
1617 if (peer != null) {
1618 peer.setVisible(true);
1623 if (peer instanceof LightweightPeer) {
1686 ComponentPeer peer = this.peer;
1687 if (peer != null) {
1688 peer.setVisible(false);
1693 if (peer instanceof LightweightPeer) {
1744 ComponentPeer peer = this.peer;
1746 if (peer != null) {
1749 peer.setForeground(c);
1805 ComponentPeer peer = this.peer;
1807 if (peer != null) {
1810 peer.setBackground(c);
1878 ComponentPeer peer = this.peer;
1879 if (peer != null) {
1882 peer.setFont(f);
1966 * @see java.awt.peer.ComponentPeer#getColorModel()
1971 ComponentPeer peer = this.peer;
1972 if ((peer != null) && ! (peer instanceof LightweightPeer)) {
1973 return peer.getColorModel();
2028 if (peer != null && isShowing()) {
2029 if (peer instanceof LightweightPeer) {
2033 Point pt = host.peer.getLocationOnScreen();
2040 Point pt = peer.getLocationOnScreen();
2275 if (peer != null) {
2276 // LightwightPeer is an empty stub so can skip peer.reshape
2277 if (!(peer instanceof LightweightPeer)) {
2279 // Check peer actualy changed coordinates
2283 // windows here as it is done from peer or native code when
2310 if (parent != null && peer instanceof LightweightPeer && isShowing()) {
2319 // native peer might be offset by more than direct
2324 (c != null) && (c.peer instanceof LightweightPeer);
2330 peer.setBounds(nativeX, nativeY, width, height, op);
2540 * A lightweight component doesn't have a native toolkit peer.
2550 * @return true if this component has a lightweight peer; false if
2551 * it has a native peer or no peer
2624 prefSize = (peer != null) ?
2625 peer.getPreferredSize() :
2694 minSize = (peer != null) ?
2695 peer.getMinimumSize() :
2869 ComponentPeer peer = this.peer;
2871 if (!wasValid && peer != null) {
2876 peer.setFont(newfont);
2879 peer.layout();
2999 if (peer instanceof LightweightPeer) {
3015 ComponentPeer peer = this.peer;
3016 return (peer != null) ? peer.getGraphics() : null;
3021 ComponentPeer peer = this.peer;
3022 if (peer instanceof LightweightPeer) {
3039 return (peer != null) ? peer.getGraphics() : null;
3058 * @see java.awt.peer.ComponentPeer#getFontMetrics(Font)
3069 if (peer != null &&
3070 !(peer instanceof LightweightPeer)) {
3071 return peer.getFontMetrics(font);
3112 if (peer instanceof LightweightPeer) {
3122 } else if (peer != null) {
3123 peer.updateCursorImmediately();
3252 * Simulates the peer callbacks into java.awt for painting of
3355 if (this.peer instanceof LightweightPeer) {
3382 if (isVisible() && (this.peer != null) &&
3433 * Simulates the peer callbacks into java.awt for printing of
3449 ComponentPeer peer = this.peer;
3450 if (peer instanceof ContainerPeer) {
3451 return (Insets)((ContainerPeer)peer).getInsets().clone();
3528 ComponentPeer peer = this.peer;
3529 if ((peer != null) && ! (peer instanceof LightweightPeer)) {
3530 return peer.createImage(producer);
3550 ComponentPeer peer = this.peer;
3551 if (peer instanceof LightweightPeer) {
3555 return (peer != null) ? peer.createImage(width, height) : null;
3575 ComponentPeer peer = this.peer;
3576 if (peer instanceof LightweightPeer) {
3582 return (peer != null) ?
3583 peer.createVolatileImage(width, height) : null;
3644 ComponentPeer peer = this.peer;
3645 if (peer instanceof LightweightPeer) {
3650 return (peer != null)
3651 ? peer.prepareImage(image, width, height, observer)
3691 * calls its peer's <code>checkImage</code> method to calculate
3692 * the flags. If this component does not yet have a peer, the
3716 ComponentPeer peer = this.peer;
3717 if (peer instanceof LightweightPeer) {
3722 return (peer != null)
3723 ? peer.checkImage(image, width, height, observer)
3828 if (!caps.isPageFlipping() && sge.isFlipStrategyPreferred(peer)) {
3939 * @exception IllegalStateException if the component has no peer
3969 * @exception IllegalStateException if the component has no peer
3981 } else if (peer == null) {
3983 "Component must have a valid peer");
4006 // change the caps that we pass to the peer but keep on
4016 peer.createBuffers(numBuffers, caps);
4022 * by requesting the back-buffer from the peer.
4040 if (peer != null) {
4041 return peer.getBackBuffer();
4044 "Component must have a valid peer");
4060 if (peer != null) {
4063 peer.flip(0, 0,
4069 "Component must have a valid peer");
4076 if (peer != null) {
4077 peer.flip(x1, y1, x2, y2, flipAction);
4080 "Component must have a valid peer");
4089 if (peer != null) {
4090 peer.destroyBuffers();
4093 "Component must have a valid peer");
4139 // get the buffers from the peer every time since they
4207 if (peer != null) {
4747 (peer != null && !peer.handlesWheelScrolling()) &&
4820 // peer's handleEvent() method so the background can be cleared
4918 * 9. Allow the peer to process the event.
4919 * Except KeyEvents, they will be processed by peer after
4924 ComponentPeer tpeer = peer;
5158 ComponentPeer peer = this.peer;
5269 if (peer instanceof LightweightPeer) {
5602 if (peer instanceof LightweightPeer) {
5671 if (peer instanceof LightweightPeer) {
5740 if (peer instanceof LightweightPeer) {
5814 if (peer instanceof LightweightPeer) {
6065 if (peer instanceof LightweightPeer) {
6225 * event is coalesced into a complex <code>RepaintArea</code> in the peer.
6858 ComponentPeer peer = this.peer;
6859 if (peer == null || peer instanceof LightweightPeer){
6860 if (peer == null) {
6861 // Update both the Component's peer variable and the local
6863 this.peer = peer = getToolkit().createComponent(this);
6901 peer.setVisible(false);
6913 if (dropTarget != null) dropTarget.addNotify(peer);
6984 // before hiding peer.)
6992 ComponentPeer p = peer;
7000 if (dropTarget != null) dropTarget.removeNotify(peer);
7002 // Hide peer first to stop system events such as cursor moves.
7007 peer = null; // Stop peer updates.
7436 * extraordinary event, such as disposal of the component's peer, occurs
7498 * extraordinary event, such as disposal of the Component's peer, occurs
7550 * extraordinary event, such as disposal of the component's peer, occurs
7631 ComponentPeer peer = this.peer;
7632 Component heavyweight = (peer instanceof LightweightPeer)
7640 peer = heavyweight.peer;
7641 if (peer == null) {
7650 boolean success = peer.requestFocus
7677 ComponentPeer peer = this.peer;
7678 if (peer == null) {
7680 focusLog.finest("peer is null");
8030 if (peer != null) {
8031 if (popup.peer == null) {
8052 if (pmenu.peer != null) {
8167 while (p != null && p.peer instanceof LightweightPeer) {
8926 if (peer == null) {
8938 peer.setBounds(nativeX, nativeY, width, height,
9699 ComponentPeer peer = getPeer();
9700 if (peer != null) {
9721 peer.applyShape(null);
9732 peer.applyShape(shape.getTranslatedRegion(-compAbsolute.x, -compAbsolute.y));
9982 // We cannot be sure that the peer exists at this point, so we need the argument
10098 peer.setZOrder(getHWPeerAboveMe());