From 508791ead266a2713598222264b41017ee1ae482 Mon Sep 17 00:00:00 2001 From: Samuel Fu Date: Tue, 27 Feb 2018 14:30:13 -0800 Subject: [PATCH] doc --- docs/allclasses-frame.html | 43 + docs/allclasses-noframe.html | 43 + docs/constant-values.html | 160 +++ docs/deprecated-list.html | 124 +++ .../ucsb/cs56/projects/games/pong/Game.html | 469 +++++++++ .../projects/games/pong/class-use/Game.html | 124 +++ .../projects/games/pong/gameplay/Ball.html | 913 +++++++++++++++++ .../games/pong/gameplay/DifficultyLevel.html | 576 +++++++++++ .../games/pong/gameplay/EndOfGame.html | 365 +++++++ .../games/pong/gameplay/GameOver.html | 307 ++++++ .../projects/games/pong/gameplay/Paddle.html | 965 ++++++++++++++++++ .../projects/games/pong/gameplay/Pong.html | 627 ++++++++++++ .../projects/games/pong/gameplay/Screen.html | 446 ++++++++ .../pong/gameplay/Screen.myKeyAdapter.html | 327 ++++++ .../games/pong/gameplay/class-use/Ball.html | 168 +++ .../gameplay/class-use/DifficultyLevel.html | 124 +++ .../pong/gameplay/class-use/EndOfGame.html | 124 +++ .../pong/gameplay/class-use/GameOver.html | 124 +++ .../games/pong/gameplay/class-use/Paddle.html | 208 ++++ .../games/pong/gameplay/class-use/Pong.html | 166 +++ .../games/pong/gameplay/class-use/Screen.html | 124 +++ .../class-use/Screen.myKeyAdapter.html | 124 +++ .../games/pong/gameplay/package-frame.html | 26 + .../games/pong/gameplay/package-summary.html | 184 ++++ .../games/pong/gameplay/package-tree.html | 148 +++ .../games/pong/gameplay/package-use.html | 170 +++ .../pong/highscore/DisplayHighScores.html | 323 ++++++ .../games/pong/highscore/HighScore.html | 369 +++++++ .../class-use/DisplayHighScores.html | 124 +++ .../pong/highscore/class-use/HighScore.html | 181 ++++ .../games/pong/highscore/package-frame.html | 21 + .../games/pong/highscore/package-summary.html | 150 +++ .../games/pong/highscore/package-tree.html | 138 +++ .../games/pong/highscore/package-use.html | 159 +++ .../projects/games/pong/menu/ColorPrompt.html | 467 +++++++++ .../games/pong/menu/CustomModePrompt.html | 466 +++++++++ .../pong/menu/DifficultyLevelPrompt.html | 446 ++++++++ .../pong/menu/HighScoreTextComponent.html | 466 +++++++++ .../pong/menu/InstructionsTextComponent.html | 489 +++++++++ .../games/pong/menu/MainMenuComponent.html | 408 ++++++++ .../projects/games/pong/menu/MainMenuUI.html | 408 ++++++++ .../games/pong/menu/MenuPaddingComponent.html | 409 ++++++++ .../games/pong/menu/MenuTextComponent.html | 561 ++++++++++ .../games/pong/menu/PlayTextComponent.html | 509 +++++++++ .../pong/menu/class-use/ColorPrompt.html | 124 +++ .../pong/menu/class-use/CustomModePrompt.html | 124 +++ .../menu/class-use/DifficultyLevelPrompt.html | 124 +++ .../class-use/HighScoreTextComponent.html | 124 +++ .../class-use/InstructionsTextComponent.html | 124 +++ .../menu/class-use/MainMenuComponent.html | 184 ++++ .../games/pong/menu/class-use/MainMenuUI.html | 124 +++ .../menu/class-use/MenuPaddingComponent.html | 124 +++ .../menu/class-use/MenuTextComponent.html | 176 ++++ .../menu/class-use/PlayTextComponent.html | 124 +++ .../pong/menu/instructions/Instructions.html | 336 ++++++ .../instructions/class-use/Instructions.html | 124 +++ .../pong/menu/instructions/package-frame.html | 20 + .../menu/instructions/package-summary.html | 144 +++ .../pong/menu/instructions/package-tree.html | 137 +++ .../pong/menu/instructions/package-use.html | 124 +++ .../games/pong/menu/package-frame.html | 29 + .../games/pong/menu/package-summary.html | 186 ++++ .../games/pong/menu/package-tree.html | 168 +++ .../projects/games/pong/menu/package-use.html | 160 +++ .../projects/games/pong/package-frame.html | 20 + .../projects/games/pong/package-summary.html | 145 +++ .../projects/games/pong/package-tree.html | 157 +++ .../cs56/projects/games/pong/package-use.html | 124 +++ .../games/pong/sound/SoundEffect.html | 288 ++++++ .../pong/sound/class-use/SoundEffect.html | 172 ++++ .../games/pong/sound/package-frame.html | 20 + .../games/pong/sound/package-summary.html | 144 +++ .../games/pong/sound/package-tree.html | 137 +++ .../games/pong/sound/package-use.html | 159 +++ .../projects/games/pong/tests/BallTest.html | 249 +++++ .../projects/games/pong/tests/PaddleTest.html | 290 ++++++ .../projects/games/pong/tests/PongTest.html | 249 +++++ .../games/pong/tests/class-use/BallTest.html | 124 +++ .../pong/tests/class-use/PaddleTest.html | 124 +++ .../games/pong/tests/class-use/PongTest.html | 124 +++ .../games/pong/tests/package-frame.html | 22 + .../games/pong/tests/package-summary.html | 156 +++ .../games/pong/tests/package-tree.html | 139 +++ .../games/pong/tests/package-use.html | 124 +++ docs/help-doc.html | 229 +++++ docs/index-all.html | 947 +++++++++++++++++ docs/index.html | 75 ++ docs/overview-frame.html | 27 + docs/overview-summary.html | 159 +++ docs/overview-tree.html | 206 ++++ docs/package-list | 7 + docs/script.js | 30 + docs/serialized-form.html | 342 +++++++ docs/stylesheet.css | 574 +++++++++++ 94 files changed, 21616 insertions(+) create mode 100644 docs/allclasses-frame.html create mode 100644 docs/allclasses-noframe.html create mode 100644 docs/constant-values.html create mode 100644 docs/deprecated-list.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/Game.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/class-use/Game.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/Ball.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/DifficultyLevel.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/EndOfGame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/GameOver.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/Paddle.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/Pong.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.myKeyAdapter.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Ball.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/DifficultyLevel.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/EndOfGame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/GameOver.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Paddle.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Pong.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.myKeyAdapter.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-frame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-summary.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-tree.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-use.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/DisplayHighScores.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/HighScore.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/DisplayHighScores.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/HighScore.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/package-frame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/package-summary.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/package-tree.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/highscore/package-use.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/ColorPrompt.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/CustomModePrompt.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/DifficultyLevelPrompt.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/HighScoreTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/InstructionsTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuUI.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/MenuPaddingComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/MenuTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/PlayTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/ColorPrompt.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/CustomModePrompt.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/DifficultyLevelPrompt.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/HighScoreTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/InstructionsTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuUI.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuPaddingComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/PlayTextComponent.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/Instructions.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/class-use/Instructions.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-frame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-summary.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-tree.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-use.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/package-frame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/package-summary.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/package-tree.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/menu/package-use.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/package-frame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/package-summary.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/package-tree.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/package-use.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/sound/SoundEffect.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/sound/class-use/SoundEffect.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/sound/package-frame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/sound/package-summary.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/sound/package-tree.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/sound/package-use.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/BallTest.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/PaddleTest.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/PongTest.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/BallTest.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PaddleTest.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PongTest.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/package-frame.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/package-summary.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/package-tree.html create mode 100644 docs/edu/ucsb/cs56/projects/games/pong/tests/package-use.html create mode 100644 docs/help-doc.html create mode 100644 docs/index-all.html create mode 100644 docs/index.html create mode 100644 docs/overview-frame.html create mode 100644 docs/overview-summary.html create mode 100644 docs/overview-tree.html create mode 100644 docs/package-list create mode 100644 docs/script.js create mode 100644 docs/serialized-form.html create mode 100644 docs/stylesheet.css diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html new file mode 100644 index 0000000..6f75454 --- /dev/null +++ b/docs/allclasses-frame.html @@ -0,0 +1,43 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/docs/allclasses-noframe.html b/docs/allclasses-noframe.html new file mode 100644 index 0000000..b26a22a --- /dev/null +++ b/docs/allclasses-noframe.html @@ -0,0 +1,43 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/docs/constant-values.html b/docs/constant-values.html new file mode 100644 index 0000000..c1cc535 --- /dev/null +++ b/docs/constant-values.html @@ -0,0 +1,160 @@ + + + + + +Constant Field Values + + + + + + + + +
+ + + + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

edu.ucsb.*

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/deprecated-list.html b/docs/deprecated-list.html new file mode 100644 index 0000000..e9c5db6 --- /dev/null +++ b/docs/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + +Deprecated List + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/Game.html b/docs/edu/ucsb/cs56/projects/games/pong/Game.html new file mode 100644 index 0000000..1597ad0 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/Game.html @@ -0,0 +1,469 @@ + + + + + +Game + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong
+

Class Game

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
    +
    +
    +
    +
    public class Game
    +extends javax.swing.JFrame
    +
    edu.ucsb.cs56.projects.games.pong.Game + Game contains the launcher(main). + It provides the frame/window details for the Game.
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Angel Ortega, Victoria Sneddon, Andrew Polk
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JFrame

        +javax.swing.JFrame.AccessibleJFrame
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Frame

        +java.awt.Frame.AccessibleAWTFrame
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Window

        +java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javax.swing.JFrame

        +accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Frame

        +CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • +
      +
        +
      • + + +

        Fields inherited from interface javax.swing.WindowConstants

        +DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
      • +
      +
        +
      • + + +

        Fields inherited from interface java.awt.image.ImageObserver

        +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Game(java.lang.String title, + java.awt.Dimension dimension) +
      constructor for Game; takes in a title and dimension
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String[] args) +
      main, entry point for game
      +
      static voidsetWindowVisibility(boolean visibility) 
      +
        +
      • + + +

        Methods inherited from class javax.swing.JFrame

        +addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Frame

        +addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Window

        +addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.awt.MenuContainer

        +getFont, postEvent
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Game

        +
        public Game(java.lang.String title,
        +            java.awt.Dimension dimension)
        +
        constructor for Game; takes in a title and dimension
        +
        +
        Parameters:
        +
        title - The title for the JFrame
        +
        dimension - Dimensions for the window
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
        main, entry point for game
        +
        +
        Parameters:
        +
        args - not used
        +
        +
      • +
      + + + +
        +
      • +

        setWindowVisibility

        +
        public static void setWindowVisibility(boolean visibility)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/class-use/Game.html b/docs/edu/ucsb/cs56/projects/games/pong/class-use/Game.html new file mode 100644 index 0000000..d314ad3 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/class-use/Game.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.Game + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.Game

+
+
No usage of edu.ucsb.cs56.projects.games.pong.Game
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Ball.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Ball.html new file mode 100644 index 0000000..296158d --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Ball.html @@ -0,0 +1,913 @@ + + + + + +Ball + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class Ball

