|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--DE.purple_sunshine.bigbro.SpyCanvas
The SpyCanvas is where all the stuff is painted. This also displays error messages, if necessary. When started the first time, a little animation is shown... this also checks the events for switching the animation on and off and the smily animation.
| Field Summary | |
static boolean |
criticalError
|
static boolean |
macError
|
static boolean |
noServerConnection
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SpyCanvas(java.util.Vector persons,
House house,
SpyApplet applet)
|
|
| Method Summary | |
static void |
criticalErrorOccured(java.lang.String msg)
If this method is called, an error message will be shown in the canvas, and msg will be writtin to standard out (console). |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
|
boolean |
mouseDown(java.awt.Event e,
int x,
int y)
JDK1.0 for: if the mouse button has been pressed, start or stop the animation. |
boolean |
mouseUp(java.awt.Event e,
int x,
int y)
|
void |
newFrame()
Paints a new frame. |
void |
paint(java.awt.Graphics g)
Paints everything ;-) |
void |
smilyAnim()
Starts the smily animation. |
| Methods inherited from class java.awt.Canvas |
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDrag, mouseEnter, mouseExit, mouseMove, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean criticalError
public static boolean noServerConnection
public static boolean macError
| Constructor Detail |
public SpyCanvas(java.util.Vector persons,
House house,
SpyApplet applet)
| Method Detail |
public void newFrame()
public static void criticalErrorOccured(java.lang.String msg)
msg will be writtin to standard out (console).msg - the message to be writtin to standard outpublic void paint(java.awt.Graphics g)
paint in class java.awt.Canvas
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
imageUpdate in class java.awt.Component
public boolean mouseDown(java.awt.Event e,
int x,
int y)
mouseDown in class java.awt.Component
public boolean mouseUp(java.awt.Event e,
int x,
int y)
mouseUp in class java.awt.Componentpublic void smilyAnim()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||