Subversion Repositories sokoban

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0-rc) on Sat Jan 24 19:46:55 CET 2009 -->
6
<TITLE>
7
GamePanel
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2009-01-24">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="GamePanel";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47
  </TR>
48
</TABLE>
49
</TD>
50
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51
</EM>
52
</TD>
53
</TR>
54
 
55
<TR>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
&nbsp;PREV CLASS&nbsp;
58
&nbsp;<A HREF="../../../gdi1sokoban/template/ui/GameWindow.html" title="class in gdi1sokoban.template.ui"><B>NEXT CLASS</B></A></FONT></TD>
59
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60
  <A HREF="../../../index.html?gdi1sokoban/template/ui/GamePanel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61
&nbsp;<A HREF="GamePanel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62
&nbsp;<SCRIPT type="text/javascript">
63
  <!--
64
  if(window==top) {
65
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
66
  }
67
  //-->
68
</SCRIPT>
69
<NOSCRIPT>
70
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
71
</NOSCRIPT>
72
 
73
 
74
</FONT></TD>
75
</TR>
76
<TR>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JComponent">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81
</TR>
82
</TABLE>
83
<A NAME="skip-navbar_top"></A>
84
<!-- ========= END OF TOP NAVBAR ========= -->
85
 
86
<HR>
87
<!-- ======== START OF CLASS DATA ======== -->
88
<H2>
89
<FONT SIZE="-1">
90
gdi1sokoban.template.ui</FONT>
91
<BR>
92
Class GamePanel</H2>
93
<PRE>
94
java.lang.Object
95
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Component
96
      <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Container
97
          <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JComponent
98
              <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">javax.swing.JPanel
99
                  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>gdi1sokoban.template.ui.GamePanel</B>
100
</PRE>
101
<DL>
102
<DT><B>All Implemented Interfaces:</B> <DD>java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible</DD>
103
</DL>
104
<HR>
105
<DL>
106
<DT><PRE>public abstract class <B>GamePanel</B><DT>extends javax.swing.JPanel<DT>implements java.awt.event.MouseListener</DL>
107
</PRE>
108
 
109
<P>
110
Class representing a basic Sokoban game field display that you can extend for
111
 your own solution by deriving from it.
112
<P>
113
 
114
<P>
115
<DL>
116
<DT><B>Version:</B></DT>
117
  <DD>1.0</DD>
118
<DT><B>Author:</B></DT>
119
  <DD>Steven Arzt, Oren Avni</DD>
120
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#gdi1sokoban.template.ui.GamePanel">Serialized Form</A></DL>
121
<HR>
122
 
123
<P>
124
<!-- ======== NESTED CLASS SUMMARY ======== -->
125
 
126
<A NAME="nested_class_summary"><!-- --></A>
127
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
129
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
130
<B>Nested Class Summary</B></FONT></TH>
131
</TR>
132
</TABLE>
133
&nbsp;<A NAME="nested_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A>
134
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
136
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JComponent</B></TH>
137
</TR>
138
<TR BGCOLOR="white" CLASS="TableRowColor">
139
<TD><CODE>javax.swing.JComponent.AccessibleJComponent</CODE></TD>
140
</TR>
141
</TABLE>
142
&nbsp;
143
<A NAME="nested_classes_inherited_from_class_java.awt.Component"><!-- --></A>
144
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
145
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
146
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Component</B></TH>
147
</TR>
148
<TR BGCOLOR="white" CLASS="TableRowColor">
149
<TD><CODE>java.awt.Component.BaselineResizeBehavior</CODE></TD>
150
</TR>
151
</TABLE>
152
&nbsp;
153
<!-- =========== FIELD SUMMARY =========== -->
154
 
155
<A NAME="field_summary"><!-- --></A>
156
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
157
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
158
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
159
<B>Field Summary</B></FONT></TH>
160
</TR>
161
</TABLE>
162
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A>
163
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
164
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
165
<TH ALIGN="left"><B>Fields inherited from class javax.swing.JComponent</B></TH>
166
</TR>
167
<TR BGCOLOR="white" CLASS="TableRowColor">
168
<TD><CODE>TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</CODE></TD>
169
</TR>
170
</TABLE>
171
&nbsp;<A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A>
172
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
173
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
174
<TH ALIGN="left"><B>Fields inherited from class java.awt.Component</B></TH>
175
</TR>
176
<TR BGCOLOR="white" CLASS="TableRowColor">
177
<TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD>
178
</TR>
179
</TABLE>
180
&nbsp;<A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A>
181
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
182
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
183
<TH ALIGN="left"><B>Fields inherited from interface java.awt.image.ImageObserver</B></TH>
184
</TR>
185
<TR BGCOLOR="white" CLASS="TableRowColor">
186
<TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD>
187
</TR>
188
</TABLE>
189
&nbsp;
190
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
191
 