+
+
+ +
+
    +
  • +
    +
    +
    public class Ball
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.gameplay.Ball is the class that will move the ball around the screen
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Timothy Fok, Sanchit Gupta, Bhanu Khanijau, Jake Dumont, Heneli Kailahi, Benjamin Hartl, Sarah Darwiche, Vincent Gandolfo, Krishna Lingampalli, Andrew Polk, Victoria Sneddon
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      booleanattached +
      Holds if the ball is attached to a paddle
      +
      intballsLost +
      Number of balls lost
      +
      java.awt.Colorcolor +
      Holds the color of the gameObject
      +
      java.awt.Rectanglerectangle +
      Holds x and y coordinates and width and height
      +
      intspeed +
      Speed of the ball
      +
      intspeedX +
      X Speed of the ball
      +
      intxVelocity +
      Gameobject horizontal speed (x)
      +
      intyVelocity +
      Gameobject vertival speed (y)
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Ball(int x, + int y, + int w, + int h, + boolean isGoingRight) +
      edu.ucsb.cs56.projects.games.pong.gameplay.Ball constructor to initialize location of edu.ucsb.cs56.projects.games.pong.gameplay.Ball onto the screen + and draw it as a rectangle for a simpler and precise hitbox.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidballAttachUpdate() +
      Updates the velocity if the ball is attached
      +
      voiddraw(java.awt.Graphics g) +
      The draw method sets a new Color for the ball and redraws the ball with new coordinates
      +
      intgetHeight() +
      getHeight() returns the height of the Paddle
      +
      java.awt.ColorgetRandomColor() +
      getRandomColor() returns a new color that was randomly generated
      +
      intgetWidth() +
      getWidth() returns the width of the Paddle
      +
      intgetXCoordinate() +
      getXCoordinate() returns the x coordinate of the Paddle
      +
      intgetXVelocity() +
      getXVelocity() returns the x velocity of the Ball
      +
      intgetYCoordinate() +
      getYCoordinate() returns the y coordinate of the Paddle
      +
      intgetYVelocity() +
      Overrides getYVelocity to call ballAttachUpdate outside of key event
      +
      voidholdBallToPaddle(java.awt.event.KeyEvent evt, + double distance) +
      takes in KeyEvent and distance and holds ball to paddle if correct key is pressed and distance is correct
      +
      booleanisStopped() +
      isStopped() checks if the ball is stopped
      +
      voidkeyPressed(java.awt.event.KeyEvent evt, + java.util.ArrayList<java.lang.Double> distance) +
      Takes in KeyEvent and arrayList of distance and moves ball with the paddle if ball is being held
      +
      voidkeyReleased(java.awt.event.KeyEvent evt, + java.util.ArrayList<java.lang.Double> distance) +
      takes in KeyEvent and arrayList of distance and releases ball from paddle or stops ball from moving
      +
      voidreleaseBallFromPaddle(java.awt.event.KeyEvent evt, + double distance) +
      Takes in keyEvent and distance and releases ball from paddle if correct key is released
      +
      voidresetBall(int ballNumber) +
      resetBall() puts the ball back in the middle of the screen and stops the ball
      +
      voidsetColor(java.awt.Color newColor) +
      set the color of gameobject
      +
      voidsetHeight(int h) +
      setHeight sets the height of the Paddle
      +
      voidsetWidth(int w) +
      setWidth sets the width of the Paddle
      +
      voidsetXCoordinate(int x) +
      setXCoordinate sets the x coordinate of the Paddle
      +
      voidsetXVelocity(int dx) +
      setXVelocity sets the x velocity of the Ball
      +
      voidsetYCoordinate(int y) +
      setYCoordinate sets the y coordinate of the Paddle
      +
      voidsetYVelocity(int dy) +
      setYVelocity sets the y velocity of the Ball
      +
      voidstartBall() +
      startBall(): When the ball is stopped, this will start the ball in the direction of the way it was going
      +
      voidstopBall() +
      stopBall() stops the ball no matter what
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        ballsLost

        +
        public int ballsLost
        +
        Number of balls lost
        +
      • +
      + + + +
        +
      • +

        speedX

        +
        public int speedX
        +
        X Speed of the ball
        +
      • +
      + + + +
        +
      • +

        speed

        +
        public int speed
        +
        Speed of the ball
        +
      • +
      + + + +
        +
      • +

        attached

        +
        public boolean attached
        +
        Holds if the ball is attached to a paddle
        +
      • +
      + + + +
        +
      • +

        xVelocity

        +
        public int xVelocity
        +
        Gameobject horizontal speed (x)
        +
      • +
      + + + +
        +
      • +

        yVelocity

        +
        public int yVelocity
        +
        Gameobject vertival speed (y)
        +
      • +
      + + + +
        +
      • +

        rectangle

        +
        public java.awt.Rectangle rectangle
        +
        Holds x and y coordinates and width and height
        +
      • +
      + + + +
        +
      • +

        color

        +
        public java.awt.Color color
        +
        Holds the color of the gameObject
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Ball

        +
        public Ball(int x,
        +            int y,
        +            int w,
        +            int h,
        +            boolean isGoingRight)
        +
        edu.ucsb.cs56.projects.games.pong.gameplay.Ball constructor to initialize location of edu.ucsb.cs56.projects.games.pong.gameplay.Ball onto the screen + and draw it as a rectangle for a simpler and precise hitbox.
        +
        +
        Parameters:
        +
        x - set initial x coordinate of ball
        +
        y - set initial y coordinate of ball
        +
        w - set initial w of ball
        +
        h - set initial h of ball
        +
        isGoingRight - set if ball is going right
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        draw

        +
        public void draw(java.awt.Graphics g)
        +
        The draw method sets a new Color for the ball and redraws the ball with new coordinates
        +
        +
        Parameters:
        +
        g - The Graphics object for the draw method
        +
        +
      • +
      + + + +
        +
      • +

        startBall

        +
        public void startBall()
        +
        startBall(): When the ball is stopped, this will start the ball in the direction of the way it was going
        +
      • +
      + + + +
        +
      • +

        isStopped

        +
        public boolean isStopped()
        +
        isStopped() checks if the ball is stopped
        +
        +
        Returns:
        +
        boolean if ball is stopped
        +
        +
      • +
      + + + +
        +
      • +

        stopBall

        +
        public void stopBall()
        +
        stopBall() stops the ball no matter what
        +
      • +
      + + + +
        +
      • +

        resetBall

        +
        public void resetBall(int ballNumber)
        +
        resetBall() puts the ball back in the middle of the screen and stops the ball
        +
      • +
      + + + +
        +
      • +

        holdBallToPaddle

        +
        public void holdBallToPaddle(java.awt.event.KeyEvent evt,
        +                             double distance)
        +
        takes in KeyEvent and distance and holds ball to paddle if correct key is pressed and distance is correct
        +
        +
        Parameters:
        +
        evt - The event of a key press
        +
        distance - Distance from paddle to ball
        +
        +
      • +
      + + + +
        +
      • +

        releaseBallFromPaddle

        +
        public void releaseBallFromPaddle(java.awt.event.KeyEvent evt,
        +                                  double distance)
        +
        Takes in keyEvent and distance and releases ball from paddle if correct key is released
        +
        +
        Parameters:
        +
        evt - The event of a key press
        +
        distance - Distance from paddle to ball
        +
        +
      • +
      + + + +
        +
      • +

        keyPressed

        +
        public void keyPressed(java.awt.event.KeyEvent evt,
        +                       java.util.ArrayList<java.lang.Double> distance)
        +
        Takes in KeyEvent and arrayList of distance and moves ball with the paddle if ball is being held
        +
        +
        Parameters:
        +
        evt - The event of a key press
        +
        distance - ArrayList of distances from balls
        +
        +
      • +
      + + + +
        +
      • +

        ballAttachUpdate

        +
        public void ballAttachUpdate()
        +
        Updates the velocity if the ball is attached
        +
      • +
      + + + +
        +
      • +

        getYVelocity

        +
        public int getYVelocity()
        +
        Overrides getYVelocity to call ballAttachUpdate outside of key event
        +
        +
        Returns:
        +
        int y velocity
        +
        +
      • +
      + + + +
        +
      • +

        keyReleased

        +
        public void keyReleased(java.awt.event.KeyEvent evt,
        +                        java.util.ArrayList<java.lang.Double> distance)
        +
        takes in KeyEvent and arrayList of distance and releases ball from paddle or stops ball from moving
        +
        +
        Parameters:
        +
        evt - The event of a key press
        +
        distance - Arraylist of distances from balls
        +
        +
      • +
      + + + +
        +
      • +

        getXCoordinate

        +
        public int getXCoordinate()
        +
        getXCoordinate() returns the x coordinate of the Paddle
        +
        +
        Returns:
        +
        int X coordinte
        +
        +
      • +
      + + + +
        +
      • +

        setXCoordinate

        +
        public void setXCoordinate(int x)
        +
        setXCoordinate sets the x coordinate of the Paddle
        +
        +
        Parameters:
        +
        x - x coordinate of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        setColor

        +
        public void setColor(java.awt.Color newColor)
        +
        set the color of gameobject
        +
        +
        Parameters:
        +
        newColor - new color object
        +
        +
      • +
      + + + +
        +
      • +

        getYCoordinate

        +
        public int getYCoordinate()
        +
        getYCoordinate() returns the y coordinate of the Paddle
        +
        +
        Returns:
        +
        int y coordinate
        +
        +
      • +
      + + + +
        +
      • +

        setYCoordinate

        +
        public void setYCoordinate(int y)
        +
        setYCoordinate sets the y coordinate of the Paddle
        +
        +
        Parameters:
        +
        y - y coordinate of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        getWidth

        +
        public int getWidth()
        +
        getWidth() returns the width of the Paddle
        +
        +
        Returns:
        +
        int the gameobject width
        +
        +
      • +
      + + + +
        +
      • +

        setWidth

        +
        public void setWidth(int w)
        +
        setWidth sets the width of the Paddle
        +
        +
        Parameters:
        +
        w - width of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        getHeight

        +
        public int getHeight()
        +
        getHeight() returns the height of the Paddle
        +
        +
        Returns:
        +
        int gameobject height
        +
        +
      • +
      + + + +
        +
      • +

        setHeight

        +
        public void setHeight(int h)
        +
        setHeight sets the height of the Paddle
        +
        +
        Parameters:
        +
        h - height of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        getXVelocity

        +
        public int getXVelocity()
        +
        getXVelocity() returns the x velocity of the Ball
        +
        +
        Returns:
        +
        int X velocity
        +
        +
      • +
      + + + +
        +
      • +

        setXVelocity

        +
        public void setXVelocity(int dx)
        +
        setXVelocity sets the x velocity of the Ball
        +
        +
        Parameters:
        +
        dx - the x velocity of the Ball
        +
        +
      • +
      + + + +
        +
      • +

        setYVelocity

        +
        public void setYVelocity(int dy)
        +
        setYVelocity sets the y velocity of the Ball
        +
        +
        Parameters:
        +
        dy - the y velocity of the ball
        +
        +
      • +
      + + + +
        +
      • +

        getRandomColor

        +
        public java.awt.Color getRandomColor()
        +
        getRandomColor() returns a new color that was randomly generated
        +
        +
        Returns:
        +
        Color random color
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/DifficultyLevel.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/DifficultyLevel.html new file mode 100644 index 0000000..9de95b3 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/DifficultyLevel.html @@ -0,0 +1,576 @@ + + + + + +DifficultyLevel + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class DifficultyLevel

+
+
+ +
+
    +
  • +
    +
    +
    public class DifficultyLevel
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.gameplay.Difficultylevel is the class that holds the diffculty and other parameters associated with varying difficulty levels
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Millan Batra, Alex Ngo, Andrew Polk, Victoria Sneddon
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intballNum +
      How many balls there are in game
      +
      static intdiflevel +
      The game difficulty level
      +
      static intheight +
      New screen height
      +
      static intorigballsize +
      The original size of the ball
      +
      static intpaddleHeight +
      New paddle height
      +
      static intscreenfactor +
      The screen multiplier factor
      +
      static intspeed +
      New ball speed
      +
      static intwidth +
      New screen width
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DifficultyLevel(int difficultylevel) +
      edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel constructor to initialize difficulty of game onto the screen
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static intgetBallNum() +
      getBallNum() returns the number of balls int eh game
      +
      static intgetDifficulty() +
      getDifficulty() returns the current difficulty of the game
      +
      static intgetHeight() +
      getHeight() returns the screen height based on difficulty
      +
      static intgetPaddleHeight() +
      getPaddleHeight() returns the height height based on difficulty
      +
      static intgetScreenFactor() +
      getScreenFactor() returns the multiply factor of the screen size
      +
      static intgetSpeed() +
      getSpeed() returns the ball speed based on difficulty
      +
      static intgetWidth() +
      getWidth() returns the screen width based on difficulty
      +
      static voidsetBallNum(int ballNumber) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        diflevel

        +
        public static int diflevel
        +
        The game difficulty level
        +
      • +
      + + + +
        +
      • +

        screenfactor

        +
        public static int screenfactor
        +
        The screen multiplier factor
        +
      • +
      + + + +
        +
      • +

        width

        +
        public static int width
        +
        New screen width
        +
      • +
      + + + +
        +
      • +

        height

        +
        public static int height
        +
        New screen height
        +
      • +
      + + + +
        +
      • +

        origballsize

        +
        public static int origballsize
        +
        The original size of the ball
        +
      • +
      + + + +
        +
      • +

        paddleHeight

        +
        public static int paddleHeight
        +
        New paddle height
        +
      • +
      + + + +
        +
      • +

        speed

        +
        public static int speed
        +
        New ball speed
        +
      • +
      + + + +
        +
      • +

        ballNum

        +
        public static int ballNum
        +
        How many balls there are in game
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DifficultyLevel

        +
        public DifficultyLevel(int difficultylevel)
        +
        edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel constructor to initialize difficulty of game onto the screen
        +
        +
        Parameters:
        +
        difficultylevel - set game difficulty
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getDifficulty

        +
        public static int getDifficulty()
        +
        getDifficulty() returns the current difficulty of the game
        +
        +
        Returns:
        +
        int Difficulty level in int form
        +
        +
      • +
      + + + +
        +
      • +

        getHeight

        +
        public static int getHeight()
        +
        getHeight() returns the screen height based on difficulty
        +
        +
        Returns:
        +
        int The Height of the Game window
        +
        +
      • +
      + + + +
        +
      • +

        getWidth

        +
        public static int getWidth()
        +
        getWidth() returns the screen width based on difficulty
        +
        +
        Returns:
        +
        int The width of the Game window
        +
        +
      • +
      + + + +
        +
      • +

        getScreenFactor

        +
        public static int getScreenFactor()
        +
        getScreenFactor() returns the multiply factor of the screen size
        +
        +
        Returns:
        +
        int The multiply factor of the screen
        +
        +
      • +
      + + + +
        +
      • +

        getPaddleHeight

        +
        public static int getPaddleHeight()
        +
        getPaddleHeight() returns the height height based on difficulty
        +
        +
        Returns:
        +
        int The Paddle heights to be used
        +
        +
      • +
      + + + +
        +
      • +

        getSpeed

        +
        public static int getSpeed()
        +
        getSpeed() returns the ball speed based on difficulty
        +
        +
        Returns:
        +
        int The speed of the Ball
        +
        +
      • +
      + + + +
        +
      • +

        getBallNum

        +
        public static int getBallNum()
        +
        getBallNum() returns the number of balls int eh game
        +
        +
        Returns:
        +
        int number of balls
        +
        +
      • +
      + + + +
        +
      • +

        setBallNum

        +
        public static void setBallNum(int ballNumber)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/EndOfGame.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/EndOfGame.html new file mode 100644 index 0000000..638ec94 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/EndOfGame.html @@ -0,0 +1,365 @@ + + + + + +EndOfGame + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class EndOfGame

+
+
+ +
+
    +
  • +
    +
    +
    public class EndOfGame
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame + + EndOfGame provides details for reading and writing the current list of PlayerScores + If a new Highscore is encountered, it will write this to the CSV file of highscores.
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Vincent Gandolfo, Krishna Lingampalli, Angel Ortega, Victoria Sneddon, Andrew Polk
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.util.ArrayList<HighScore>hList +
      Create ArrayList to store high scores and names
      +
      HighScorewinner +
      winner holds Highscore object
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      EndOfGame(int score, + java.lang.String name) +
      Constructor that identifies the winner, and writes and saves their name * and score to a file
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidreadTheFile() +
      readTheFile() reads the High Scores file
      +
      voidsaveToFile() +
      saveToFile() saves new file
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        hList

        +
        public java.util.ArrayList<HighScore> hList
        +
        Create ArrayList to store high scores and names
        +
      • +
      + + + +
        +
      • +

        winner

        +
        public HighScore winner
        +
        winner holds Highscore object
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EndOfGame

        +
        public EndOfGame(int score,
        +                 java.lang.String name)
        +
        Constructor that identifies the winner, and writes and saves their name * and score to a file
        +
        +
        Parameters:
        +
        score - score of the player who just won
        +
        name - name of the player who just won
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        readTheFile

        +
        public void readTheFile()
        +
        readTheFile() reads the High Scores file
        +
      • +
      + + + +
        +
      • +

        saveToFile

        +
        public void saveToFile()
        +
        saveToFile() saves new file
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/GameOver.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/GameOver.html new file mode 100644 index 0000000..bb5ed39 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/GameOver.html @@ -0,0 +1,307 @@ + + + + + +GameOver + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class GameOver

+
+
+ +
+
    +
  • +
    +
    +
    public class GameOver
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.gameplay.GameOver is the class that gives instructions on what to do when the game ends
    +
    +
    Version:
    +
    CS56, Winter 2015, UCSB
    +
    Author:
    +
    Vincent Gandolfo, Krishna Lingampalli
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GameOver(java.lang.String winner, + int points) +
      Constructor that initializes the winner's name and the number of points the winner got and sends it to the high score list.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddLabels() +
      addLabels() adds labels for entering winner name
      +
      voidsetUpFrame() +
      setUpFrame() sets up a frame structure for Game Over Screen
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GameOver

        +
        public GameOver(java.lang.String winner,
        +                int points)
        +
        Constructor that initializes the winner's name and the number of points the winner got and sends it to the high score list. It also sets up a frame with labels.
        +
        +
        Parameters:
        +
        winner - the name of the winner of the game
        +
        points - the number of points the winner scored
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setUpFrame

        +
        public void setUpFrame()
        +
        setUpFrame() sets up a frame structure for Game Over Screen
        +
      • +
      + + + +
        +
      • +

        addLabels

        +
        public void addLabels()
        +
        addLabels() adds labels for entering winner name
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Paddle.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Paddle.html new file mode 100644 index 0000000..922cff6 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Paddle.html @@ -0,0 +1,965 @@ + + + + + +Paddle + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class Paddle

