aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/awt/GLightweightPeer.java
blob: f59c91758b51731fdabf245862defc3085ba03e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/* Copyright © 2000  Free Software Foundation

   This file is part of libgcj.

This software is copyrighted work licensed under the terms of the
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
details.  */

package gnu.gcj.awt;

import java.awt.*;
import java.awt.peer.*;
import java.awt.image.*;

/**
 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
 */
public class GLightweightPeer implements LightweightPeer
{
  public static final GLightweightPeer INSTANCE = new GLightweightPeer();

  public GLightweightPeer() {}

  // -------- java.awt.peer.ComponentPeer implementation:
  
  public int checkImage(Image img, int width, int height, ImageObserver o)
  {
    return 0;
  }

  public Image createImage(ImageProducer prod)
  {
    return null;
  }

  public Image createImage(int width, int height)
  {
    return null;
  }

  public void disable() {}

  public void dispose() {}

  public void enable() {}

  public GraphicsConfiguration getGraphicsConfiguration()
  {
    return null;
  }
  
  public FontMetrics getFontMetrics(Font f)
  {
    return null;
  }

  public Graphics getGraphics()
  {
    return null;
  }

  public Point getLocationOnScreen()
  {
    return null;
  }

  public Dimension getMinimumSize()
  {
    return null;
  }

  public Dimension getPreferredSize()
  {
    return null;
  }

  public Toolkit getToolkit()
  {
    return null;
  }

  public void handleEvent(AWTEvent e) {}

  public void hide() {}

  public boolean isFocusTraversable()
  {
    return false;
  }

  public Dimension minimumSize()
  {
    return null;
  }

  public Dimension preferredSize()
  {
    return null;
  }

  public void paint(Graphics graphics) {}

  public boolean prepareImage(Image img, int width, int height,
			      ImageObserver o)
  {
    return false;
  }

  public void print(Graphics graphics) {}

  public void repaint(long tm, int x, int y, int width, int height) {}

  public void requestFocus() {}

  public void reshape(int x, int y, int width, int height) {}

  public void setBackground(Color color) {}

  public void setBounds(int x, int y, int width, int height) {}

  public void setCursor(Cursor cursor) {}

  public void setEnabled(boolean enabled) {}

  public void setEventMask(long eventMask) {}

  public void setFont(Font font) {}

  public void setForeground(Color color) {}

  public void setVisible(boolean visible) {}

  public void show() {}
}