192
<A NAME="constructor_summary"><!-- --></A>
193
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
194
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
195
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
196
<B>Constructor Summary</B></FONT></TH>
197
</TR>
198
<TR BGCOLOR="white" CLASS="TableRowColor">
199
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#GamePanel(gdi1sokoban.template.ui.GameWindow)">GamePanel</A></B>(<A HREF="../../../gdi1sokoban/template/ui/GameWindow.html" title="class in gdi1sokoban.template.ui">GameWindow</A>&nbsp;theParentWindow)</CODE>
200
 
201
<BR>
202
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new instance of the GamePanel class</TD>
203
</TR>
204
</TABLE>
205
&nbsp;
206
<!-- ========== METHOD SUMMARY =========== -->
207
 
208
<A NAME="method_summary"><!-- --></A>
209
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
210
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
211
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
212
<B>Method Summary</B></FONT></TH>
213
</TR>
214
<TR BGCOLOR="white" CLASS="TableRowColor">
215
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216
<CODE>&nbsp;<A HREF="../../../gdi1sokoban/template/ui/GameWindow.html" title="class in gdi1sokoban.template.ui">GameWindow</A></CODE></FONT></TD>
217
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#getParentWindow()">getParentWindow</A></B>()</CODE>
218
 
219
<BR>
220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the parent window for this game field</TD>
221
</TR>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE>&nbsp;void</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#mouseClicked(java.awt.event.MouseEvent)">mouseClicked</A></B>(java.awt.event.MouseEvent&nbsp;evt)</CODE>
226
 
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method handles the "mouse clicked" mouse event by converting the
229
 event into a call to <em>entityClicked(int, int)</em>.</TD>
230
</TR>
231
<TR BGCOLOR="white" CLASS="TableRowColor">
232
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233
<CODE>&nbsp;void</CODE></FONT></TD>
234
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#mouseEntered(java.awt.event.MouseEvent)">mouseEntered</A></B>(java.awt.event.MouseEvent&nbsp;arg0)</CODE>
235
 
236
<BR>
237
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
238
</TR>
239
<TR BGCOLOR="white" CLASS="TableRowColor">
240
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241
<CODE>&nbsp;void</CODE></FONT></TD>
242
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#mouseExited(java.awt.event.MouseEvent)">mouseExited</A></B>(java.awt.event.MouseEvent&nbsp;arg0)</CODE>
243
 
244
<BR>
245
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246
</TR>
247
<TR BGCOLOR="white" CLASS="TableRowColor">
248
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249
<CODE>&nbsp;void</CODE></FONT></TD>
250
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#mousePressed(java.awt.event.MouseEvent)">mousePressed</A></B>(java.awt.event.MouseEvent&nbsp;arg0)</CODE>
251
 
252
<BR>
253
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254
</TR>
255
<TR BGCOLOR="white" CLASS="TableRowColor">
256
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257
<CODE>&nbsp;void</CODE></FONT></TD>
258
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#mouseReleased(java.awt.event.MouseEvent)">mouseReleased</A></B>(java.awt.event.MouseEvent&nbsp;arg0)</CODE>
259
 
260
<BR>
261
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
262
</TR>
263
<TR BGCOLOR="white" CLASS="TableRowColor">
264
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265
<CODE>&nbsp;void</CODE></FONT></TD>
266
<TD><CODE><B><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#redraw()">redraw</A></B>()</CODE>
267
 