+
+
+ +
+
    +
  • +
    +
    +
    public class Paddle
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.gameplay.Paddle is the class that is used to move the user-controlled paddle around the screen
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Timothy Fok, Sanchit Gupta, Bhanu Khanijau, Jake Dumont, Heneli Kailahi, Benjamin Hartl, Sarah Darwiche, Vincent Gandolfo, Krishna Lingampalli, Andrew Polk, Victoria Sneddon
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intballCount +
      Holds the number of ballsLeft
      +
      java.awt.Colorcolor +
      Holds the color of the gameObject
      +
      intpoints +
      Number of points a player has
      +
      java.awt.Rectanglerectangle +
      Holds x and y coordinates and width and height
      +
      booleanright +
      If this is the right side paddle
      +
      intxVelocity +
      Gameobject horizontal speed (x)
      +
      intyVelocity +
      Gameobject vertival speed (y)
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Paddle(int x, + int y, + int rectH, + int ballNumber) +
      Paddle contructor to initialize intial x,y placement of paddle
      +
      Paddle(int x, + int y, + int rectH, + int ballNumber, + boolean sideRight) +
      Right paddle constructor to initialize initial x,y placement of paddle
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiddecrementBalls() +
      decrementBalls() decrements ballCount when a player loses a life
      +
      voiddraw(java.awt.Graphics g) +
      the draw function gets a new random color to draw the paddle and then redraws it
      +
      voiddraw2(java.awt.Graphics g) +
      the draw2 function runs when ExtremeType2 is being played
      +
      intgetHeight() +
      getHeight() returns the height of the Paddle
      +
      intgetPaddleBotHit() +
      getPaddleBotHit(): Actually is the top of screen
      +
      intgetPaddleTopHit() +
      getPaddleTopHit(): Actually is the bottom of screen
      +
      intgetPoints() +
      getPoints() returns the score of the player
      +
      java.awt.ColorgetRandomColor() +
      getRandomColor() returns a new color that was randomly generated
      +
      intgetWidth() +
      getWidth() returns the width of the Paddle
      +
      intgetXCoordinate() +
      getXCoordinate() returns the x coordinate of the Paddle
      +
      intgetXVelocity() +
      getXVelocity() returns the x velocity of the Ball
      +
      intgetYCoordinate() +
      getYCoordinate() returns the y coordinate of the Paddle
      +
      intgetYVelocity() +
      getYVelocity() returns the y velocity of the Ball
      +
      voidincrementPoints(int numOfPoints) +
      incrementPoints adds the number of hits to the user's score
      +
      booleanisPaddleMoving() +
      isPaddleMoving() return is the paddle is moving or not
      +
      voidkeyPressed(java.awt.event.KeyEvent evt) +
      keyPressed controls the movement up and down for the paddle
      +
      voidkeyReleased(java.awt.event.KeyEvent evt) +
      keyReleased stops the movement of the paddle when any key is released
      +
      voidmovePaddle() +
      movePaddle() gets activated when up or down key is pressed then sets the new coordinates for the paddle to be drawn
      +
      voidplayerMissed(Ball ball, + int numOfPoints, + Paddle winner) +
      playerMissed() occurs when the ball hits the wall behind the paddle.
      +
      voidsetColor(java.awt.Color newColor) +
      set the color of gameobject
      +
      voidsetHeight(int h) +
      setHeight sets the height of the Paddle
      +
      voidsetWidth(int w) +
      setWidth sets the width of the Paddle
      +
      voidsetXCoordinate(int x) +
      setXCoordinate sets the x coordinate of the Paddle
      +
      voidsetXVelocity(int dx) +
      setXVelocity sets the x velocity of the Ball
      +
      voidsetYCoordinate(int y) +
      setYCoordinate sets the y coordinate of the Paddle
      +
      voidsetYVelocity(int dy) +
      setYVelocity sets the y velocity of the Ball
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        points

        +
        public int points
        +
        Number of points a player has
        +
      • +
      + + + +
        +
      • +

        ballCount

        +
        public int ballCount
        +
        Holds the number of ballsLeft
        +
      • +
      + + + +
        +
      • +

        right

        +
        public boolean right
        +
        If this is the right side paddle
        +
      • +
      + + + +
        +
      • +

        xVelocity

        +
        public int xVelocity
        +
        Gameobject horizontal speed (x)
        +
      • +
      + + + +
        +
      • +

        yVelocity

        +
        public int yVelocity
        +
        Gameobject vertival speed (y)
        +
      • +
      + + + +
        +
      • +

        rectangle

        +
        public java.awt.Rectangle rectangle
        +
        Holds x and y coordinates and width and height
        +
      • +
      + + + +
        +
      • +

        color

        +
        public java.awt.Color color
        +
        Holds the color of the gameObject
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Paddle

        +
        public Paddle(int x,
        +              int y,
        +              int rectH,
        +              int ballNumber)
        +
        Paddle contructor to initialize intial x,y placement of paddle
        +
        +
        Parameters:
        +
        x - set initial x coordinate of paddle
        +
        y - set initial y coordinate of paddle
        +
        rectH - paddle height
        +
        ballNumber - number of balls to be used in game
        +
        +
      • +
      + + + +
        +
      • +

        Paddle

        +
        public Paddle(int x,
        +              int y,
        +              int rectH,
        +              int ballNumber,
        +              boolean sideRight)
        +
        Right paddle constructor to initialize initial x,y placement of paddle
        +
        +
        Parameters:
        +
        x - set initial x position of the paddle
        +
        y - set initial y position of the paddle
        +
        rectH - paddle height
        +
        ballNumber - need three times the number of ball in play to win
        +
        sideRight - sees if the paddle is the rightmost paddle
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        keyPressed

        +
        public void keyPressed(java.awt.event.KeyEvent evt)
        +
        keyPressed controls the movement up and down for the paddle
        +
        +
        Parameters:
        +
        evt - Event for a key press
        +
        +
      • +
      + + + +
        +
      • +

        keyReleased

        +
        public void keyReleased(java.awt.event.KeyEvent evt)
        +
        keyReleased stops the movement of the paddle when any key is released
        +
        +
        Parameters:
        +
        evt - The event of a key press
        +
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public void draw(java.awt.Graphics g)
        +
        the draw function gets a new random color to draw the paddle and then redraws it
        +
        +
        Parameters:
        +
        g - Graphics object for drawing
        +
        +
      • +
      + + + +
        +
      • +

        draw2

        +
        public void draw2(java.awt.Graphics g)
        +
        the draw2 function runs when ExtremeType2 is being played
        +
        +
        Parameters:
        +
        g - Graphics object for drawing
        +
        +
      • +
      + + + +
        +
      • +

        getPaddleTopHit

        +
        public int getPaddleTopHit()
        +
        getPaddleTopHit(): Actually is the bottom of screen
        +
        +
        Returns:
        +
        int location paddle should stop moving
        +
        +
      • +
      + + + +
        +
      • +

        getPaddleBotHit

        +
        public int getPaddleBotHit()
        +
        getPaddleBotHit(): Actually is the top of screen
        +
        +
        Returns:
        +
        int location paddle should stop moving
        +
        +
      • +
      + + + +
        +
      • +

        decrementBalls

        +
        public void decrementBalls()
        +
        decrementBalls() decrements ballCount when a player loses a life
        +
      • +
      + + + +
        +
      • +

        incrementPoints

        +
        public void incrementPoints(int numOfPoints)
        +
        incrementPoints adds the number of hits to the user's score
        +
        +
        Parameters:
        +
        numOfPoints - number of points to add to score
        +
        +
      • +
      + + + +
        +
      • +

        getPoints

        +
        public int getPoints()
        +
        getPoints() returns the score of the player
        +
        +
        Returns:
        +
        int Points of player
        +
        +
      • +
      + + + +
        +
      • +

        playerMissed

        +
        public void playerMissed(Ball ball,
        +                         int numOfPoints,
        +                         Paddle winner)
        +
        playerMissed() occurs when the ball hits the wall behind the paddle. It resets the ball to the middle of the screen, stops it and switches the velocity to go the opposite way
        +
        +
        Parameters:
        +
        ball - the ball in the game
        +
        numOfPoints - number of points to add to the score
        +
        winner - the paddle that just won the points
        +
        +
      • +
      + + + +
        +
      • +

        movePaddle

        +
        public void movePaddle()
        +
        movePaddle() gets activated when up or down key is pressed then sets the new coordinates for the paddle to be drawn
        +
      • +
      + + + +
        +
      • +

        isPaddleMoving

        +
        public boolean isPaddleMoving()
        +
        isPaddleMoving() return is the paddle is moving or not
        +
        +
        Returns:
        +
        boolean if paddle is moving
        +
        +
      • +
      + + + +
        +
      • +

        getXCoordinate

        +
        public int getXCoordinate()
        +
        getXCoordinate() returns the x coordinate of the Paddle
        +
        +
        Returns:
        +
        int X coordinte
        +
        +
      • +
      + + + +
        +
      • +

        setXCoordinate

        +
        public void setXCoordinate(int x)
        +
        setXCoordinate sets the x coordinate of the Paddle
        +
        +
        Parameters:
        +
        x - x coordinate of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        setColor

        +
        public void setColor(java.awt.Color newColor)
        +
        set the color of gameobject
        +
        +
        Parameters:
        +
        newColor - new color object
        +
        +
      • +
      + + + +
        +
      • +

        getYCoordinate

        +
        public int getYCoordinate()
        +
        getYCoordinate() returns the y coordinate of the Paddle
        +
        +
        Returns:
        +
        int y coordinate
        +
        +
      • +
      + + + +
        +
      • +

        setYCoordinate

        +
        public void setYCoordinate(int y)
        +
        setYCoordinate sets the y coordinate of the Paddle
        +
        +
        Parameters:
        +
        y - y coordinate of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        getWidth

        +
        public int getWidth()
        +
        getWidth() returns the width of the Paddle
        +
        +
        Returns:
        +
        int the gameobject width
        +
        +
      • +
      + + + +
        +
      • +

        setWidth

        +
        public void setWidth(int w)
        +
        setWidth sets the width of the Paddle
        +
        +
        Parameters:
        +
        w - width of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        getHeight

        +
        public int getHeight()
        +
        getHeight() returns the height of the Paddle
        +
        +
        Returns:
        +
        int gameobject height
        +
        +
      • +
      + + + +
        +
      • +

        setHeight

        +
        public void setHeight(int h)
        +
        setHeight sets the height of the Paddle
        +
        +
        Parameters:
        +
        h - height of the Paddle
        +
        +
      • +
      + + + +
        +
      • +

        getXVelocity

        +
        public int getXVelocity()
        +
        getXVelocity() returns the x velocity of the Ball
        +
        +
        Returns:
        +
        int X velocity
        +
        +
      • +
      + + + +
        +
      • +

        setXVelocity

        +
        public void setXVelocity(int dx)
        +
        setXVelocity sets the x velocity of the Ball
        +
        +
        Parameters:
        +
        dx - the x velocity of the Ball
        +
        +
      • +
      + + + +
        +
      • +

        getYVelocity

        +
        public int getYVelocity()
        +
        getYVelocity() returns the y velocity of the Ball
        +
        +
        Returns:
        +
        int y velocity
        +
        +
      • +
      + + + +
        +
      • +

        setYVelocity

        +
        public void setYVelocity(int dy)
        +
        setYVelocity sets the y velocity of the Ball
        +
        +
        Parameters:
        +
        dy - the y velocity of the ball
        +
        +
      • +
      + + + +
        +
      • +

        getRandomColor

        +
        public java.awt.Color getRandomColor()
        +
        getRandomColor() returns a new color that was randomly generated
        +
        +
        Returns:
        +
        Color random color
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Pong.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Pong.html new file mode 100644 index 0000000..a9773c9 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Pong.html @@ -0,0 +1,627 @@ + + + + + +Pong + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class Pong

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class Pong
    +extends java.lang.Object
    +implements java.lang.Runnable
    +
    edu.ucsb.cs56.projects.games.pong.gameplay.Pong is the class that will facilitate + the game of Pong being run
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Sanchit Gupta, Bhanu Khanijau, Heneli Kailahi, Jake Dumont, Benjamin Hartl, Sarah Darwiche, Vincent Gandolfo, Krishna Lingampalli, Angel Ortega, Millan Batra and Alexander Ngo, Andrew Polk, Victoria Sneddon
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static booleanisPaused +
      isPaused pauses the game if = true
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Pong() +
      The Pong constructor initializes 2 paddle objects, a ball object, and points value
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleancheckBallStopped() +
      checkBallsStopped() checks if all the balls in play are stopped
      +
      voidcheckGameStatus() +
      checkGameStatus() checks each time a ball is lost if they have any lives left
      +
      voidgameLoss(Paddle p) +
      gameLoss brings up a frame to enter the user's name
      +
      intgetHits() +
      getHits() returns the number of times the ball hits any paddle
      +
      static PaddlegetPlayer1() +
      Returns gameobject for player1
      +
      static PaddlegetPlayer2() +
      Returns gameobject for player2
      +
      PaddlegetWinner() +
      getWinner() returns the paddle that just won the points
      +
      voidhitsReset() +
      hitsReset() sets hits to 0 when a paddle misses a ball
      +
      voidincrementHits() +
      incrementHits() increments the number of hits when it hits a paddle
      +
      voidkill() +
      kill() stops the thread
      +
      voidmoveGame() +
      moveGame() allows the ball and paddles in the game to be moved
      +
      voidpaddleCollision() +
      paddleCollision() detects whether ball hits a paddle
      +
      protected voidplayPaddleCollisionAudio() +
      Load collision file for paddles and play collision afterwards + Credit for audio file goes to NoiseCollector @: http://www.freesound.org/people/NoiseCollector/packs/254/
      +
      voidrun() +
      run() checks the movements every 15 milliseconds
      +
      voidsetWinner(Paddle a) +
      setWinner takes a Paddle object as a parameter, then sets + the winner to that Paddle argument
      +
      java.lang.StringtoString() +
      toString() returns which player has won in a string
      +
      voidwallCollision() +
      wallCollision() detects whether the ball hits a wall
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        isPaused

        +
        public static boolean isPaused
        +
        isPaused pauses the game if = true
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Pong

        +
        public Pong()
        +
        The Pong constructor initializes 2 paddle objects, a ball object, and points value
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHits

        +
        public int getHits()
        +
        getHits() returns the number of times the ball hits any paddle
        +
        +
        Returns:
        +
        int hits
        +
        +
      • +
      + + + +
        +
      • +

        incrementHits

        +
        public void incrementHits()
        +
        incrementHits() increments the number of hits when it hits a paddle
        +
      • +
      + + + +
        +
      • +

        hitsReset

        +
        public void hitsReset()
        +
        hitsReset() sets hits to 0 when a paddle misses a ball
        +
      • +
      + + + +
        +
      • +

        getWinner

        +
        public Paddle getWinner()
        +
        getWinner() returns the paddle that just won the points
        +
        +
        Returns:
        +
        Paddle The object for the winner player
        +
        +
      • +
      + + + +
        +
      • +

        setWinner

        +
        public void setWinner(Paddle a)
        +
        setWinner takes a Paddle object as a parameter, then sets + the winner to that Paddle argument
        +
        +
        Parameters:
        +
        a - the Paddle that just won
        +
        +
      • +
      + + + +
        +
      • +

        getPlayer1

        +
        public static Paddle getPlayer1()
        +
        Returns gameobject for player1
        +
        +
        Returns:
        +
        Paddle player1
        +
        +
      • +
      + + + +
        +
      • +

        getPlayer2

        +
        public static Paddle getPlayer2()
        +
        Returns gameobject for player2
        +
        +
        Returns:
        +
        Paddle player2
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        toString() returns which player has won in a string
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        Returns:
        +
        String toString Method
        +
        +
      • +
      + + + +
        +
      • +

        checkGameStatus

        +
        public void checkGameStatus()
        +
        checkGameStatus() checks each time a ball is lost if they have any lives left
        +
      • +
      + + + +
        +
      • +

        checkBallStopped

        +
        public boolean checkBallStopped()
        +
        checkBallsStopped() checks if all the balls in play are stopped
        +
        +
        Returns:
        +
        boolean return 1 if all balls are stopped
        +
        +
      • +
      + + + +
        +
      • +

        gameLoss

        +
        public void gameLoss(Paddle p)
        +
        gameLoss brings up a frame to enter the user's name
        +
        +
        Parameters:
        +
        p - Not Used
        +
        +
      • +
      + + + +
        +
      • +

        moveGame

        +
        public void moveGame()
        +
        moveGame() allows the ball and paddles in the game to be moved
        +
      • +
      + + + +
        +
      • +

        paddleCollision

        +
        public void paddleCollision()
        +
        paddleCollision() detects whether ball hits a paddle
        +
      • +
      + + + +
        +
      • +

        playPaddleCollisionAudio

        +
        protected void playPaddleCollisionAudio()
        +
        Load collision file for paddles and play collision afterwards + Credit for audio file goes to NoiseCollector @: http://www.freesound.org/people/NoiseCollector/packs/254/
        +
      • +
      + + + +
        +
      • +

        wallCollision

        +
        public void wallCollision()
        +
        wallCollision() detects whether the ball hits a wall
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        run() checks the movements every 15 milliseconds
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      + + + +
        +
      • +

        kill

        +
        public void kill()
        +
        kill() stops the thread
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.html new file mode 100644 index 0000000..f4e81f8 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.html @@ -0,0 +1,446 @@ + + + + + +Screen + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class Screen

