spacewar
Class Display1

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--spacewar.Display
                    |
                    +--spacewar.Display1
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

class Display1
extends Display

This is the standard display aspect.

See Also:
Serialized Form

Inner Class Summary
(package private) static class Display1.BulletDA
          
(package private) static class Display1.EnergyPacketDA
          
(package private) static class Display1.ShipDA
          
(package private) static class Display1.SpaceObjectDA
          
 
Inner classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Advice Summary
advice receptions(new(..))
afterReturning()
 
 affects: spacewar.Bullet

 
Advice Summary
advice receptions(new(..))
afterReturning()
 
 affects: spacewar.EnergyPacket

 
Advice Summary
advice receptions(new(..))
afterReturning()
 
 affects: spacewar.Ship
advice instanceof(Game) && receptions(Ship newShip(pilot))
static afterReturning(Pilot)
 
 affects: spacewar.Game

 
Advice Summary
advice instanceof(SpaceObjectDA) && receptions(new(..))
static afterReturning()
 
 affects:
advice instanceof(so) && receptions(void die())
static after(SpaceObject)
 
 affects: spacewar.SpaceObject

 
Fields inherited from class spacewar.Display
frame, game, offGraphics, offImage
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
(package private) Display1(Game game)
          
Advised by: spacewar.Display
 
Method Summary
(package private)  void noticeSizeChange()
          
(package private) static void paintLevels(java.awt.Graphics g, Ship ship, int top, int left)
          
(package private)  void paintObjects(java.awt.Graphics g)
          
(package private)  void paintStatus(java.awt.Graphics g)
          
 
Methods inherited from class spacewar.Display
getGame, getPilot1, getPilot2, paint, update
 
Methods inherited from class java.awt.Canvas
, addNotify, constructComponentName, getAccessibleContext, postsOldMouseEvents
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkGD, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createChildHierarchyEvents, createHierarchyEvents, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPaint, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, numListening, paintAll, paintHeavyweightComponents, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, printHeavyweightComponents, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

 
Advice Detail

advice receptions(new(..))

afterReturning()

 affects: spacewar.Bullet

 
Advice Detail

advice receptions(new(..))

afterReturning()

 affects: spacewar.EnergyPacket

 
Advice Detail

advice receptions(new(..))

afterReturning()

 affects: spacewar.Ship


advice instanceof(Game) && receptions(Ship newShip(pilot))

static afterReturning(Pilot)

 affects: spacewar.Game

 
Advice Detail

advice instanceof(SpaceObjectDA) && receptions(new(..))

static afterReturning()

 affects:


advice instanceof(so) && receptions(void die())

static after(SpaceObject)

 affects: spacewar.SpaceObject

Constructor Detail

Display1

Display1(Game game)

Advised by: spacewar.Display
Method Detail

noticeSizeChange

void noticeSizeChange()
Overrides:
noticeSizeChange in class Display

paintObjects

void paintObjects(java.awt.Graphics g)
Overrides:
paintObjects in class Display

paintStatus

void paintStatus(java.awt.Graphics g)
Overrides:
paintStatus in class Display

paintLevels

static void paintLevels(java.awt.Graphics g,
                        Ship ship,
                        int top,
                        int left)