268
<BR>
269
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draws the game field once again and updates its graphical representation</TD>
270
</TR>
271
</TABLE>
272
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.JPanel"><!-- --></A>
273
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
274
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
275
<TH ALIGN="left"><B>Methods inherited from class javax.swing.JPanel</B></TH>
276
</TR>
277
<TR BGCOLOR="white" CLASS="TableRowColor">
278
<TD><CODE>getAccessibleContext, getUI, getUIClassID, setUI, updateUI</CODE></TD>
279
</TR>
280
</TABLE>
281
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A>
282
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
283
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
284
<TH ALIGN="left"><B>Methods inherited from class javax.swing.JComponent</B></TH>
285
</TR>
286
<TR BGCOLOR="white" CLASS="TableRowColor">
287
<TD><CODE>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</CODE></TD>
288
</TR>
289
</TABLE>
290
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A>
291
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
292
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
293
<TH ALIGN="left"><B>Methods inherited from class java.awt.Container</B></TH>
294
</TR>
295
<TR BGCOLOR="white" CLASS="TableRowColor">
296
<TD><CODE>add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate</CODE></TD>
297
</TR>
298
</TABLE>
299
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A>
300
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
301
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
302
<TH ALIGN="left"><B>Methods inherited from class java.awt.Component</B></TH>
303
</TR>
304
<TR BGCOLOR="white" CLASS="TableRowColor">
305
<TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle</CODE></TD>
306
</TR>
307
</TABLE>
308
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
309
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
310
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
311
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
312
</TR>
313
<TR BGCOLOR="white" CLASS="TableRowColor">
314
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
315
</TR>
316
</TABLE>
317
&nbsp;
318
<P>
319
 
320
<!-- ========= CONSTRUCTOR DETAIL ======== -->
321
 
322
<A NAME="constructor_detail"><!-- --></A>
323
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
324
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
325
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
326
<B>Constructor Detail</B></FONT></TH>
327
</TR>
328
</TABLE>
329
 
330
<A NAME="GamePanel(gdi1sokoban.template.ui.GameWindow)"><!-- --></A><H3>
331
GamePanel</H3>
332
<PRE>
333
public <B>GamePanel</B>(<A HREF="../../../gdi1sokoban/template/ui/GameWindow.html" title="class in gdi1sokoban.template.ui">GameWindow</A>&nbsp;theParentWindow)</PRE>
334
<DL>
335
<DD>Creates a new instance of the GamePanel class
336
<P>
337
<DL>
338
<DT><B>Parameters:</B><DD><CODE>theParentWindow</CODE> - The parent window on which this panel is placed</DL>
339
</DL>
340
 
341
<!-- ============ METHOD DETAIL ========== -->
342
 
343
<A NAME="method_detail"><!-- --></A>
344
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
345
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
346
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
347
<B>Method Detail</B></FONT></TH>
348
</TR>
349
</TABLE>
350
 
351
<A NAME="redraw()"><!-- --></A><H3>
352
redraw</H3>
353
<PRE>
354
public void <B>redraw</B>()
355
            throws <A HREF="../../../gdi1sokoban/exceptions/InternalFailureException.html" title="class in gdi1sokoban.exceptions">InternalFailureException</A></PRE>
356
<DL>
357
<DD>Draws the game field once again and updates its graphical representation
358
<P>
359
<DD><DL>
360
</DL>
361
</DD>
362
<DD><DL>
363
 
364
<DT><B>Throws:</B>
365
<DD><CODE><A HREF="../../../gdi1sokoban/exceptions/InternalFailureException.html" title="class in gdi1sokoban.exceptions">InternalFailureException</A></CODE> - Thrown if an uncorrectable internal error occurs</DL>
366
</DD>
367
</DL>
368
<HR>
369
 
370
<A NAME="mouseClicked(java.awt.event.MouseEvent)"><!-- --></A><H3>
371
mouseClicked</H3>
372
<PRE>
373
public void <B>mouseClicked</B>(java.awt.event.MouseEvent&nbsp;evt)</PRE>
374
<DL>
375
<DD>This method handles the "mouse clicked" mouse event by converting the
376
 event into a call to <em>entityClicked(int, int)</em>.
377
<P>
378
<DD><DL>
379
<DT><B>Specified by:</B><DD><CODE>mouseClicked</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
380
</DD>
381
<DD><DL>
382
<DT><B>Parameters:</B><DD><CODE>evt</CODE> - the mouse event caused by clicking "somewhere" on the screen<DT><B>See Also:</B><DD><A HREF="../../../gdi1sokoban/template/ui/GamePanel.html#entityClicked(int, int)"><CODE>entityClicked(int, int)</CODE></A></DL>
383
</DD>
384
</DL>
385
<HR>
386
 