+
+
+ +
+
    +
  • +
    +
    +
    public class Screen
    +extends java.lang.Object
    +
    Screen is the GUI implementation of the Pong game
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Timothy Fok, Bhanu Khanijau, Sanchit Gupta, Jake Dumont, Heneli Kailahi, Benjamin Hartl, Sarah Darwiche, Vincent Gandolfo, Krishna Lingampalli, Victoria Sneddon, Andrew Polk
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      class Screen.myKeyAdapter +
      myKeyAdapter handles up and down keys for movement of paddle.
      +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.awt.GraphicsdoublebufferG +
      Graphics object
      +
      java.awt.ImagedoublebufferImg +
      Image object
      +
      Ponggame +
      holds new Pong object
      +
      static javax.swing.JFramejf +
      holds JFrame object
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Screen(int windowWidth, + int windowHeight) +
      Screen Constructor and mouseEntered function to unpause game
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.util.ArrayList<java.lang.Double>distanceCalc(int i) +
      calculates distance and returns it in arrayList
      +
      voidsetScreenSize(int width, + int height) +
      setScreenSize sets the size of the screen
      +
      static voidsetWindowVisibility(boolean visibility) +
      sets window open or closed
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        jf

        +
        public static javax.swing.JFrame jf
        +
        holds JFrame object
        +
      • +
      + + + +
        +
      • +

        game

        +
        public Pong game
        +
        holds new Pong object
        +
      • +
      + + + +
        +
      • +

        doublebufferG

        +
        public java.awt.Graphics doublebufferG
        +
        Graphics object
        +
      • +
      + + + +
        +
      • +

        doublebufferImg

        +
        public java.awt.Image doublebufferImg
        +
        Image object
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Screen

        +
        public Screen(int windowWidth,
        +              int windowHeight)
        +
        Screen Constructor and mouseEntered function to unpause game
        +
        +
        Parameters:
        +
        windowWidth - width of the JFrame window
        +
        windowHeight - height of the JFrame window
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setWindowVisibility

        +
        public static void setWindowVisibility(boolean visibility)
        +
        sets window open or closed
        +
        +
        Parameters:
        +
        visibility - boolean if window is visible or not
        +
        +
      • +
      + + + +
        +
      • +

        setScreenSize

        +
        public void setScreenSize(int width,
        +                          int height)
        +
        setScreenSize sets the size of the screen
        +
        +
        Parameters:
        +
        width - width of the screen
        +
        height - height of the screen
        +
        +
      • +
      + + + +
        +
      • +

        distanceCalc

        +
        public java.util.ArrayList<java.lang.Double> distanceCalc(int i)
        +
        calculates distance and returns it in arrayList
        +
        +
        Returns:
        +
        ArrayList list of distances
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.myKeyAdapter.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.myKeyAdapter.html new file mode 100644 index 0000000..74e7384 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/Screen.myKeyAdapter.html @@ -0,0 +1,327 @@ + + + + + +Screen.myKeyAdapter + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.gameplay
+

Class Screen.myKeyAdapter

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.event.KeyListener, java.util.EventListener
    +
    +
    +
    Enclosing class:
    +
    Screen
    +
    +
    +
    +
    public class Screen.myKeyAdapter
    +extends java.awt.event.KeyAdapter
    +
    myKeyAdapter handles up and down keys for movement of paddle.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      myKeyAdapter() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidkeyPressed(java.awt.event.KeyEvent evt) +
      keyPressed checks if certain keys are pressed
      +
      voidkeyReleased(java.awt.event.KeyEvent evt) +
      keyReleased checks if certain keys are released
      +
      +
        +
      • + + +

        Methods inherited from class java.awt.event.KeyAdapter

        +keyTyped
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        myKeyAdapter

        +
        public myKeyAdapter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        keyPressed

        +
        public void keyPressed(java.awt.event.KeyEvent evt)
        +
        keyPressed checks if certain keys are pressed
        +
        +
        Specified by:
        +
        keyPressed in interface java.awt.event.KeyListener
        +
        Overrides:
        +
        keyPressed in class java.awt.event.KeyAdapter
        +
        Parameters:
        +
        evt - the KeyEvent
        +
        +
      • +
      + + + +
        +
      • +

        keyReleased

        +
        public void keyReleased(java.awt.event.KeyEvent evt)
        +
        keyReleased checks if certain keys are released
        +
        +
        Specified by:
        +
        keyReleased in interface java.awt.event.KeyListener
        +
        Overrides:
        +
        keyReleased in class java.awt.event.KeyAdapter
        +
        Parameters:
        +
        evt - the KeyEvent
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Ball.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Ball.html new file mode 100644 index 0000000..880c271 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Ball.html @@ -0,0 +1,168 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.Ball + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.Ball

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/DifficultyLevel.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/DifficultyLevel.html new file mode 100644 index 0000000..df1b05d --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/DifficultyLevel.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel

+
+
No usage of edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/EndOfGame.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/EndOfGame.html new file mode 100644 index 0000000..e8d0f4e --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/EndOfGame.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame

+
+
No usage of edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/GameOver.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/GameOver.html new file mode 100644 index 0000000..ececcb7 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/GameOver.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.GameOver + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.GameOver

+
+
No usage of edu.ucsb.cs56.projects.games.pong.gameplay.GameOver
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Paddle.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Paddle.html new file mode 100644 index 0000000..a49f60f --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Paddle.html @@ -0,0 +1,208 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.Paddle

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Pong.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Pong.html new file mode 100644 index 0000000..dcb4f64 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Pong.html @@ -0,0 +1,166 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.Pong + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.Pong

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.html new file mode 100644 index 0000000..7660365 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.Screen + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.Screen

+
+
No usage of edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.myKeyAdapter.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.myKeyAdapter.html new file mode 100644 index 0000000..1981f46 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/class-use/Screen.myKeyAdapter.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.gameplay.Screen.myKeyAdapter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.gameplay.Screen.myKeyAdapter

+
+
No usage of edu.ucsb.cs56.projects.games.pong.gameplay.Screen.myKeyAdapter
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-frame.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-frame.html new file mode 100644 index 0000000..8446727 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-frame.html @@ -0,0 +1,26 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.gameplay + + + + + +

edu.ucsb.cs56.projects.games.pong.gameplay

+
+

Classes

+ +
+ + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-summary.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-summary.html new file mode 100644 index 0000000..572744c --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-summary.html @@ -0,0 +1,184 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.gameplay + + + + + + + + +
+ + + + + + + +
+ + +
+

Package edu.ucsb.cs56.projects.games.pong.gameplay

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-tree.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-tree.html new file mode 100644 index 0000000..39f00c2 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-tree.html @@ -0,0 +1,148 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.gameplay Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package edu.ucsb.cs56.projects.games.pong.gameplay

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-use.html b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-use.html new file mode 100644 index 0000000..733bc02 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/gameplay/package-use.html @@ -0,0 +1,170 @@ + + + + + +Uses of Package edu.ucsb.cs56.projects.games.pong.gameplay + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
edu.ucsb.cs56.projects.games.pong.gameplay

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/DisplayHighScores.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/DisplayHighScores.html new file mode 100644 index 0000000..7f4e762 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/DisplayHighScores.html @@ -0,0 +1,323 @@ + + + + + +DisplayHighScores + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.highscore
+

Class DisplayHighScores

+
+
+ +
+
    +
  • +
    +
    +
    public class DisplayHighScores
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.DisplayHighScores is the class that shows the high scorecs of previous players
    +
    +
    Version:
    +
    CS56, Winter 2015, UCSB
    +
    Author:
    +
    Vincent Gandolfo, Krishna Lingampalli
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DisplayHighScores(java.lang.String name, + int score) +
      Contructor that calls for the end of the game, then displays high scores
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidsetUpFrame() +
      setUpFrame() sets up the frame structure for High Score Window
      +
      voidsetUpFrameComponents() +
      setUpFrameComponents() sets up the components for the JPanel
      +
      voidshowScores() +
      showScores() prints scores on labels
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DisplayHighScores

        +
        public DisplayHighScores(java.lang.String name,
        +                         int score)
        +
        Contructor that calls for the end of the game, then displays high scores
        +
        +
        Parameters:
        +
        name - name of the player who just won
        +
        score - score of the player who just won
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setUpFrame

        +
        public void setUpFrame()
        +
        setUpFrame() sets up the frame structure for High Score Window
        +
      • +
      + + + +
        +
      • +

        setUpFrameComponents

        +
        public void setUpFrameComponents()
        +
        setUpFrameComponents() sets up the components for the JPanel
        +
      • +
      + + + +
        +
      • +

        showScores

        +
        public void showScores()
        +
        showScores() prints scores on labels
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/HighScore.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/HighScore.html new file mode 100644 index 0000000..51b30ba --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/HighScore.html @@ -0,0 +1,369 @@ + + + + + +HighScore + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.highscore
+

Class HighScore

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Comparable
    +
    +
    +
    +
    public class HighScore
    +extends java.lang.Object
    +implements java.lang.Comparable
    +
    edu.ucsb.cs56.projects.games.pong.HighScore is the class that turns the winner's name and score into a string
    +
    +
    Version:
    +
    CS56, Winter 2015, UCSB
    +
    Author:
    +
    Vincent Gandolfo, Krishna Lingampalli
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      HighScore(int score, + java.lang.String name) +
      Constructor that sets the instance variables playerName and playerScore * to the arguments name and score
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intcompareTo(java.lang.Object o) +
      Highest playerScore is given priority.
      +
      java.lang.StringgetPlayerName() +
      getPlayerName() returns the name of the player who just won
      +
      intgetPlayerScore() +
      getPlayerScore() returns the score of the player who won
      +
      java.lang.StringtoString(java.lang.String first, + java.lang.String last) +
      toString() returns a combination of the player's score and name in a single string
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HighScore

        +
        public HighScore(int score,
        +                 java.lang.String name)
        +
        Constructor that sets the instance variables playerName and playerScore * to the arguments name and score
        +
        +
        Parameters:
        +
        score - the score of the player won just won
        +
        name - the name of the player who just won
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPlayerScore

        +
        public int getPlayerScore()
        +
        getPlayerScore() returns the score of the player who won
        +
        +
        Returns:
        +
        int player score
        +
        +
      • +
      + + + +
        +
      • +

        getPlayerName

        +
        public java.lang.String getPlayerName()
        +
        getPlayerName() returns the name of the player who just won
        +
        +
        Returns:
        +
        String player name
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString(java.lang.String first,
        +                                 java.lang.String last)
        +
        toString() returns a combination of the player's score and name in a single string
        +
        +
        Parameters:
        +
        first - first
        +
        last - last
        +
        Returns:
        +
        String toString method
        +
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(java.lang.Object o)
        +
        Highest playerScore is given priority.
        +
        +
        Specified by:
        +
        compareTo in interface java.lang.Comparable
        +
        Parameters:
        +
        o - object
        +
        Returns:
        +
        int compared
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/DisplayHighScores.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/DisplayHighScores.html new file mode 100644 index 0000000..cfe03c6 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/DisplayHighScores.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.highscore.DisplayHighScores + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.highscore.DisplayHighScores

+
+
No usage of edu.ucsb.cs56.projects.games.pong.highscore.DisplayHighScores
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/HighScore.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/HighScore.html new file mode 100644 index 0000000..14a4cb0 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/class-use/HighScore.html @@ -0,0 +1,181 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.highscore.HighScore + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.highscore.HighScore

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-frame.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-frame.html new file mode 100644 index 0000000..db4314c --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-frame.html @@ -0,0 +1,21 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.highscore + + + + + +

edu.ucsb.cs56.projects.games.pong.highscore

+
+

Classes

+ +
+ + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-summary.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-summary.html new file mode 100644 index 0000000..0c957d5 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-summary.html @@ -0,0 +1,150 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.highscore + + + + + + + + +
+ + + + + + + +
+ + +
+

Package edu.ucsb.cs56.projects.games.pong.highscore

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-tree.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-tree.html new file mode 100644 index 0000000..f70e811 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-tree.html @@ -0,0 +1,138 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.highscore Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package edu.ucsb.cs56.projects.games.pong.highscore

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-use.html b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-use.html new file mode 100644 index 0000000..62b239c --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/highscore/package-use.html @@ -0,0 +1,159 @@ + + + + + +Uses of Package edu.ucsb.cs56.projects.games.pong.highscore + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
edu.ucsb.cs56.projects.games.pong.highscore

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/ColorPrompt.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/ColorPrompt.html new file mode 100644 index 0000000..bcd2345 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/ColorPrompt.html @@ -0,0 +1,467 @@ + + + + + +ColorPrompt + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class ColorPrompt

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
    +
    +
    +
    +
    public class ColorPrompt
    +extends javax.swing.JPanel
    +
    edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt is the class that will allow players to select paddle colors
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Andrew Polk, Victoria Sneddon
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JPanel

        +javax.swing.JPanel.AccessibleJPanel
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ColorPrompt() +
      Constructor for the ColorPrompt class that takes no parameters
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.awt.ColorgetColorA() +
      getColorA() returns the color for player 1 or the left paddle
      +
      static java.awt.ColorgetColorB() +
      getColorB() return the color for player 2 or the right paddle
      +
      java.util.Map<java.lang.String,java.awt.Color>getHashmap() +
      getHashmap() returns a map of preset colors
      +
      booleanisSelected() +
      isSelected() returns if items have been selected
      +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JPanel

        +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ColorPrompt

        +
        public ColorPrompt()
        +
        Constructor for the ColorPrompt class that takes no parameters
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHashmap

        +
        public java.util.Map<java.lang.String,java.awt.Color> getHashmap()
        +
        getHashmap() returns a map of preset colors
        +
        +
        Returns:
        +
        Map map of colors
        +
        +
      • +
      + + + +
        +
      • +

        isSelected

        +
        public boolean isSelected()
        +
        isSelected() returns if items have been selected
        +
        +
        Returns:
        +
        boolean if selected
        +
        +
      • +
      + + + +
        +
      • +

        getColorA

        +
        public static java.awt.Color getColorA()
        +
        getColorA() returns the color for player 1 or the left paddle
        +
        +
        Returns:
        +
        Color color for A
        +
        +
      • +
      + + + +
        +
      • +

        getColorB

        +
        public static java.awt.Color getColorB()
        +
        getColorB() return the color for player 2 or the right paddle
        +
        +
        Returns:
        +
        Color color for B
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/CustomModePrompt.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/CustomModePrompt.html new file mode 100644 index 0000000..d06ffab --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/CustomModePrompt.html @@ -0,0 +1,466 @@ + + + + + +CustomModePrompt + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class CustomModePrompt

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
    +
    +
    +
    +
    public class CustomModePrompt
    +extends javax.swing.JPanel
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Andrew Polk, Victoria Sneddon
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JPanel

        +javax.swing.JPanel.AccessibleJPanel
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CustomModePrompt() +
      prompt user sees to select custom mode
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetBallNum() +
      getBallNum() returns ball number
      +
      intgetDifficulty() +
      getDifficulty() returns difficulty
      +
      java.util.Map<java.lang.String,java.lang.Integer>getHashmap() +
      Map that returns difficulties
      +
      booleanisSelected() +
      isSelected() returns if items have been selected
      +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JPanel

        +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CustomModePrompt

        +
        public CustomModePrompt()
        +
        prompt user sees to select custom mode
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHashmap

        +
        public java.util.Map<java.lang.String,java.lang.Integer> getHashmap()
        +
        Map that returns difficulties
        +
        +
        Returns:
        +
        Map
        +
        +
      • +
      + + + +
        +
      • +

        isSelected

        +
        public boolean isSelected()
        +
        isSelected() returns if items have been selected
        +
        +
        Returns:
        +
        boolean isSelected
        +
        +
      • +
      + + + +
        +
      • +

        getDifficulty

        +
        public int getDifficulty()
        +
        getDifficulty() returns difficulty
        +
        +
        Returns:
        +
        int getDifficulty
        +
        +
      • +
      + + + +
        +
      • +

        getBallNum

        +
        public int getBallNum()
        +
        getBallNum() returns ball number
        +
        +
        Returns:
        +
        int ball number
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/DifficultyLevelPrompt.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/DifficultyLevelPrompt.html new file mode 100644 index 0000000..6196df8 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/DifficultyLevelPrompt.html @@ -0,0 +1,446 @@ + + + + + +DifficultyLevelPrompt + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class DifficultyLevelPrompt

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
    +
    +
    +
    +
    public class DifficultyLevelPrompt
    +extends javax.swing.JPanel
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    angelortega on 2/22/16., Victoria Sneddon, Andrew Polk
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JPanel

        +javax.swing.JPanel.AccessibleJPanel
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DifficultyLevelPrompt() +
      prompt user sees to select difficulty
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetDifficulty() +
      getDifficulty() returns difficulty
      +
      java.util.Map<java.lang.String,java.lang.Integer>getHashmap() +
      Map that returns difficulties
      +
      booleanisSelected() +
      isSelected() returns if items have been selected
      +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JPanel

        +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DifficultyLevelPrompt

        +
        public DifficultyLevelPrompt()
        +
        prompt user sees to select difficulty
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHashmap

        +
        public java.util.Map<java.lang.String,java.lang.Integer> getHashmap()
        +
        Map that returns difficulties
        +
        +
        Returns:
        +
        Map
        +
        +
      • +
      + + + +
        +
      • +

        isSelected

        +
        public boolean isSelected()
        +
        isSelected() returns if items have been selected
        +
        +
        Returns:
        +
        boolean isSelected
        +
        +
      • +
      + + + +
        +
      • +

        getDifficulty

        +
        public int getDifficulty()
        +
        getDifficulty() returns difficulty
        +
        +
        Returns:
        +
        int getDifficulty
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/HighScoreTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/HighScoreTextComponent.html new file mode 100644 index 0000000..71a890d --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/HighScoreTextComponent.html @@ -0,0 +1,466 @@ + + + + + +HighScoreTextComponent + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class HighScoreTextComponent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
    +
    +
    +
    +
    public class HighScoreTextComponent
    +extends MenuTextComponent
    +
    edu.ucsb.cs56.projects.games.pong.menu.HighSchoreTextComponent is the class that will show the high scores won on pong
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    angelortega on 2/22/16., Victoria Sneddon, Andrew Polk
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      HighScoreTextComponent(java.lang.String title, + java.awt.Color backgroundColor) +
      calls constructor of superclass MenuTextComponent
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidmouseClicked(java.awt.event.MouseEvent mouseEvent) +
      plays audio, if text color is blue, creates new DisplayHighScores called displayhs
      +
      voidmousePressed(java.awt.event.MouseEvent mouseEvent) +
      Overriden mousePressed has no body code
      +
      voidmouseReleased(java.awt.event.MouseEvent mouseEvent) +
      Overriden mouseReleased has no body code
      +
      + + +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HighScoreTextComponent

        +
        public HighScoreTextComponent(java.lang.String title,
        +                              java.awt.Color backgroundColor)
        +
        calls constructor of superclass MenuTextComponent
        +
        +
        Parameters:
        +
        title - of type String
        +
        backgroundColor - takes in set backgroundColor
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mouseClicked

        +
        public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
        +
        plays audio, if text color is blue, creates new DisplayHighScores called displayhs
        +
        +
        Parameters:
        +
        mouseEvent - insert object of type MouseEvent into mouseClicked
        +
        +
      • +
      + + + +
        +
      • +

        mousePressed

        +
        public void mousePressed(java.awt.event.MouseEvent mouseEvent)
        +
        Overriden mousePressed has no body code
        +
        +
        Parameters:
        +
        mouseEvent - parameter to mousePressed
        +
        +
      • +
      + + + +
        +
      • +

        mouseReleased

        +
        public void mouseReleased(java.awt.event.MouseEvent mouseEvent)
        +
        Overriden mouseReleased has no body code
        +
        +
        Parameters:
        +
        mouseEvent - parameter for mouseReleased
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/InstructionsTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/InstructionsTextComponent.html new file mode 100644 index 0000000..e743882 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/InstructionsTextComponent.html @@ -0,0 +1,489 @@ + + + + + +InstructionsTextComponent + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class InstructionsTextComponent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
    +
    +
    +
    +
    public class InstructionsTextComponent
    +extends MenuTextComponent
    +
    +
    Version:
    +
    Fall 2017
    +
    Author:
    +
    angelortega on 2/22/16., Victoria Sneddon, Andrew Polk
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      InstructionsTextComponent(java.lang.String title, + java.awt.Color backgroundColor) +
      creates a Text Component to the MenuTextComponent
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidmouseClicked(java.awt.event.MouseEvent mouseEvent) +
      plays audio, creates new instructions and makes visible
      +
      voidmouseExited(java.awt.event.MouseEvent mouseEvent) +
      Overridden mouseExited changes selection color
      +
      voidmousePressed(java.awt.event.MouseEvent mouseEvent) +
      Overriden mousePressed no body
      +
      voidmouseReleased(java.awt.event.MouseEvent mouseEvent) +
      Overridden mouseReleased has no body code
      +
      + + +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InstructionsTextComponent

        +
        public InstructionsTextComponent(java.lang.String title,
        +                                 java.awt.Color backgroundColor)
        +
        creates a Text Component to the MenuTextComponent
        +
        +
        Parameters:
        +
        title - of type String
        +
        backgroundColor - paramater for InstructionsTextComponent
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mouseClicked

        +
        public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
        +
        plays audio, creates new instructions and makes visible
        +
        +
        Parameters:
        +
        mouseEvent - checks if mouse is clicked
        +
        +
      • +
      + + + +
        +
      • +

        mousePressed

        +
        public void mousePressed(java.awt.event.MouseEvent mouseEvent)
        +
        Overriden mousePressed no body
        +
        +
        Parameters:
        +
        mouseEvent - checks if mousePressed
        +
        +
      • +
      + + + +
        +
      • +

        mouseReleased

        +
        public void mouseReleased(java.awt.event.MouseEvent mouseEvent)
        +
        Overridden mouseReleased has no body code
        +
        +
        Parameters:
        +
        mouseEvent - checks if mouseReleased
        +
        +
      • +
      + + + +
        +
      • +

        mouseExited

        +
        public void mouseExited(java.awt.event.MouseEvent mouseEvent)
        +
        Overridden mouseExited changes selection color
        +
        +
        Specified by:
        +
        mouseExited in interface java.awt.event.MouseListener
        +
        Overrides:
        +
        mouseExited in class MenuTextComponent
        +
        Parameters:
        +
        mouseEvent - checks if mouseExited
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuComponent.html new file mode 100644 index 0000000..ac69924 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuComponent.html @@ -0,0 +1,408 @@ + + + + + +MainMenuComponent + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class MainMenuComponent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
    +
    +
    +
    Direct Known Subclasses:
    +
    MenuPaddingComponent, MenuTextComponent
    +
    +
    +
    +
    public abstract class MainMenuComponent
    +extends javax.swing.JComponent
    +
    +
    Version:
    +
    Fall 2017
    +
    Author:
    +
    angel on 2/20/16., Victoria Sneddon, Andrew Polk
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MainMenuComponent() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.awt.DimensiongetDimension() +
      returns dimension
      +
      static voidsetDimension(java.awt.Dimension dmtion) +
      set dimention equal to dmtion
      +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MainMenuComponent

        +
        public MainMenuComponent()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setDimension

        +
        public static void setDimension(java.awt.Dimension dmtion)
        +
        set dimention equal to dmtion
        +
        +
        Parameters:
        +
        dmtion - sets Dimension
        +
        +
      • +
      + + + +
        +
      • +

        getDimension

        +
        public static java.awt.Dimension getDimension()
        +
        returns dimension
        +
        +
        Returns:
        +
        Dimension getDimension
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuUI.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuUI.html new file mode 100644 index 0000000..e4e4d3d --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/MainMenuUI.html @@ -0,0 +1,408 @@ + + + + + +MainMenuUI + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class MainMenuUI

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
    +
    +
    +
    +
    public class MainMenuUI
    +extends javax.swing.JPanel
    +
    sets width and height and creates a new Array List of MenuTextComponents called menuItems
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JPanel

        +javax.swing.JPanel.AccessibleJPanel
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected static intHEIGHT 
      protected static intWIDTH 
      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • +
      +
        +
      • + + +

        Fields inherited from interface java.awt.image.ImageObserver

        +ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MainMenuUI() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class javax.swing.JPanel

        +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/MenuPaddingComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/MenuPaddingComponent.html new file mode 100644 index 0000000..cf6eba9 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/MenuPaddingComponent.html @@ -0,0 +1,409 @@ + + + + + +MenuPaddingComponent + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class MenuPaddingComponent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
    +
    +
    +
    +
    public class MenuPaddingComponent
    +extends MainMenuComponent
    +
    +
    Version:
    +
    Fall 2017
    +
    Author:
    +
    angel on 2/20/16., Victoria, Sneddon
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MenuPaddingComponent(java.awt.Color backgroundColor, + int height, + int width) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidpaintComponent(java.awt.Graphics g) +
      creates actual image with Graphic g and sets color to backgroundColor and fills rectangle at location 0, 0 of given width and height
      +
      + +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MenuPaddingComponent

        +
        public MenuPaddingComponent(java.awt.Color backgroundColor,
        +                            int height,
        +                            int width)
        +
        +
        Parameters:
        +
        backgroundColor - chosen background color
        +
        height - inputted height
        +
        width - inputted width + sets the height and width and background color and saves the preferred size to be of Dimension width, height
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        paintComponent

        +
        public void paintComponent(java.awt.Graphics g)
        +
        creates actual image with Graphic g and sets color to backgroundColor and fills rectangle at location 0, 0 of given width and height
        +
        +
        Overrides:
        +
        paintComponent in class javax.swing.JComponent
        +
        Parameters:
        +
        g - for graphics
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/MenuTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/MenuTextComponent.html new file mode 100644 index 0000000..2e0e365 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/MenuTextComponent.html @@ -0,0 +1,561 @@ + + + + + +MenuTextComponent + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class MenuTextComponent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
    +
    +
    +
    Direct Known Subclasses:
    +
    HighScoreTextComponent, InstructionsTextComponent, PlayTextComponent
    +
    +
    +
    +
    public abstract class MenuTextComponent
    +extends MainMenuComponent
    +implements java.awt.event.MouseListener
    +
    +
    Version:
    +
    Fall 2017
    +
    Author:
    +
    angel on 2/20/16., Victoria Sneddon, Andrew Polk
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected SoundEffectaudio +
      sets audio to sound effect
      +
      protected booleanscreenCalled +
      boolean varable to see if screen is called
      +
      protected java.awt.ColortextColor +
      sets color of text to white
      +
      +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MenuTextComponent(java.lang.String title, + java.awt.Color backgroundColor) +
      MenuTextComponent constructor to initialize values
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringgetTitle() +
      getter for title
      +
      voidmouseEntered(java.awt.event.MouseEvent mouseEvent) +
      Default MouseEvents for our MouseListener
      +
      voidmouseExited(java.awt.event.MouseEvent mouseEvent) 
      voidpaintComponent(java.awt.Graphics g) +
      paintComponent that creates graphic and initialzes values
      +
      protected voidplayGameStartAudio() +
      plays audio clip
      +
      + +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.awt.event.MouseListener

        +mouseClicked, mousePressed, mouseReleased
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        textColor

        +
        protected java.awt.Color textColor
        +
        sets color of text to white
        +
      • +
      + + + +
        +
      • +

        screenCalled

        +
        protected boolean screenCalled
        +
        boolean varable to see if screen is called
        +
      • +
      + + + +
        +
      • +

        audio

        +
        protected SoundEffect audio
        +
        sets audio to sound effect
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MenuTextComponent

        +
        public MenuTextComponent(java.lang.String title,
        +                         java.awt.Color backgroundColor)
        +
        MenuTextComponent constructor to initialize values
        +
        +
        Parameters:
        +
        title - holds String of title
        +
        backgroundColor - for background color
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTitle

        +
        public java.lang.String getTitle()
        +
        getter for title
        +
        +
        Returns:
        +
        String title getter for title
        +
        +
      • +
      + + + +
        +
      • +

        paintComponent

        +
        public void paintComponent(java.awt.Graphics g)
        +
        paintComponent that creates graphic and initialzes values
        +
        +
        Overrides:
        +
        paintComponent in class javax.swing.JComponent
        +
        Parameters:
        +
        g - for Graphics
        +
        +
      • +
      + + + +
        +
      • +

        mouseEntered

        +
        public void mouseEntered(java.awt.event.MouseEvent mouseEvent)
        +
        Default MouseEvents for our MouseListener
        +
        +
        Specified by:
        +
        mouseEntered in interface java.awt.event.MouseListener
        +
        Parameters:
        +
        mouseEvent - MouseEvent for Listener
        +
        +
      • +
      + + + +
        +
      • +

        mouseExited

        +
        public void mouseExited(java.awt.event.MouseEvent mouseEvent)
        +
        +
        Specified by:
        +
        mouseExited in interface java.awt.event.MouseListener
        +
        Parameters:
        +
        mouseEvent - MouseEvent + if mouse clicks exit, text color goes to white and screen is repainted
        +
        +
      • +
      + + + +
        +
      • +

        playGameStartAudio

        +
        protected void playGameStartAudio()
        +
        plays audio clip
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/PlayTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/PlayTextComponent.html new file mode 100644 index 0000000..3f045a3 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/PlayTextComponent.html @@ -0,0 +1,509 @@ + + + + + +PlayTextComponent + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu
+