387
<A NAME="mousePressed(java.awt.event.MouseEvent)"><!-- --></A><H3>
388
mousePressed</H3>
389
<PRE>
390
public void <B>mousePressed</B>(java.awt.event.MouseEvent&nbsp;arg0)</PRE>
391
<DL>
392
<DD><DL>
393
<DT><B>Specified by:</B><DD><CODE>mousePressed</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
394
</DD>
395
<DD><DL>
396
</DL>
397
</DD>
398
</DL>
399
<HR>
400
 
401
<A NAME="mouseReleased(java.awt.event.MouseEvent)"><!-- --></A><H3>
402
mouseReleased</H3>
403
<PRE>
404
public void <B>mouseReleased</B>(java.awt.event.MouseEvent&nbsp;arg0)</PRE>
405
<DL>
406
<DD><DL>
407
<DT><B>Specified by:</B><DD><CODE>mouseReleased</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
408
</DD>
409
<DD><DL>
410
</DL>
411
</DD>
412
</DL>
413
<HR>
414
 
415
<A NAME="mouseEntered(java.awt.event.MouseEvent)"><!-- --></A><H3>
416
mouseEntered</H3>
417
<PRE>
418
public void <B>mouseEntered</B>(java.awt.event.MouseEvent&nbsp;arg0)</PRE>
419
<DL>
420
<DD><DL>
421
<DT><B>Specified by:</B><DD><CODE>mouseEntered</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
422
</DD>
423
<DD><DL>
424
</DL>
425
</DD>
426
</DL>
427
<HR>
428
 
429
<A NAME="mouseExited(java.awt.event.MouseEvent)"><!-- --></A><H3>
430
mouseExited</H3>
431
<PRE>
432
public void <B>mouseExited</B>(java.awt.event.MouseEvent&nbsp;arg0)</PRE>
433
<DL>
434
<DD><DL>
435
<DT><B>Specified by:</B><DD><CODE>mouseExited</CODE> in interface <CODE>java.awt.event.MouseListener</CODE></DL>
436
</DD>
437
<DD><DL>
438
</DL>
439
</DD>
440
</DL>
441
<HR>
442
 
443
<A NAME="getParentWindow()"><!-- --></A><H3>
444
getParentWindow</H3>
445
<PRE>
446
public <A HREF="../../../gdi1sokoban/template/ui/GameWindow.html" title="class in gdi1sokoban.template.ui">GameWindow</A> <B>getParentWindow</B>()</PRE>
447
<DL>
448
<DD>Gets the parent window for this game field
449
<P>
450
<DD><DL>
451
</DL>
452
</DD>
453
<DD><DL>
454
 
455
<DT><B>Returns:</B><DD>This game field's parent window</DL>
456
</DD>
457
</DL>
458
<!-- ========= END OF CLASS DATA ========= -->
459
<HR>
460
 
461
 
462
<!-- ======= START OF BOTTOM NAVBAR ====== -->
463
<A NAME="navbar_bottom"><!-- --></A>
464
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
465
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
466
<TR>
467
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
468
<A NAME="navbar_bottom_firstrow"><!-- --></A>
469
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
470
  <TR ALIGN="center" VALIGN="top">
471
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
472
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
473
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
474
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
475
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
476
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
477
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
478
  </TR>
479
</TABLE>
480
</TD>
481
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
482
</EM>
483
</TD>
484
</TR>
485
 
486
<TR>
487
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
488
&nbsp;PREV CLASS&nbsp;
489
&nbsp;<A HREF="../../../gdi1sokoban/template/ui/GameWindow.html" title="class in gdi1sokoban.template.ui"><B>NEXT CLASS</B></A></FONT></TD>
490
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
491
  <A HREF="../../../index.html?gdi1sokoban/template/ui/GamePanel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
492
&nbsp;<A HREF="GamePanel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
493
&nbsp;<SCRIPT type="text/javascript">
494
  <!--
495
  if(window==top) {
496
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
497
  }
498
  //-->
499
</SCRIPT>
500
<NOSCRIPT>
501
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
502
</NOSCRIPT>
503
 
504
 
505
</FONT></TD>
506
</TR>
507
<TR>
508
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
509
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JComponent">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
510
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
511
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
512
</TR>
513
</TABLE>
514
<A NAME="skip-navbar_bottom"></A>
515
<!-- ======== END OF BOTTOM NAVBAR ======= -->
516
 
517
<HR>
518
 
519
</BODY>
520
</HTML>