Class PlayTextComponent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
    +
    +
    +
    +
    public class PlayTextComponent
    +extends MenuTextComponent
    +
    edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent is the class that holds the onClick event of the play button
    +
    +
    Version:
    +
    CS56, Fall 2017, UCSB
    +
    Author:
    +
    Angel Ortega, Andrew Polk, Victoria Sneddon
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javax.swing.JComponent

        +javax.swing.JComponent.AccessibleJComponent
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Container

        +java.awt.Container.AccessibleAWTContainer
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.awt.Component

        +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected SoundEffectaudio +
      Holds a new SoundEffect object for the button press
      +
      + +
        +
      • + + +

        Fields inherited from class javax.swing.JComponent

        +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • +
      +
        +
      • + + +

        Fields inherited from class java.awt.Component

        +accessibleContext, 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

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PlayTextComponent(java.lang.String title, + java.awt.Color backgroundColor) +
      Constructor for the PlayTextComponent that takes in a title String and background color
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidmouseClicked(java.awt.event.MouseEvent mouseEvent) +
      Override the mouseClicked method to begin option panels and start the game
      +
      voidmousePressed(java.awt.event.MouseEvent mouseEvent) +
      Override mousePressed() not used
      +
      voidmouseReleased(java.awt.event.MouseEvent mouseEvent) +
      Override mouseReleased() not used
      +
      protected voidplayGameStartAudio() +
      Override playGameStartAudio to play an audio clip
      +
      + + +
        +
      • + + +

        Methods inherited from class javax.swing.JComponent

        +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Container

        +add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • +
      +
        +
      • + + +

        Methods inherited from class java.awt.Component

        +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusBackward, transferFocusUpCycle
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        audio

        +
        protected SoundEffect audio
        +
        Holds a new SoundEffect object for the button press
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PlayTextComponent

        +
        public PlayTextComponent(java.lang.String title,
        +                         java.awt.Color backgroundColor)
        +
        Constructor for the PlayTextComponent that takes in a title String and background color
        +
        +
        Parameters:
        +
        title - type String
        +
        backgroundColor - of type Color
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mouseClicked

        +
        public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
        +
        Override the mouseClicked method to begin option panels and start the game
        +
        +
        Parameters:
        +
        mouseEvent - of type MouseEvent
        +
        +
      • +
      + + + +
        +
      • +

        mousePressed

        +
        public void mousePressed(java.awt.event.MouseEvent mouseEvent)
        +
        Override mousePressed() not used
        +
      • +
      + + + +
        +
      • +

        mouseReleased

        +
        public void mouseReleased(java.awt.event.MouseEvent mouseEvent)
        +
        Override mouseReleased() not used
        +
      • +
      + + + +
        +
      • +

        playGameStartAudio

        +
        protected void playGameStartAudio()
        +
        Override playGameStartAudio to play an audio clip
        +
        +
        Overrides:
        +
        playGameStartAudio in class MenuTextComponent
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/ColorPrompt.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/ColorPrompt.html new file mode 100644 index 0000000..3c8c89f --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/ColorPrompt.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/CustomModePrompt.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/CustomModePrompt.html new file mode 100644 index 0000000..ab7e41c --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/CustomModePrompt.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/DifficultyLevelPrompt.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/DifficultyLevelPrompt.html new file mode 100644 index 0000000..b32bcd3 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/DifficultyLevelPrompt.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.DifficultyLevelPrompt + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.DifficultyLevelPrompt

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.DifficultyLevelPrompt
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/HighScoreTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/HighScoreTextComponent.html new file mode 100644 index 0000000..9b66fc3 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/HighScoreTextComponent.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.HighScoreTextComponent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.HighScoreTextComponent

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.HighScoreTextComponent
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/InstructionsTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/InstructionsTextComponent.html new file mode 100644 index 0000000..ec14091 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/InstructionsTextComponent.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuComponent.html new file mode 100644 index 0000000..19c2742 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuComponent.html @@ -0,0 +1,184 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.MainMenuComponent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.MainMenuComponent

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuUI.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuUI.html new file mode 100644 index 0000000..c962d96 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MainMenuUI.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.MainMenuUI + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.MainMenuUI

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.MainMenuUI
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuPaddingComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuPaddingComponent.html new file mode 100644 index 0000000..89e22bd --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuPaddingComponent.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.MenuPaddingComponent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.MenuPaddingComponent

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.MenuPaddingComponent
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuTextComponent.html new file mode 100644 index 0000000..aeb749a --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/MenuTextComponent.html @@ -0,0 +1,176 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/PlayTextComponent.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/PlayTextComponent.html new file mode 100644 index 0000000..92fe205 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/class-use/PlayTextComponent.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/Instructions.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/Instructions.html new file mode 100644 index 0000000..db214b3 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/Instructions.html @@ -0,0 +1,336 @@ + + + + + +Instructions + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.menu.instructions
+

Class Instructions

+
+
+ +
+
    +
  • +
    +
    +
    public class Instructions
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions is the classs that displays the instructions to the game when the user presses the instructions button
    +
    +
    Version:
    +
    CS56, Winter 2015, UCSB, CS56, Fall 2017, UCSB
    +
    Author:
    +
    Vincent Gandolfo, Krishna Lingampalli, Victoria Sneddon, Andrew Polk
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Instructions() +
      Constructor that sets up the JFrame and Components that allow the instructions to be displayed
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringdisplayInstructions() +
      displayInstructions() displays the Instructions on how to play
      +
      voidsetToVisible() +
      setToVisible() Sets the frame to visible
      +
      voidsetUpFrame() +
      setUpFrame() creates the Frame, names it, and sets the size of the frame
      +
      voidsetUpFrameComponents() +
      setUpFrameComponents() sets up the layout on the frame and puts on the Instructions and the "Back To Main Menu" button
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Instructions

        +
        public Instructions()
        +
        Constructor that sets up the JFrame and Components that allow the instructions to be displayed
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setUpFrame

        +
        public void setUpFrame()
        +
        setUpFrame() creates the Frame, names it, and sets the size of the frame
        +
      • +
      + + + +
        +
      • +

        setUpFrameComponents

        +
        public void setUpFrameComponents()
        +
        setUpFrameComponents() sets up the layout on the frame and puts on the Instructions and the "Back To Main Menu" button
        +
      • +
      + + + +
        +
      • +

        setToVisible

        +
        public void setToVisible()
        +
        setToVisible() Sets the frame to visible
        +
      • +
      + + + +
        +
      • +

        displayInstructions

        +
        public java.lang.String displayInstructions()
        +
        displayInstructions() displays the Instructions on how to play
        +
        +
        Returns:
        +
        String returns instructions
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/class-use/Instructions.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/class-use/Instructions.html new file mode 100644 index 0000000..1d944e4 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/class-use/Instructions.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-frame.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-frame.html new file mode 100644 index 0000000..4e3a417 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-frame.html @@ -0,0 +1,20 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.menu.instructions + + + + + +

edu.ucsb.cs56.projects.games.pong.menu.instructions

+
+

Classes

+ +
+ + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-summary.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-summary.html new file mode 100644 index 0000000..0283cfa --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-summary.html @@ -0,0 +1,144 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.menu.instructions + + + + + + + + +
+ + + + + + + +
+ + +
+

Package edu.ucsb.cs56.projects.games.pong.menu.instructions

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-tree.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-tree.html new file mode 100644 index 0000000..64be9d9 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-tree.html @@ -0,0 +1,137 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.menu.instructions Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package edu.ucsb.cs56.projects.games.pong.menu.instructions

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-use.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-use.html new file mode 100644 index 0000000..17a1deb --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/instructions/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package edu.ucsb.cs56.projects.games.pong.menu.instructions + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
edu.ucsb.cs56.projects.games.pong.menu.instructions

+
+
No usage of edu.ucsb.cs56.projects.games.pong.menu.instructions
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/package-frame.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-frame.html new file mode 100644 index 0000000..baa539e --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-frame.html @@ -0,0 +1,29 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.menu + + + + + +

edu.ucsb.cs56.projects.games.pong.menu

+
+

Classes

+ +
+ + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/package-summary.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-summary.html new file mode 100644 index 0000000..d04f0bd --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-summary.html @@ -0,0 +1,186 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.menu + + + + + + + + +
+ + + + + + + +
+ + +
+

Package edu.ucsb.cs56.projects.games.pong.menu

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/package-tree.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-tree.html new file mode 100644 index 0000000..407c50f --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-tree.html @@ -0,0 +1,168 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.menu Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package edu.ucsb.cs56.projects.games.pong.menu

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/menu/package-use.html b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-use.html new file mode 100644 index 0000000..8cab540 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/menu/package-use.html @@ -0,0 +1,160 @@ + + + + + +Uses of Package edu.ucsb.cs56.projects.games.pong.menu + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
edu.ucsb.cs56.projects.games.pong.menu

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/package-frame.html b/docs/edu/ucsb/cs56/projects/games/pong/package-frame.html new file mode 100644 index 0000000..a3aad9d --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/package-frame.html @@ -0,0 +1,20 @@ + + + + + +edu.ucsb.cs56.projects.games.pong + + + + + +

edu.ucsb.cs56.projects.games.pong

+
+

Classes

+ +
+ + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/package-summary.html b/docs/edu/ucsb/cs56/projects/games/pong/package-summary.html new file mode 100644 index 0000000..1c4a471 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/package-summary.html @@ -0,0 +1,145 @@ + + + + + +edu.ucsb.cs56.projects.games.pong + + + + + + + + +
+ + + + + + + +
+ + +
+

Package edu.ucsb.cs56.projects.games.pong

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/package-tree.html b/docs/edu/ucsb/cs56/projects/games/pong/package-tree.html new file mode 100644 index 0000000..e9f0c9c --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/package-tree.html @@ -0,0 +1,157 @@ + + + + + +edu.ucsb.cs56.projects.games.pong Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package edu.ucsb.cs56.projects.games.pong

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/package-use.html b/docs/edu/ucsb/cs56/projects/games/pong/package-use.html new file mode 100644 index 0000000..aae4ab9 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package edu.ucsb.cs56.projects.games.pong + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
edu.ucsb.cs56.projects.games.pong

+
+
No usage of edu.ucsb.cs56.projects.games.pong
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/sound/SoundEffect.html b/docs/edu/ucsb/cs56/projects/games/pong/sound/SoundEffect.html new file mode 100644 index 0000000..c11ce7c --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/sound/SoundEffect.html @@ -0,0 +1,288 @@ + + + + + +SoundEffect + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.sound
+

Class SoundEffect

+
+
+ +
+
    +
  • +
    +
    +
    public class SoundEffect
    +extends java.lang.Object
    +
    edu.ucsb.cs56.projects.games.pong.sound.SoundEffect is a class that opens and plays audio clips
    +
    +
    Version:
    +
    cs56 Fall 2016
    +
    Author:
    +
    Alexander Ngo and Millan Batra, Andrew Polk and Victoria Sneddon
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SoundEffect(java.lang.String sound) +
      Creates a url to the sound file and opens the sound file
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidplayClip() +
      Plays the audio clip stored and restarts the clip if it is playing
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SoundEffect

        +
        public SoundEffect(java.lang.String sound)
        +
        Creates a url to the sound file and opens the sound file
        +
        +
        Parameters:
        +
        sound - takes in a string for the sound file
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        playClip

        +
        public void playClip()
        +
        Plays the audio clip stored and restarts the clip if it is playing
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/sound/class-use/SoundEffect.html b/docs/edu/ucsb/cs56/projects/games/pong/sound/class-use/SoundEffect.html new file mode 100644 index 0000000..ac47959 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/sound/class-use/SoundEffect.html @@ -0,0 +1,172 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.sound.SoundEffect + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.sound.SoundEffect

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/sound/package-frame.html b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-frame.html new file mode 100644 index 0000000..d17c8f0 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-frame.html @@ -0,0 +1,20 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.sound + + + + + +

edu.ucsb.cs56.projects.games.pong.sound

+
+

Classes

+ +
+ + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/sound/package-summary.html b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-summary.html new file mode 100644 index 0000000..9a7e2e8 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-summary.html @@ -0,0 +1,144 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.sound + + + + + + + + +
+ + + + + + + +
+ + +
+

Package edu.ucsb.cs56.projects.games.pong.sound

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/sound/package-tree.html b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-tree.html new file mode 100644 index 0000000..640aafe --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-tree.html @@ -0,0 +1,137 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.sound Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package edu.ucsb.cs56.projects.games.pong.sound

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/sound/package-use.html b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-use.html new file mode 100644 index 0000000..94f1a82 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/sound/package-use.html @@ -0,0 +1,159 @@ + + + + + +Uses of Package edu.ucsb.cs56.projects.games.pong.sound + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
edu.ucsb.cs56.projects.games.pong.sound

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/BallTest.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/BallTest.html new file mode 100644 index 0000000..23292a3 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/BallTest.html @@ -0,0 +1,249 @@ + + + + + +BallTest + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.tests
+

Class BallTest

+
+
+ +
+
    +
  • +
    +
    +
    public class BallTest
    +extends java.lang.Object
    +
    The test class BallTest to test the class Ball
    +
    +
    Version:
    +
    CS56, Spring 2012, cp1 05.18.12
    +
    Author:
    +
    Timothy Fok
    +
    See Also:
    +
    Ball
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      BallTest() +
      Default BallTest constructor
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BallTest

        +
        public BallTest()
        +
        Default BallTest constructor
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/PaddleTest.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/PaddleTest.html new file mode 100644 index 0000000..217d333 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/PaddleTest.html @@ -0,0 +1,290 @@ + + + + + +PaddleTest + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.tests
+

Class PaddleTest

+
+
+ +
+
    +
  • +
    +
    +
    public class PaddleTest
    +extends java.lang.Object
    +
    The test class PaddleTest to test the class Paddle
    +
    +
    Version:
    +
    CS56, Spring 2012, cp1 05.18.12
    +
    Author:
    +
    Timothy Fok
    +
    See Also:
    +
    Paddle
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PaddleTest() +
      Basic constructor for PaddleTest
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidtestConstructor() +
      test constructor from PaddleTest
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PaddleTest

        +
        public PaddleTest()
        +
        Basic constructor for PaddleTest
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        testConstructor

        +
        public void testConstructor()
        +
        test constructor from PaddleTest
        +
        +
        See Also:
        +
        Paddle
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/PongTest.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/PongTest.html new file mode 100644 index 0000000..5c4d5ac --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/PongTest.html @@ -0,0 +1,249 @@ + + + + + +PongTest + + + + + + + + +
+ + + + + + + +
+ + + +
+
edu.ucsb.cs56.projects.games.pong.tests
+

Class PongTest

+
+
+ +
+
    +
  • +
    +
    +
    public class PongTest
    +extends java.lang.Object
    +
    The test class PongTest to test the class Pong
    +
    +
    Version:
    +
    CS56, Spring 2013, CS56-Games-Pong
    +
    Author:
    +
    Jake Dumont, Heneli Kailahi
    +
    See Also:
    +
    Pong
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PongTest() +
      Basic constructor for PongTest
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PongTest

        +
        public PongTest()
        +
        Basic constructor for PongTest
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/BallTest.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/BallTest.html new file mode 100644 index 0000000..8ed4cfc --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/BallTest.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.tests.BallTest + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.tests.BallTest

+
+
No usage of edu.ucsb.cs56.projects.games.pong.tests.BallTest
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PaddleTest.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PaddleTest.html new file mode 100644 index 0000000..4b7432a --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PaddleTest.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.tests.PaddleTest + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.tests.PaddleTest

+
+
No usage of edu.ucsb.cs56.projects.games.pong.tests.PaddleTest
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PongTest.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PongTest.html new file mode 100644 index 0000000..1994c0a --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/class-use/PongTest.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class edu.ucsb.cs56.projects.games.pong.tests.PongTest + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
edu.ucsb.cs56.projects.games.pong.tests.PongTest

+
+
No usage of edu.ucsb.cs56.projects.games.pong.tests.PongTest
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/package-frame.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-frame.html new file mode 100644 index 0000000..699400a --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-frame.html @@ -0,0 +1,22 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.tests + + + + + +

edu.ucsb.cs56.projects.games.pong.tests

+
+

Classes

+ +
+ + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/package-summary.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-summary.html new file mode 100644 index 0000000..ab9da00 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-summary.html @@ -0,0 +1,156 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.tests + + + + + + + + +
+ + + + + + + +
+ + +
+

Package edu.ucsb.cs56.projects.games.pong.tests

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/package-tree.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-tree.html new file mode 100644 index 0000000..b3db5be --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-tree.html @@ -0,0 +1,139 @@ + + + + + +edu.ucsb.cs56.projects.games.pong.tests Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package edu.ucsb.cs56.projects.games.pong.tests

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/edu/ucsb/cs56/projects/games/pong/tests/package-use.html b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-use.html new file mode 100644 index 0000000..465cf66 --- /dev/null +++ b/docs/edu/ucsb/cs56/projects/games/pong/tests/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package edu.ucsb.cs56.projects.games.pong.tests + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
edu.ucsb.cs56.projects.games.pong.tests

+
+
No usage of edu.ucsb.cs56.projects.games.pong.tests
+ +
+ + + + + + + +
+ + + + diff --git a/docs/help-doc.html b/docs/help-doc.html new file mode 100644 index 0000000..d9ce4a4 --- /dev/null +++ b/docs/help-doc.html @@ -0,0 +1,229 @@ + + + + + +API Help + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-all.html b/docs/index-all.html new file mode 100644 index 0000000..6fef55f --- /dev/null +++ b/docs/index-all.html @@ -0,0 +1,947 @@ + + + + + +Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E G H I J K M O P R S T W  + + +

A

+
+
addLabels() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.GameOver
+
+
addLabels() adds labels for entering winner name
+
+
attached - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
Holds if the ball is attached to a paddle
+
+
audio - Variable in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
sets audio to sound effect
+
+
audio - Variable in class edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent
+
+
Holds a new SoundEffect object for the button press
+
+
+ + + +

B

+
+
Ball - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.Ball is the class that will move the ball around the screen
+
+
Ball(int, int, int, int, boolean) - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.Ball constructor to initialize location of edu.ucsb.cs56.projects.games.pong.gameplay.Ball onto the screen + and draw it as a rectangle for a simpler and precise hitbox.
+
+
ballAttachUpdate() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
Updates the velocity if the ball is attached
+
+
ballCount - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
Holds the number of ballsLeft
+
+
ballNum - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
How many balls there are in game
+
+
ballsLost - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
Number of balls lost
+
+
BallTest - Class in edu.ucsb.cs56.projects.games.pong.tests
+
+
The test class BallTest to test the class Ball
+
+
BallTest() - Constructor for class edu.ucsb.cs56.projects.games.pong.tests.BallTest
+
+
Default BallTest constructor
+
+
+ + + +

C

+
+
checkBallStopped() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
checkBallsStopped() checks if all the balls in play are stopped
+
+
checkGameStatus() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
checkGameStatus() checks each time a ball is lost if they have any lives left
+
+
ColorPrompt - Class in edu.ucsb.cs56.projects.games.pong.menu
+
+
edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt is the class that will allow players to select paddle colors
+
+
ColorPrompt() - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt
+
+
Constructor for the ColorPrompt class that takes no parameters
+
+
compareTo(Object) - Method in class edu.ucsb.cs56.projects.games.pong.highscore.HighScore
+
+
Highest playerScore is given priority.
+
+
CustomModePrompt - Class in edu.ucsb.cs56.projects.games.pong.menu
+
 
+
CustomModePrompt() - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt
+
+
prompt user sees to select custom mode
+
+
+ + + +

D

+
+
decrementBalls() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
decrementBalls() decrements ballCount when a player loses a life
+
+
DifficultyLevel - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.Difficultylevel is the class that holds the diffculty and other parameters associated with varying difficulty levels
+
+
DifficultyLevel(int) - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel constructor to initialize difficulty of game onto the screen
+
+
DifficultyLevelPrompt - Class in edu.ucsb.cs56.projects.games.pong.menu
+
 
+
DifficultyLevelPrompt() - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.DifficultyLevelPrompt
+
+
prompt user sees to select difficulty
+
+
diflevel - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
The game difficulty level
+
+
DisplayHighScores - Class in edu.ucsb.cs56.projects.games.pong.highscore
+
+
edu.ucsb.cs56.projects.games.pong.DisplayHighScores is the class that shows the high scorecs of previous players
+
+
DisplayHighScores(String, int) - Constructor for class edu.ucsb.cs56.projects.games.pong.highscore.DisplayHighScores
+
+
Contructor that calls for the end of the game, then displays high scores
+
+
displayInstructions() - Method in class edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions
+
+
displayInstructions() displays the Instructions on how to play
+
+
distanceCalc(int) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
calculates distance and returns it in arrayList
+
+
doublebufferG - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
Graphics object
+
+
doublebufferImg - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
Image object
+
+
draw(Graphics) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
The draw method sets a new Color for the ball and redraws the ball with new coordinates
+
+
draw(Graphics) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
the draw function gets a new random color to draw the paddle and then redraws it
+
+
draw2(Graphics) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
the draw2 function runs when ExtremeType2 is being played
+
+
+ + + +

E

+
+
edu.ucsb.cs56.projects.games.pong - package edu.ucsb.cs56.projects.games.pong
+
 
+
edu.ucsb.cs56.projects.games.pong.gameplay - package edu.ucsb.cs56.projects.games.pong.gameplay
+
 
+
edu.ucsb.cs56.projects.games.pong.highscore - package edu.ucsb.cs56.projects.games.pong.highscore
+
 
+
edu.ucsb.cs56.projects.games.pong.menu - package edu.ucsb.cs56.projects.games.pong.menu
+
 
+
edu.ucsb.cs56.projects.games.pong.menu.instructions - package edu.ucsb.cs56.projects.games.pong.menu.instructions
+
 
+
edu.ucsb.cs56.projects.games.pong.sound - package edu.ucsb.cs56.projects.games.pong.sound
+
 
+
edu.ucsb.cs56.projects.games.pong.tests - package edu.ucsb.cs56.projects.games.pong.tests
+
 
+
EndOfGame - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame + + EndOfGame provides details for reading and writing the current list of PlayerScores + If a new Highscore is encountered, it will write this to the CSV file of highscores.
+
+
EndOfGame(int, String) - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame
+
+
Constructor that identifies the winner, and writes and saves their name * and score to a file
+
+
+ + + +

G

+
+
Game - Class in edu.ucsb.cs56.projects.games.pong
+
+
edu.ucsb.cs56.projects.games.pong.Game + Game contains the launcher(main).
+
+
Game(String, Dimension) - Constructor for class edu.ucsb.cs56.projects.games.pong.Game
+
+
constructor for Game; takes in a title and dimension
+
+
game - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
holds new Pong object
+
+
gameLoss(Paddle) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
gameLoss brings up a frame to enter the user's name
+
+
GameOver - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.GameOver is the class that gives instructions on what to do when the game ends
+
+
GameOver(String, int) - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.GameOver
+
+
Constructor that initializes the winner's name and the number of points the winner got and sends it to the high score list.
+
+
getBallNum() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
getBallNum() returns the number of balls int eh game
+
+
getBallNum() - Method in class edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt
+
+
getBallNum() returns ball number
+
+
getColorA() - Static method in class edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt
+
+
getColorA() returns the color for player 1 or the left paddle
+
+
getColorB() - Static method in class edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt
+
+
getColorB() return the color for player 2 or the right paddle
+
+
getDifficulty() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
getDifficulty() returns the current difficulty of the game
+
+
getDifficulty() - Method in class edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt
+
+
getDifficulty() returns difficulty
+
+
getDifficulty() - Method in class edu.ucsb.cs56.projects.games.pong.menu.DifficultyLevelPrompt
+
+
getDifficulty() returns difficulty
+
+
getDimension() - Static method in class edu.ucsb.cs56.projects.games.pong.menu.MainMenuComponent
+
+
returns dimension
+
+
getHashmap() - Method in class edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt
+
+
getHashmap() returns a map of preset colors
+
+
getHashmap() - Method in class edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt
+
+
Map that returns difficulties
+
+
getHashmap() - Method in class edu.ucsb.cs56.projects.games.pong.menu.DifficultyLevelPrompt
+
+
Map that returns difficulties
+
+
getHeight() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
getHeight() returns the screen height based on difficulty
+
+
getHits() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
getHits() returns the number of times the ball hits any paddle
+
+
getPaddleBotHit() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
getPaddleBotHit(): Actually is the top of screen
+
+
getPaddleHeight() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
getPaddleHeight() returns the height height based on difficulty
+
+
getPaddleTopHit() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
getPaddleTopHit(): Actually is the bottom of screen
+
+
getPlayer1() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
Returns gameobject for player1
+
+
getPlayer2() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
Returns gameobject for player2
+
+
getPlayerName() - Method in class edu.ucsb.cs56.projects.games.pong.highscore.HighScore
+
+
getPlayerName() returns the name of the player who just won
+
+
getPlayerScore() - Method in class edu.ucsb.cs56.projects.games.pong.highscore.HighScore
+
+
getPlayerScore() returns the score of the player who won
+
+
getPoints() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
getPoints() returns the score of the player
+
+
getScreenFactor() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
getScreenFactor() returns the multiply factor of the screen size
+
+
getSpeed() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
getSpeed() returns the ball speed based on difficulty
+
+
getTitle() - Method in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
getter for title
+
+
getWidth() - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
getWidth() returns the screen width based on difficulty
+
+
getWinner() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
getWinner() returns the paddle that just won the points
+
+
getYVelocity() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
Overrides getYVelocity to call ballAttachUpdate outside of key event
+
+
+ + + +

H

+
+
height - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
New screen height
+
+
HEIGHT - Static variable in class edu.ucsb.cs56.projects.games.pong.menu.MainMenuUI
+
 
+
HighScore - Class in edu.ucsb.cs56.projects.games.pong.highscore
+
+
edu.ucsb.cs56.projects.games.pong.HighScore is the class that turns the winner's name and score into a string
+
+
HighScore(int, String) - Constructor for class edu.ucsb.cs56.projects.games.pong.highscore.HighScore
+
+
Constructor that sets the instance variables playerName and playerScore * to the arguments name and score
+
+
HighScoreTextComponent - Class in edu.ucsb.cs56.projects.games.pong.menu
+
+
edu.ucsb.cs56.projects.games.pong.menu.HighSchoreTextComponent is the class that will show the high scores won on pong
+
+
HighScoreTextComponent(String, Color) - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.HighScoreTextComponent
+
+
calls constructor of superclass MenuTextComponent
+
+
hitsReset() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
hitsReset() sets hits to 0 when a paddle misses a ball
+
+
hList - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame
+
+
Create ArrayList to store high scores and names
+
+
holdBallToPaddle(KeyEvent, double) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
takes in KeyEvent and distance and holds ball to paddle if correct key is pressed and distance is correct
+
+
+ + + +

I

+
+
incrementHits() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
incrementHits() increments the number of hits when it hits a paddle
+
+
incrementPoints(int) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
incrementPoints adds the number of hits to the user's score
+
+
Instructions - Class in edu.ucsb.cs56.projects.games.pong.menu.instructions
+
+
edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions is the classs that displays the instructions to the game when the user presses the instructions button
+
+
Instructions() - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions
+
+
Constructor that sets up the JFrame and Components that allow the instructions to be displayed
+
+
InstructionsTextComponent - Class in edu.ucsb.cs56.projects.games.pong.menu
+
 
+
InstructionsTextComponent(String, Color) - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent
+
+
creates a Text Component to the MenuTextComponent
+
+
isPaddleMoving() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
isPaddleMoving() return is the paddle is moving or not
+
+
isPaused - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
isPaused pauses the game if = true
+
+
isSelected() - Method in class edu.ucsb.cs56.projects.games.pong.menu.ColorPrompt
+
+
isSelected() returns if items have been selected
+
+
isSelected() - Method in class edu.ucsb.cs56.projects.games.pong.menu.CustomModePrompt
+
+
isSelected() returns if items have been selected
+
+
isSelected() - Method in class edu.ucsb.cs56.projects.games.pong.menu.DifficultyLevelPrompt
+
+
isSelected() returns if items have been selected
+
+
isStopped() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
isStopped() checks if the ball is stopped
+
+
+ + + +

J

+
+
jf - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
holds JFrame object
+
+
+ + + +

K

+
+
keyPressed(KeyEvent, ArrayList<Double>) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
Takes in KeyEvent and arrayList of distance and moves ball with the paddle if ball is being held
+
+
keyPressed(KeyEvent) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
keyPressed controls the movement up and down for the paddle
+
+
keyPressed(KeyEvent) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen.myKeyAdapter
+
+
keyPressed checks if certain keys are pressed
+
+
keyReleased(KeyEvent, ArrayList<Double>) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
takes in KeyEvent and arrayList of distance and releases ball from paddle or stops ball from moving
+
+
keyReleased(KeyEvent) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
keyReleased stops the movement of the paddle when any key is released
+
+
keyReleased(KeyEvent) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen.myKeyAdapter
+
+
keyReleased checks if certain keys are released
+
+
kill() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
kill() stops the thread
+
+
+ + + +

M

+
+
main(String[]) - Static method in class edu.ucsb.cs56.projects.games.pong.Game
+
+
main, entry point for game
+
+
MainMenuComponent - Class in edu.ucsb.cs56.projects.games.pong.menu
+
 
+
MainMenuComponent() - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.MainMenuComponent
+
 
+
MainMenuUI - Class in edu.ucsb.cs56.projects.games.pong.menu
+
+
sets width and height and creates a new Array List of MenuTextComponents called menuItems
+
+
MainMenuUI() - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.MainMenuUI
+
 
+
MenuPaddingComponent - Class in edu.ucsb.cs56.projects.games.pong.menu
+
 
+
MenuPaddingComponent(Color, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.MenuPaddingComponent
+
 
+
MenuTextComponent - Class in edu.ucsb.cs56.projects.games.pong.menu
+
 
+
MenuTextComponent(String, Color) - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
MenuTextComponent constructor to initialize values
+
+
mouseClicked(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.HighScoreTextComponent
+
+
plays audio, if text color is blue, creates new DisplayHighScores called displayhs
+
+
mouseClicked(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent
+
+
plays audio, creates new instructions and makes visible
+
+
mouseClicked(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent
+
+
Override the mouseClicked method to begin option panels and start the game
+
+
mouseEntered(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
Default MouseEvents for our MouseListener
+
+
mouseExited(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent
+
+
Overridden mouseExited changes selection color
+
+
mouseExited(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
 
+
mousePressed(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.HighScoreTextComponent
+
+
Overriden mousePressed has no body code
+
+
mousePressed(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent
+
+
Overriden mousePressed no body
+
+
mousePressed(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent
+
+
Override mousePressed() not used
+
+
mouseReleased(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.HighScoreTextComponent
+
+
Overriden mouseReleased has no body code
+
+
mouseReleased(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.InstructionsTextComponent
+
+
Overridden mouseReleased has no body code
+
+
mouseReleased(MouseEvent) - Method in class edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent
+
+
Override mouseReleased() not used
+
+
moveGame() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
moveGame() allows the ball and paddles in the game to be moved
+
+
movePaddle() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
movePaddle() gets activated when up or down key is pressed then sets the new coordinates for the paddle to be drawn
+
+
myKeyAdapter() - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.Screen.myKeyAdapter
+
 
+
+ + + +

O

+
+
origballsize - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
The original size of the ball
+
+
+ + + +

P

+
+
Paddle - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.Paddle is the class that is used to move the user-controlled paddle around the screen
+
+
Paddle(int, int, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
Paddle contructor to initialize intial x,y placement of paddle
+
+
Paddle(int, int, int, int, boolean) - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
Right paddle constructor to initialize initial x,y placement of paddle
+
+
paddleCollision() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
paddleCollision() detects whether ball hits a paddle
+
+
paddleHeight - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
New paddle height
+
+
PaddleTest - Class in edu.ucsb.cs56.projects.games.pong.tests
+
+
The test class PaddleTest to test the class Paddle
+
+
PaddleTest() - Constructor for class edu.ucsb.cs56.projects.games.pong.tests.PaddleTest
+
+
Basic constructor for PaddleTest
+
+
paintComponent(Graphics) - Method in class edu.ucsb.cs56.projects.games.pong.menu.MenuPaddingComponent
+
+
creates actual image with Graphic g and sets color to backgroundColor and fills rectangle at location 0, 0 of given width and height
+
+
paintComponent(Graphics) - Method in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
paintComponent that creates graphic and initialzes values
+
+
playClip() - Method in class edu.ucsb.cs56.projects.games.pong.sound.SoundEffect
+
+
Plays the audio clip stored and restarts the clip if it is playing
+
+
playerMissed(Ball, int, Paddle) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
playerMissed() occurs when the ball hits the wall behind the paddle.
+
+
playGameStartAudio() - Method in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
plays audio clip
+
+
playGameStartAudio() - Method in class edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent
+
+
Override playGameStartAudio to play an audio clip
+
+
playPaddleCollisionAudio() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
Load collision file for paddles and play collision afterwards + Credit for audio file goes to NoiseCollector @: http://www.freesound.org/people/NoiseCollector/packs/254/
+
+
PlayTextComponent - Class in edu.ucsb.cs56.projects.games.pong.menu
+
+
edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent is the class that holds the onClick event of the play button
+
+
PlayTextComponent(String, Color) - Constructor for class edu.ucsb.cs56.projects.games.pong.menu.PlayTextComponent
+
+
Constructor for the PlayTextComponent that takes in a title String and background color
+
+
points - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
Number of points a player has
+
+
Pong - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
edu.ucsb.cs56.projects.games.pong.gameplay.Pong is the class that will facilitate + the game of Pong being run
+
+
Pong() - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
The Pong constructor initializes 2 paddle objects, a ball object, and points value
+
+
PongTest - Class in edu.ucsb.cs56.projects.games.pong.tests
+
+
The test class PongTest to test the class Pong
+
+
PongTest() - Constructor for class edu.ucsb.cs56.projects.games.pong.tests.PongTest
+
+
Basic constructor for PongTest
+
+
+ + + +

R

+
+
readTheFile() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame
+
+
readTheFile() reads the High Scores file
+
+
releaseBallFromPaddle(KeyEvent, double) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
Takes in keyEvent and distance and releases ball from paddle if correct key is released
+
+
resetBall(int) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
resetBall() puts the ball back in the middle of the screen and stops the ball
+
+
right - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Paddle
+
+
If this is the right side paddle
+
+
run() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
run() checks the movements every 15 milliseconds
+
+
+ + + +

S

+
+
saveToFile() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame
+
+
saveToFile() saves new file
+
+
Screen - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
Screen is the GUI implementation of the Pong game
+
+
Screen(int, int) - Constructor for class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
Screen Constructor and mouseEntered function to unpause game
+
+
Screen.myKeyAdapter - Class in edu.ucsb.cs56.projects.games.pong.gameplay
+
+
myKeyAdapter handles up and down keys for movement of paddle.
+
+
screenCalled - Variable in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
boolean varable to see if screen is called
+
+
screenfactor - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
The screen multiplier factor
+
+
setBallNum(int) - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
 
+
setDimension(Dimension) - Static method in class edu.ucsb.cs56.projects.games.pong.menu.MainMenuComponent
+
+
set dimention equal to dmtion
+
+
setScreenSize(int, int) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
setScreenSize sets the size of the screen
+
+
setToVisible() - Method in class edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions
+
+
setToVisible() Sets the frame to visible
+
+
setUpFrame() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.GameOver
+
+
setUpFrame() sets up a frame structure for Game Over Screen
+
+
setUpFrame() - Method in class edu.ucsb.cs56.projects.games.pong.highscore.DisplayHighScores
+
+
setUpFrame() sets up the frame structure for High Score Window
+
+
setUpFrame() - Method in class edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions
+
+
setUpFrame() creates the Frame, names it, and sets the size of the frame
+
+
setUpFrameComponents() - Method in class edu.ucsb.cs56.projects.games.pong.highscore.DisplayHighScores
+
+
setUpFrameComponents() sets up the components for the JPanel
+
+
setUpFrameComponents() - Method in class edu.ucsb.cs56.projects.games.pong.menu.instructions.Instructions
+
+
setUpFrameComponents() sets up the layout on the frame and puts on the Instructions and the "Back To Main Menu" button
+
+
setWindowVisibility(boolean) - Static method in class edu.ucsb.cs56.projects.games.pong.Game
+
 
+
setWindowVisibility(boolean) - Static method in class edu.ucsb.cs56.projects.games.pong.gameplay.Screen
+
+
sets window open or closed
+
+
setWinner(Paddle) - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
setWinner takes a Paddle object as a parameter, then sets + the winner to that Paddle argument
+
+
showScores() - Method in class edu.ucsb.cs56.projects.games.pong.highscore.DisplayHighScores
+
+
showScores() prints scores on labels
+
+
SoundEffect - Class in edu.ucsb.cs56.projects.games.pong.sound
+
+
edu.ucsb.cs56.projects.games.pong.sound.SoundEffect is a class that opens and plays audio clips
+
+
SoundEffect(String) - Constructor for class edu.ucsb.cs56.projects.games.pong.sound.SoundEffect
+
+
Creates a url to the sound file and opens the sound file
+
+
speed - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
Speed of the ball
+
+
speed - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
New ball speed
+
+
speedX - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
X Speed of the ball
+
+
startBall() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
startBall(): When the ball is stopped, this will start the ball in the direction of the way it was going
+
+
stopBall() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Ball
+
+
stopBall() stops the ball no matter what
+
+
+ + + +

T

+
+
testConstructor() - Method in class edu.ucsb.cs56.projects.games.pong.tests.PaddleTest
+
+
test constructor from PaddleTest
+
+
textColor - Variable in class edu.ucsb.cs56.projects.games.pong.menu.MenuTextComponent
+
+
sets color of text to white
+
+
toString() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
toString() returns which player has won in a string
+
+
toString(String, String) - Method in class edu.ucsb.cs56.projects.games.pong.highscore.HighScore
+
+
toString() returns a combination of the player's score and name in a single string
+
+
+ + + +

W

+
+
wallCollision() - Method in class edu.ucsb.cs56.projects.games.pong.gameplay.Pong
+
+
wallCollision() detects whether the ball hits a wall
+
+
width - Static variable in class edu.ucsb.cs56.projects.games.pong.gameplay.DifficultyLevel
+
+
New screen width
+
+
WIDTH - Static variable in class edu.ucsb.cs56.projects.games.pong.menu.MainMenuUI
+
 
+
winner - Variable in class edu.ucsb.cs56.projects.games.pong.gameplay.EndOfGame
+
+
winner holds Highscore object
+
+
+A B C D E G H I J K M O P R S T W 
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..4b4d925 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,75 @@ + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/docs/overview-frame.html b/docs/overview-frame.html new file mode 100644 index 0000000..b85874b --- /dev/null +++ b/docs/overview-frame.html @@ -0,0 +1,27 @@ + + + + + +Overview List + + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/docs/overview-summary.html b/docs/overview-summary.html new file mode 100644 index 0000000..c5c76f5 --- /dev/null +++ b/docs/overview-summary.html @@ -0,0 +1,159 @@ + + + + + +Overview + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
edu.ucsb.cs56.projects.games.pong 
edu.ucsb.cs56.projects.games.pong.gameplay 
edu.ucsb.cs56.projects.games.pong.highscore 
edu.ucsb.cs56.projects.games.pong.menu 
edu.ucsb.cs56.projects.games.pong.menu.instructions 
edu.ucsb.cs56.projects.games.pong.sound 
edu.ucsb.cs56.projects.games.pong.tests 
+
+ +
+ + + + + + + +
+ + + + diff --git a/docs/overview-tree.html b/docs/overview-tree.html new file mode 100644 index 0000000..4176eb0 --- /dev/null +++ b/docs/overview-tree.html @@ -0,0 +1,206 @@ + + + + + +Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/package-list b/docs/package-list new file mode 100644 index 0000000..020964f --- /dev/null +++ b/docs/package-list @@ -0,0 +1,7 @@ +edu.ucsb.cs56.projects.games.pong +edu.ucsb.cs56.projects.games.pong.gameplay +edu.ucsb.cs56.projects.games.pong.highscore +edu.ucsb.cs56.projects.games.pong.menu +edu.ucsb.cs56.projects.games.pong.menu.instructions +edu.ucsb.cs56.projects.games.pong.sound +edu.ucsb.cs56.projects.games.pong.tests diff --git a/docs/script.js b/docs/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/docs/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/docs/serialized-form.html b/docs/serialized-form.html new file mode 100644 index 0000000..c632650 --- /dev/null +++ b/docs/serialized-form.html @@ -0,0 +1,342 @@ + + + + + +Serialized Form + + + + + + + + +
+ + + + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/stylesheet.css b/docs/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/docs/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +}