diff --git a/Annuity/Annuity.java b/Annuity/Annuity.java new file mode 100644 index 00000000..940ea0d8 --- /dev/null +++ b/Annuity/Annuity.java @@ -0,0 +1,16 @@ +import java.lang.Math; +public class Annuity +{ + /** description of instance variable x (add comment for each instance variable) */ + public static final long PERIODIC_PAYMENT = 10000; + public static final double COMPOUND_RATE = .08; + public static final long NUM_PAYMENTS = 20; + + public static double calculateAnnuity () + { + double numerator = (Math.pow((1+COMPOUND_RATE), (NUM_PAYMENTS-1)) - 1) / COMPOUND_RATE; + double denom = (Math.pow((1+COMPOUND_RATE), (NUM_PAYMENTS-1))); + return PERIODIC_PAYMENT*((numerator/denom)+1); + } + +} diff --git a/Annuity/README.TXT b/Annuity/README.TXT new file mode 100644 index 00000000..0de5dc9d --- /dev/null +++ b/Annuity/README.TXT @@ -0,0 +1,13 @@ +------------------------------------------------------------------------ +This is the project README file. Here, you should describe your project. +Tell the reader (someone who does not know anything about this project) +all she needs to know. The comments should usually include at least: +------------------------------------------------------------------------ + +PROJECT TITLE: +PURPOSE OF PROJECT: +VERSION or DATE: +DEPENDENCIES: +HOW TO START THIS PROJECT: +AUTHORS: +USER INSTRUCTIONS: diff --git a/Annuity/package.bluej b/Annuity/package.bluej new file mode 100644 index 00000000..a47eb2c4 --- /dev/null +++ b/Annuity/package.bluej @@ -0,0 +1,24 @@ +#BlueJ package file +objectbench.height=76 +objectbench.width=1660 +package.editor.height=854 +package.editor.width=1562 +package.editor.x=-8 +package.editor.y=-8 +package.numDependencies=0 +package.numTargets=1 +package.showExtends=true +package.showUses=true +project.charset=UTF-8 +target1.editor.height=700 +target1.editor.width=900 +target1.editor.x=759 +target1.editor.y=291 +target1.height=50 +target1.name=Annuity +target1.showInterface=false +target1.type=ClassTarget +target1.typeParameters= +target1.width=80 +target1.x=70 +target1.y=10 diff --git a/AvgOfThree/AvgOfThree.java b/AvgOfThree/AvgOfThree.java index c71c516b..b3b9c216 100644 --- a/AvgOfThree/AvgOfThree.java +++ b/AvgOfThree/AvgOfThree.java @@ -10,6 +10,7 @@ public static void main (String[] args) System.out.print ("Enter the first number: "); a = s.nextDouble(); + System.out.print ("Enter the second number: "); b = s.nextDouble(); diff --git a/AvgOfThree/package.bluej b/AvgOfThree/package.bluej index 5f5f50b5..69b87728 100644 --- a/AvgOfThree/package.bluej +++ b/AvgOfThree/package.bluej @@ -1,10 +1,10 @@ #BlueJ package file objectbench.height=100 -objectbench.width=658 -package.editor.height=400 -package.editor.width=560 -package.editor.x=30 -package.editor.y=30 +objectbench.width=1355 +package.editor.height=830 +package.editor.width=1562 +package.editor.x=-8 +package.editor.y=-8 package.numDependencies=0 package.numTargets=1 package.showExtends=true @@ -14,10 +14,10 @@ readme.editor.height=700 readme.editor.width=900 readme.editor.x=0 readme.editor.y=22 -target1.editor.height=700 -target1.editor.width=900 -target1.editor.x=70 -target1.editor.y=50 +target1.editor.height=1026 +target1.editor.width=1696 +target1.editor.x=-8 +target1.editor.y=-8 target1.height=50 target1.name=AvgOfThree target1.naviview.expanded=false diff --git a/CityscapeLab/.gitattributes b/CityscapeLab/.gitattributes new file mode 100644 index 00000000..412eeda7 --- /dev/null +++ b/CityscapeLab/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/CityscapeLab/.gitignore b/CityscapeLab/.gitignore new file mode 100644 index 00000000..58bcbf82 --- /dev/null +++ b/CityscapeLab/.gitignore @@ -0,0 +1,43 @@ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk diff --git a/CityscapeLab/Building.java b/CityscapeLab/Building.java new file mode 100644 index 00000000..43b31004 --- /dev/null +++ b/CityscapeLab/Building.java @@ -0,0 +1,59 @@ +import java.awt.Rectangle; +import java.awt.geom.Ellipse2D; +import java.awt.Color; +import java.util.Random; +import java.awt.Graphics2D; +/** + * Class that defines a building with starting positions, height, and width. + * + * @author Christopher Ng + * @version 2 October 2014 + */ +public class Building +{ + /** int specifying building's height */ + private int windowHeight; + /** int specifying building's width */ + private int width; + /**int specifying leftmost coordinate */ + private int xleft; + /** int specifying top coordinate */ + private int ytop; + /** int for storing height of the hill object in CityScape */ + private int hillHeight; + /** + * Default constructor for objects of class Building + * @param windowHeight the height of the JFrame window + * @param width width of the building + * @param xleft starting x position + * @param ytop starting y position + */ + public Building(int xleft, int ytop, int width, int windowHeight) + { + this.windowHeight = windowHeight; + this.width = width; + this.xleft = xleft; + this.ytop = ytop; + } + + public void setHillHeight(int hillHeight) + { + this.hillHeight = hillHeight; + } + + /** + * Draws a building based on variables initialized in constructor + */ + public void draw(Graphics2D g2) + { + Rectangle mainBuilding = new Rectangle(xleft, ytop, width, windowHeight-ytop-hillHeight); + g2.setColor(Color.GRAY); + g2.draw(mainBuilding); + g2.fill(mainBuilding); + + } + + +} + + diff --git a/CityscapeLab/Bus.java b/CityscapeLab/Bus.java new file mode 100644 index 00000000..2947d80c --- /dev/null +++ b/CityscapeLab/Bus.java @@ -0,0 +1,40 @@ + + +/** + * Write a description of class Bus here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Bus +{ + /** description of instance variable x (add comment for each instance variable) */ + private int x; + + /** + * Default constructor for objects of class Bus + */ + public Bus() + { + // initialise instance variables + x = 0; + } + + /** + * An example of a method - replace this comment with your own + * that describes the operation of the method + * + * @pre preconditions for the method + * (what the method assumes about the method's parameters and class's state) + * @post postconditions for the method + * (what the method guarantees upon completion) + * @param y description of parameter y + * @return description of the return value + */ + public int sampleMethod(int y) + { + // put your code here + return x+y; + } + +} diff --git a/CityscapeLab/Car.java b/CityscapeLab/Car.java new file mode 100644 index 00000000..f0c53738 --- /dev/null +++ b/CityscapeLab/Car.java @@ -0,0 +1,40 @@ + + +/** + * Write a description of class Car here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Car +{ + /** description of instance variable x (add comment for each instance variable) */ + private int x; + + /** + * Default constructor for objects of class Car + */ + public Car() + { + // initialise instance variables + x = 0; + } + + /** + * An example of a method - replace this comment with your own + * that describes the operation of the method + * + * @pre preconditions for the method + * (what the method assumes about the method's parameters and class's state) + * @post postconditions for the method + * (what the method guarantees upon completion) + * @param y description of parameter y + * @return description of the return value + */ + public int sampleMethod(int y) + { + // put your code here + return x+y; + } + +} diff --git a/CityscapeLab/CityscapeComponent.java b/CityscapeLab/CityscapeComponent.java index 188f248e..583c0c47 100644 --- a/CityscapeLab/CityscapeComponent.java +++ b/CityscapeLab/CityscapeComponent.java @@ -1,6 +1,7 @@ import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JComponent; +import java.util.Random; /** * Class that creates instances of the classes that comprise the cityscape and delegates drawing the @@ -11,6 +12,7 @@ */ public class CityscapeComponent extends JComponent { + public static boolean isNight=true; /** * An example of a method - replace this comment with your own * that describes the operation of the method @@ -21,17 +23,33 @@ public class CityscapeComponent extends JComponent * (what the method guarantees upon completion) * @param y description of parameter y * @return description of the return value - */ + */ + public void paintComponent(Graphics g) - { + { Graphics2D g2 = (Graphics2D) g; - - // writing the code for my lab... - - // create instances of classes and invoke the draw method on each - // ... - - + int space = this.getWidth()/9; + int windowHeight = this.getHeight(); + Random randomGen = new Random(); + Sky sky = new Sky(this.getWidth(), this.getHeight()); + sky.draw(g2); + Moon moon = new Moon(0, windowHeight/8, 100, 100); + moon.draw(g2); + Hill hill = new Hill(0, this.getHeight()-this.getHeight()/4, this.getWidth(), this.getHeight()/4); + hill.draw(g2); + int hillHeight = hill.getHillHeight(); + Building building1 = new Building(space, randomGen.nextInt(windowHeight)-hill.getHillHeight(), space, windowHeight); + building1.setHillHeight(hillHeight); + building1.draw(g2); + Building building2 = new Building(space*3, randomGen.nextInt(windowHeight)-hill.getHillHeight(), space, windowHeight); + building2.setHillHeight(hillHeight); + building2.draw(g2); + Building building3 = new Building(space*5, randomGen.nextInt(windowHeight)-hill.getHillHeight(), space, windowHeight); + building3.setHillHeight(hillHeight); + building3.draw(g2); + Building building4 = new Building(space*7, randomGen.nextInt(windowHeight)-hill.getHillHeight(), space, windowHeight); + building4.setHillHeight(hillHeight); + building4.draw(g2); } +} -} diff --git a/CityscapeLab/Cloud.java b/CityscapeLab/Cloud.java new file mode 100644 index 00000000..75127d77 --- /dev/null +++ b/CityscapeLab/Cloud.java @@ -0,0 +1,40 @@ + + +/** + * Write a description of class Cloud here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Cloud +{ + /** description of instance variable x (add comment for each instance variable) */ + private int x; + + /** + * Default constructor for objects of class Cloud + */ + public Cloud() + { + // initialise instance variables + x = 0; + } + + /** + * An example of a method - replace this comment with your own + * that describes the operation of the method + * + * @pre preconditions for the method + * (what the method assumes about the method's parameters and class's state) + * @post postconditions for the method + * (what the method guarantees upon completion) + * @param y description of parameter y + * @return description of the return value + */ + public int sampleMethod(int y) + { + // put your code here + return x+y; + } + +} diff --git a/CityscapeLab/Hill.java b/CityscapeLab/Hill.java new file mode 100644 index 00000000..9994e6e0 --- /dev/null +++ b/CityscapeLab/Hill.java @@ -0,0 +1,44 @@ +import java.awt.Graphics2D; +import java.awt.Rectangle; +import java.awt.Color; +/** + * Draws a hill at the front of the CityScape + * + * @author Christopher Ng + * @version 6 October 2014 + */ +public class Hill +{ + /** holds value for maximum height of the hill in pixels */ + private int hillHeight; + private int hillWidth; + private int yTop; + private int xLeft; + public Hill(int xLeft, int yTop, int hillWidth, int hillHeight) + { + this.hillHeight = hillHeight; + this.hillWidth = hillWidth; + this.yTop = yTop; + this.xLeft = xLeft; + } + + public int getHillHeight() + /** + * Accessor method which returns the height of this hill + */ + { + return this.hillHeight; + } + + /** + * creates a hill rectangle and draws it with the graphics object + */ + public void draw(Graphics2D g2) + { + Rectangle grass = new Rectangle (xLeft, yTop, hillWidth, hillHeight); + g2.setColor(Color.GREEN); + g2.draw(grass); + g2.fill(grass); + } + +} diff --git a/CityscapeLab/Moon.java b/CityscapeLab/Moon.java new file mode 100644 index 00000000..ea81cd44 --- /dev/null +++ b/CityscapeLab/Moon.java @@ -0,0 +1,64 @@ +import java.awt.Graphics2D; +import java.awt.geom.Ellipse2D; +import java.awt.Color; + +/** + * A class that models an animated moon that moves across the sky. + * + * @author Christopher Ng + * @version 10/8/14 + */ +public class Moon +{ + /** starting left position coordinate */ + private int xLeft; + /**starting top position coordinate */ + private int yTop; + /** vertical height of moon */ + private int height; + /** horizontal width of moon */ + private int width; + /** + * Default constructor for objects of class Moon + * @param xLeft starting left x coordinate + * @param yTop starting top y coordinate + * @param width width of moon + * @param height height of moon + */ + public Moon(int xLeft, int yTop, int width, int height) + { + this.xLeft = xLeft; + this.yTop = yTop; + this.width = width; + this.height = height; + } + + public void changePos() + { + this.xLeft = this.xLeft +150; + } + + public void resetPos() + { + this.xLeft = 0; + } + + public int getXPos() + { + return this.xLeft; + } + + /** + * creates a yellow ellipse object and fills it + */ + public void draw(Graphics2D g2) + { + Ellipse2D.Double moon = new Ellipse2D.Double(xLeft, yTop, width, height); + g2.setColor(Color.YELLOW); + g2.draw(moon); + g2.fill(moon); + } + + + +} diff --git a/CityscapeLab/Road.java b/CityscapeLab/Road.java new file mode 100644 index 00000000..63e330da --- /dev/null +++ b/CityscapeLab/Road.java @@ -0,0 +1,40 @@ + + +/** + * Write a description of class Road here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Road +{ + /** description of instance variable x (add comment for each instance variable) */ + private int x; + + /** + * Default constructor for objects of class Road + */ + public Road() + { + // initialise instance variables + x = 0; + } + + /** + * An example of a method - replace this comment with your own + * that describes the operation of the method + * + * @pre preconditions for the method + * (what the method assumes about the method's parameters and class's state) + * @post postconditions for the method + * (what the method guarantees upon completion) + * @param y description of parameter y + * @return description of the return value + */ + public int sampleMethod(int y) + { + // put your code here + return x+y; + } + +} diff --git a/CityscapeLab/Sky.java b/CityscapeLab/Sky.java new file mode 100644 index 00000000..e1ef44f1 --- /dev/null +++ b/CityscapeLab/Sky.java @@ -0,0 +1,39 @@ +import java.awt.Color; +import java.awt.Rectangle; +import java.awt.Graphics2D; + +/** + * Creates a blue background for the "sky" + * + * @author Christopher Ng + * @version 6 October 2014 + */ +public class Sky +{ + private int windowHeight; + private int windowWidth; + public Sky(int windowWidth, int windowHeight) + { + this.windowWidth = windowWidth; + this.windowHeight = windowHeight; + } + + public void draw(Graphics2D g2) + { + Rectangle sky = new Rectangle(0, 0, windowWidth, windowHeight); + while (CityscapeComponent.isNight) + { + g2.setColor(Color.BLACK); + g2.draw(sky); + g2.fill(sky); + } + + while (CityscapeComponent.isNight == false) + { + g2.setColor(Color.BLUE); + g2.draw(sky); + g2.fill(sky); + } + } + +} diff --git a/CityscapeLab/Sky.java# b/CityscapeLab/Sky.java# new file mode 100644 index 00000000..a7de10cd --- /dev/null +++ b/CityscapeLab/Sky.java# @@ -0,0 +1,38 @@ +import java.awt.Color; +import java.awt.Rectangle; +import java.awt.Graphics2D; + +/** + * Creates a blue background for the "sky" + * + * @author Christopher Ng + * @version 6 October 2014 + */ +public class Sky +{ + private int windowHeight; + private int windowWidth; + public Sky(int windowWidth, int windowHeight) + { + this.windowWidth = windowWidth; + this.windowHeight = windowHeight; + } + + public void draw(Graphics2D g2) + { + Rectangle sky = new Rectangle(0, 0, windowWidth, windowHeight); + while (CityscapeComponent.isNight) + { + g2.setColor(Color.BLACK); + g2.draw(sky); + g2.fill(sky); + } + while (CityscapeComponent.isNight == false) + { + g2.setColor(Color.BLUE); + g2.draw(sky); + g2.fill(sky); + } + } + +} diff --git a/CityscapeLab/Sun.java b/CityscapeLab/Sun.java new file mode 100644 index 00000000..85f11533 --- /dev/null +++ b/CityscapeLab/Sun.java @@ -0,0 +1,40 @@ + + +/** + * Write a description of class Sun here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Sun +{ + /** description of instance variable x (add comment for each instance variable) */ + private int x; + + /** + * Default constructor for objects of class Sun + */ + public Sun() + { + // initialise instance variables + x = 0; + } + + /** + * An example of a method - replace this comment with your own + * that describes the operation of the method + * + * @pre preconditions for the method + * (what the method assumes about the method's parameters and class's state) + * @post postconditions for the method + * (what the method guarantees upon completion) + * @param y description of parameter y + * @return description of the return value + */ + public int sampleMethod(int y) + { + // put your code here + return x+y; + } + +} diff --git a/CityscapeLab/doc/Building.html b/CityscapeLab/doc/Building.html new file mode 100644 index 00000000..0459007e --- /dev/null +++ b/CityscapeLab/doc/Building.html @@ -0,0 +1,285 @@ + + + + + + + +Building (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+Class Building

+
+java.lang.Object
+  extended by Building
+
+
+
+
public class Building
extends Object
+ + +

+Class that defines a building with starting positions, height, and width. +

+ +

+

+
Version:
+
2 October 2014
+
Author:
+
Christopher Ng
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Building(int xleft, + int ytop, + int width, + int windowHeight) + +
+          Default constructor for objects of class Building
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw(Graphics2D g2) + +
+          Draws a building based on variables initialized in constructor
+ voidsetHillHeight(int hillHeight) + +
+           
+ + + + + + + +
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Building

+
+public Building(int xleft,
+                int ytop,
+                int width,
+                int windowHeight)
+
+
Default constructor for objects of class Building +

+

+
Parameters:
windowHeight - the height of the JFrame window
width - width of the building
xleft - starting x position
ytop - starting y position
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(Graphics2D g2)
+
+
Draws a building based on variables initialized in constructor +

+

+
+
+
+
+ +

+setHillHeight

+
+public void setHillHeight(int hillHeight)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/CityscapeComponent.html b/CityscapeLab/doc/CityscapeComponent.html new file mode 100644 index 00000000..b79b1377 --- /dev/null +++ b/CityscapeLab/doc/CityscapeComponent.html @@ -0,0 +1,370 @@ + + + + + + + +CityscapeComponent (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+Class CityscapeComponent

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by CityscapeComponent
+
+
+
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
+
+
+
+
public class CityscapeComponent
extends JComponent
+ + +

+Class that creates instances of the classes that comprise the cityscape and delegates drawing the + cityscape to these object. +

+ +

+

+
Version:
+
18 July 2014
+
Author:
+
@gcschmit
+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class
JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class
Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
+ + + + + + + +
Fields inherited from class
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
CityscapeComponent() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidpaintComponent(Graphics g) + +
+          An example of a method - replace this comment with your own + that describes the operation of the method
+ + + + + + + +
Methods inherited from class
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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
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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CityscapeComponent

+
+public CityscapeComponent()
+
+
+ + + + + + + + +
+Method Detail
+ +

+paintComponent

+
+public void paintComponent(Graphics g)
+
+
An example of a method - replace this comment with your own + that describes the operation of the method +

+

+
Overrides:
paintComponent in class JComponent
+
+
+
Parameters:
y - description of parameter y
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/CityscapeViewer.html b/CityscapeLab/doc/CityscapeViewer.html new file mode 100644 index 00000000..79780978 --- /dev/null +++ b/CityscapeLab/doc/CityscapeViewer.html @@ -0,0 +1,256 @@ + + + + + + + +CityscapeViewer (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+Class CityscapeViewer

+
+java.lang.Object
+  extended by CityscapeViewer
+
+
+
+
public class CityscapeViewer
extends Object
+ + +

+Class that contains the main method for the program and creates the frame containing the component. +

+ +

+

+
Version:
+
18 July 2014
+
Author:
+
@gcschmit
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CityscapeViewer() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidmain(String[] args) + +
+          main method for the program which creates and configures the frame for the program
+ + + + + + + +
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CityscapeViewer

+
+public CityscapeViewer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(String[] args)
+
+
main method for the program which creates and configures the frame for the program +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/Hill.html b/CityscapeLab/doc/Hill.html new file mode 100644 index 00000000..e7920c33 --- /dev/null +++ b/CityscapeLab/doc/Hill.html @@ -0,0 +1,281 @@ + + + + + + + +Hill (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+Class Hill

+
+java.lang.Object
+  extended by Hill
+
+
+
+
public class Hill
extends Object
+ + +

+Draws a hill at the front of the CityScape +

+ +

+

+
Version:
+
6 October 2014
+
Author:
+
Christopher Ng
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Hill(int xLeft, + int yTop, + int hillWidth, + int hillHeight) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voiddraw(Graphics2D g2) + +
+          creates a hill rectangle and draws it with the graphics object
+ intgetHillHeight() + +
+           
+ + + + + + + +
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Hill

+
+public Hill(int xLeft,
+            int yTop,
+            int hillWidth,
+            int hillHeight)
+
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(Graphics2D g2)
+
+
creates a hill rectangle and draws it with the graphics object +

+

+
+
+
+
+ +

+getHillHeight

+
+public int getHillHeight()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/Moon.html b/CityscapeLab/doc/Moon.html new file mode 100644 index 00000000..8158d6f2 --- /dev/null +++ b/CityscapeLab/doc/Moon.html @@ -0,0 +1,266 @@ + + + + + + + +Moon (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+Class Moon

+
+java.lang.Object
+  extended by Moon
+
+
+
+
public class Moon
extends Object
+ + +

+A class that models an animated moon that moves across the sky. +

+ +

+

+
Version:
+
10/8/14
+
Author:
+
Christopher Ng
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Moon(int xLeft, + int yTop, + int width, + int height) + +
+          Default constructor for objects of class Moon
+  + + + + + + + + + + + +
+Method Summary
+ voiddraw(Graphics2D g2) + +
+          creates a yellow ellipse object and fills it
+ + + + + + + +
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Moon

+
+public Moon(int xLeft,
+            int yTop,
+            int width,
+            int height)
+
+
Default constructor for objects of class Moon +

+

+
Parameters:
xLeft - starting left x coordinate
yTop - starting top y coordinate
width - width of moon
height - height of moon
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(Graphics2D g2)
+
+
creates a yellow ellipse object and fills it +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/Sky.html b/CityscapeLab/doc/Sky.html new file mode 100644 index 00000000..3acb33ac --- /dev/null +++ b/CityscapeLab/doc/Sky.html @@ -0,0 +1,256 @@ + + + + + + + +Sky (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+Class Sky

+
+java.lang.Object
+  extended by Sky
+
+
+
+
public class Sky
extends Object
+ + +

+Creates a blue background for the "sky" +

+ +

+

+
Version:
+
6 October 2014
+
Author:
+
Christopher Ng
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Sky(int windowWidth, + int windowHeight) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddraw(Graphics2D g2) + +
+           
+ + + + + + + +
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Sky

+
+public Sky(int windowWidth,
+           int windowHeight)
+
+
+ + + + + + + + +
+Method Detail
+ +

+draw

+
+public void draw(Graphics2D g2)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/allclasses-frame.html b/CityscapeLab/doc/allclasses-frame.html new file mode 100644 index 00000000..62fbc123 --- /dev/null +++ b/CityscapeLab/doc/allclasses-frame.html @@ -0,0 +1,42 @@ + + + + + + + +All Classes (CityScape) + + + + + + + + + + + +All Classes +
+ + + + + +
Building +
+CityscapeComponent +
+CityscapeViewer +
+Hill +
+Moon +
+Sky +
+
+ + + diff --git a/CityscapeLab/doc/allclasses-noframe.html b/CityscapeLab/doc/allclasses-noframe.html new file mode 100644 index 00000000..463c8649 --- /dev/null +++ b/CityscapeLab/doc/allclasses-noframe.html @@ -0,0 +1,42 @@ + + + + + + + +All Classes (CityScape) + + + + + + + + + + + +All Classes +
+ + + + + +
Building +
+CityscapeComponent +
+CityscapeViewer +
+Hill +
+Moon +
+Sky +
+
+ + + diff --git a/CityscapeLab/doc/constant-values.html b/CityscapeLab/doc/constant-values.html new file mode 100644 index 00000000..5e5bb584 --- /dev/null +++ b/CityscapeLab/doc/constant-values.html @@ -0,0 +1,141 @@ + + + + + + + +Constant Field Values (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/help-doc.html b/CityscapeLab/doc/help-doc.html new file mode 100644 index 00000000..546bbcea --- /dev/null +++ b/CityscapeLab/doc/help-doc.html @@ -0,0 +1,204 @@ + + + + + + + +API Help (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+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.

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/index-all.html b/CityscapeLab/doc/index-all.html new file mode 100644 index 00000000..8a753933 --- /dev/null +++ b/CityscapeLab/doc/index-all.html @@ -0,0 +1,216 @@ + + + + + + + +Index (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +B C D G H M P S
+

+B

+
+
Building - Class in <Unnamed>
Class that defines a building with starting positions, height, and width.
Building(int, int, int, int) - +Constructor for class Building +
Default constructor for objects of class Building +
+
+

+C

+
+
CityscapeComponent - Class in <Unnamed>
Class that creates instances of the classes that comprise the cityscape and delegates drawing the + cityscape to these object.
CityscapeComponent() - +Constructor for class CityscapeComponent +
  +
CityscapeViewer - Class in <Unnamed>
Class that contains the main method for the program and creates the frame containing the component.
CityscapeViewer() - +Constructor for class CityscapeViewer +
  +
+
+

+D

+
+
draw(Graphics2D) - +Method in class Building +
Draws a building based on variables initialized in constructor +
draw(Graphics2D) - +Method in class Hill +
creates a hill rectangle and draws it with the graphics object +
draw(Graphics2D) - +Method in class Moon +
creates a yellow ellipse object and fills it +
draw(Graphics2D) - +Method in class Sky +
  +
+
+

+G

+
+
getHillHeight() - +Method in class Hill +
  +
+
+

+H

+
+
Hill - Class in <Unnamed>
Draws a hill at the front of the CityScape
Hill(int, int, int, int) - +Constructor for class Hill +
  +
+
+

+M

+
+
main(String[]) - +Static method in class CityscapeViewer +
main method for the program which creates and configures the frame for the program +
Moon - Class in <Unnamed>
A class that models an animated moon that moves across the sky.
Moon(int, int, int, int) - +Constructor for class Moon +
Default constructor for objects of class Moon +
+
+

+P

+
+
paintComponent(Graphics) - +Method in class CityscapeComponent +
An example of a method - replace this comment with your own + that describes the operation of the method +
+
+

+S

+
+
setHillHeight(int) - +Method in class Building +
  +
Sky - Class in <Unnamed>
Creates a blue background for the "sky"
Sky(int, int) - +Constructor for class Sky +
  +
+
+B C D G H M P S + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/index.html b/CityscapeLab/doc/index.html new file mode 100644 index 00000000..b865d1d0 --- /dev/null +++ b/CityscapeLab/doc/index.html @@ -0,0 +1,37 @@ + + + + + + + +CityScape + + + + + + + + +<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. +<BR> +Link to<A HREF="Building.html">Non-frame version.</A> + + + diff --git a/CityscapeLab/doc/logfile.txt b/CityscapeLab/doc/logfile.txt new file mode 100644 index 00000000..8582cb18 --- /dev/null +++ b/CityscapeLab/doc/logfile.txt @@ -0,0 +1,70 @@ +Project documentation +<---- javadoc command: ----> +/usr/lib/jvm/java-7-openjdk-amd64/bin/javadoc +-sourcepath +/home/crisptofuring/GitHub/CityScape +-source +1.7 +-classpath +/usr/share/bluej/bluejcore.jar:/usr/share/bluej/junit-4.8.2.jar:/home/crisptofuring/GitHub/CityScape +-d +/home/crisptofuring/GitHub/CityScape/doc +-encoding +UTF-8 +-charset +UTF-8 +-docletpath +/usr/share/bluej/bjdoclet.jar +-doclet +bluej.doclet.doclets.formats.html.HtmlDoclet +-doctitle +CityScape +-windowtitle +CityScape +-author +-version +-nodeprecated +-package +-link +http://download.oracle.com/javase/6/docs/api/ +/home/crisptofuring/GitHub/CityScape/Hill.java +/home/crisptofuring/GitHub/CityScape/CityscapeViewer.java +/home/crisptofuring/GitHub/CityScape/Moon.java +/home/crisptofuring/GitHub/CityScape/Building.java +/home/crisptofuring/GitHub/CityScape/Sky.java +/home/crisptofuring/GitHub/CityScape/CityscapeComponent.java +<---- end of javadoc command ----> +Loading source file /home/crisptofuring/GitHub/CityScape/Hill.java... +Loading source file /home/crisptofuring/GitHub/CityScape/CityscapeViewer.java... +Loading source file /home/crisptofuring/GitHub/CityScape/Moon.java... +Loading source file /home/crisptofuring/GitHub/CityScape/Building.java... +Loading source file /home/crisptofuring/GitHub/CityScape/Sky.java... +Loading source file /home/crisptofuring/GitHub/CityScape/CityscapeComponent.java... +Constructing Javadoc information... +Standard Doclet version 1.7.0_65 +Building tree for all the packages and classes... +Generating /home/crisptofuring/GitHub/CityScape/doc/Building.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/CityscapeComponent.html... +/home/crisptofuring/GitHub/CityScape/CityscapeComponent.java:27: warning - @pre is an unknown tag. +/home/crisptofuring/GitHub/CityScape/CityscapeComponent.java:27: warning - @post is an unknown tag. +/home/crisptofuring/GitHub/CityScape/CityscapeComponent.java:27: warning - @param argument "y" is not a parameter name. +/home/crisptofuring/GitHub/CityScape/CityscapeComponent.java:27: warning - @return tag cannot be used in method with void return type. +Generating /home/crisptofuring/GitHub/CityScape/doc/CityscapeViewer.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/Hill.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/Moon.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/Sky.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/package-frame.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/package-summary.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/package-tree.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/constant-values.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/serialized-form.html... +Building index for all the packages and classes... +Generating /home/crisptofuring/GitHub/CityScape/doc/overview-tree.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/index-all.html... +Building index for all classes... +Generating /home/crisptofuring/GitHub/CityScape/doc/allclasses-frame.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/allclasses-noframe.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/index.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/help-doc.html... +Generating /home/crisptofuring/GitHub/CityScape/doc/stylesheet.css... +4 warnings diff --git a/CityscapeLab/doc/overview-tree.html b/CityscapeLab/doc/overview-tree.html new file mode 100644 index 00000000..2f95ae49 --- /dev/null +++ b/CityscapeLab/doc/overview-tree.html @@ -0,0 +1,152 @@ + + + + + + + +Class Hierarchy (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/package-frame.html b/CityscapeLab/doc/package-frame.html new file mode 100644 index 00000000..27c200ee --- /dev/null +++ b/CityscapeLab/doc/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +<Unnamed> (CityScape) + + + + + + + + + + + +<Unnamed> + + + + +
+Classes  + +
+Building +
+CityscapeComponent +
+CityscapeViewer +
+Hill +
+Moon +
+Sky
+ + + + diff --git a/CityscapeLab/doc/package-list b/CityscapeLab/doc/package-list new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/CityscapeLab/doc/package-list @@ -0,0 +1 @@ + diff --git a/CityscapeLab/doc/package-summary.html b/CityscapeLab/doc/package-summary.html new file mode 100644 index 00000000..202c8128 --- /dev/null +++ b/CityscapeLab/doc/package-summary.html @@ -0,0 +1,173 @@ + + + + + + + + (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package <Unnamed> +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BuildingClass that defines a building with starting positions, height, and width.
CityscapeComponentClass that creates instances of the classes that comprise the cityscape and delegates drawing the + cityscape to these object.
CityscapeViewerClass that contains the main method for the program and creates the frame containing the component.
HillDraws a hill at the front of the CityScape
MoonA class that models an animated moon that moves across the sky.
SkyCreates a blue background for the "sky"
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/package-tree.html b/CityscapeLab/doc/package-tree.html new file mode 100644 index 00000000..77275404 --- /dev/null +++ b/CityscapeLab/doc/package-tree.html @@ -0,0 +1,153 @@ + + + + + + + + Class Hierarchy (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package <Unnamed> +

+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/resources/inherit.gif b/CityscapeLab/doc/resources/inherit.gif new file mode 100644 index 00000000..c814867a Binary files /dev/null and b/CityscapeLab/doc/resources/inherit.gif differ diff --git a/CityscapeLab/doc/serialized-form.html b/CityscapeLab/doc/serialized-form.html new file mode 100644 index 00000000..1a5ee59b --- /dev/null +++ b/CityscapeLab/doc/serialized-form.html @@ -0,0 +1,158 @@ + + + + + + + +Serialized Form (CityScape) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package <Unnamed>
+ +

+ + + + + +
+Class CityscapeComponent extends JComponent implements Serializable
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/CityscapeLab/doc/stylesheet.css b/CityscapeLab/doc/stylesheet.css new file mode 100644 index 00000000..6ea9e516 --- /dev/null +++ b/CityscapeLab/doc/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/CityscapeLab/package.bluej b/CityscapeLab/package.bluej index 1ec1b5b6..c9a3a0b6 100644 --- a/CityscapeLab/package.bluej +++ b/CityscapeLab/package.bluej @@ -2,14 +2,29 @@ dependency1.from=CityscapeViewer dependency1.to=CityscapeComponent dependency1.type=UsesDependency -objectbench.height=100 -objectbench.width=658 -package.editor.height=400 -package.editor.width=560 -package.editor.x=30 -package.editor.y=30 -package.numDependencies=1 -package.numTargets=2 +dependency2.from=CityscapeComponent +dependency2.to=Building +dependency2.type=UsesDependency +dependency3.from=CityscapeComponent +dependency3.to=Sky +dependency3.type=UsesDependency +dependency4.from=CityscapeComponent +dependency4.to=Hill +dependency4.type=UsesDependency +dependency5.from=CityscapeComponent +dependency5.to=Moon +dependency5.type=UsesDependency +dependency6.from=Sky +dependency6.to=CityscapeComponent +dependency6.type=UsesDependency +objectbench.height=76 +objectbench.width=1660 +package.editor.height=854 +package.editor.width=1562 +package.editor.x=-8 +package.editor.y=-8 +package.numDependencies=6 +package.numTargets=6 package.showExtends=true package.showUses=true project.charset=UTF-8 @@ -17,29 +32,81 @@ readme.editor.height=700 readme.editor.width=900 readme.editor.x=0 readme.editor.y=22 -target1.editor.height=700 -target1.editor.width=900 -target1.editor.x=70 -target1.editor.y=50 +target1.editor.height=1026 +target1.editor.width=965 +target1.editor.x=13 +target1.editor.y=89 target1.height=50 -target1.name=CityscapeViewer -target1.naviview.expanded=false +target1.name=Hill +target1.naviview.expanded=true target1.showInterface=false target1.type=ClassTarget target1.typeParameters= -target1.width=130 -target1.x=70 -target1.y=10 +target1.width=80 +target1.x=270 +target1.y=20 target2.editor.height=700 target2.editor.width=900 -target2.editor.x=368 -target2.editor.y=173 +target2.editor.x=722 +target2.editor.y=290 target2.height=50 -target2.name=CityscapeComponent +target2.name=CityscapeViewer target2.naviview.expanded=false target2.showInterface=false target2.type=ClassTarget target2.typeParameters= -target2.width=160 +target2.width=130 target2.x=70 -target2.y=70 +target2.y=10 +target3.editor.height=1010 +target3.editor.width=1036 +target3.editor.x=605 +target3.editor.y=0 +target3.height=50 +target3.name=Moon +target3.naviview.expanded=true +target3.showInterface=false +target3.type=ClassTarget +target3.typeParameters= +target3.width=80 +target3.x=450 +target3.y=160 +target4.editor.height=1000 +target4.editor.width=1282 +target4.editor.x=1600 +target4.editor.y=25 +target4.height=50 +target4.name=Building +target4.naviview.expanded=true +target4.showInterface=false +target4.type=ClassTarget +target4.typeParameters= +target4.width=80 +target4.x=180 +target4.y=180 +target5.editor.height=700 +target5.editor.width=900 +target5.editor.x=647 +target5.editor.y=193 +target5.height=50 +target5.name=Sky +target5.naviview.expanded=true +target5.showInterface=false +target5.type=ClassTarget +target5.typeParameters= +target5.width=80 +target5.x=260 +target5.y=130 +target6.editor.height=1000 +target6.editor.width=1009 +target6.editor.x=708 +target6.editor.y=100 +target6.height=50 +target6.name=CityscapeComponent +target6.naviview.expanded=false +target6.showInterface=false +target6.type=ClassTarget +target6.typeParameters= +target6.width=160 +target6.x=70 +target6.y=70 diff --git a/practice/Car.java b/practice/Car.java new file mode 100644 index 00000000..9d06662b --- /dev/null +++ b/practice/Car.java @@ -0,0 +1,59 @@ + + +/** + * The Car class models a car with constant fuel efficiency and tracks how much fuel is left in its tank. + * + * @author crisptofuring + * @version 12 September 2014 + */ +public class Car +{ + /** fuel efficiency modeled in mpg */ + private double fuelEfficiency; + + /** + * the fuel, measured in gallons, left in this car's tank + */ + private double fuelInTank; + + /** + * constructor for Car that specififes fuel efficiency + */ + public Car(double fuelEfficiency) + { + this.fuelEfficiency = fuelEfficiency; + fuelInTank = 0; + } + + /** + *adds specified no. of gallons to this car's tank + * @pre specified number of gallons will not exceed this car's tank capacity + * @param gallons number of gallons of fuel to add to this car's tank + */ + public void addGas(double gallons) + { + this.fuelInTank = this.fuelInTank + gallons; + } + + + /** + * Reduces fuel in the car based on car's fuel efficiency and specified distance traveled + * @pre specified no. of miles will not consume more than the amount of fuel in this car's tank. + * @param miles the number of miles driven + */ + public void drive(double miles) + { + double gallonsBurned = miles/this.fuelEfficiency; + this.fuelInTank = this.fuelInTank - gallonsBurned; + } + + /** + * returns the number of gallons of gas remaining in this car's tank + * @return double number of gallons of gas remaining in this car's tank + */ + public double getGasInTank() + { + return this.fuelInTank; + } + +} diff --git a/practice/CarTest.java b/practice/CarTest.java new file mode 100644 index 00000000..986d1e33 --- /dev/null +++ b/practice/CarTest.java @@ -0,0 +1,75 @@ + + +import static org.junit.Assert.*; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +/** + * Write a description of test class CarTest here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class CarTest +{ + /** + * Default constructor for objects of class CarTest + */ + public CarTest() + { + + } + + /** + * Sets up the test fixture. + * + * Called before every test case method. + */ + @Before + public void setUp() + { + } + + /** + * Tears down the test fixture. + * + * Called after every test case method. + */ + @After + public void tearDown() + { + } + @Test + public void testGetGasInTank() + { + Car testCar = new Car(50); + double gallons = testCar.getGasInTank(); + assertEquals(0.0, gallons, 1e-6); + } + @Test + public void testAddGas() + { + Car testCar = new Car(50); + testCar.addGas(20); + double gallons = testCar.getGasInTank(); + assertEquals(20.0, gallons, 1e-6); + testCar.addGas(5); + gallons = testCar.getGasInTank(); + assertEquals(25.0, gallons, 1e-6); + } + @Test + public void testDrive() + { + Car testCar = new Car(50); + testCar.addGas(20); + testCar.drive(25); + double gallons = testCar.getGasInTank(); + assertEquals(19.5, gallons, 1e-6); + + testCar.drive(100); + gallons = testCar.getGasInTank(); + assertEquals(17.5, gallons, 1e-6); + } + +} diff --git a/practice/README.TXT b/practice/README.TXT new file mode 100644 index 00000000..0de5dc9d --- /dev/null +++ b/practice/README.TXT @@ -0,0 +1,13 @@ +------------------------------------------------------------------------ +This is the project README file. Here, you should describe your project. +Tell the reader (someone who does not know anything about this project) +all she needs to know. The comments should usually include at least: +------------------------------------------------------------------------ + +PROJECT TITLE: +PURPOSE OF PROJECT: +VERSION or DATE: +DEPENDENCIES: +HOW TO START THIS PROJECT: +AUTHORS: +USER INSTRUCTIONS: diff --git a/practice/doc/Car.html b/practice/doc/Car.html new file mode 100644 index 00000000..c786e45b --- /dev/null +++ b/practice/doc/Car.html @@ -0,0 +1,301 @@ + + + + + + + +Car (practice) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+Class Car

+
+java.lang.Object
+  extended by Car
+
+
+
+
public class Car
extends java.lang.Object
+ + +

+The Car class models a car with constant fuel efficiency and tracks how much fuel is left in its tank. +

+ +

+

+
Version:
+
12 September 2014
+
Author:
+
crisptofuring
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Car(double fuelEfficiency) + +
+          constructor for Car that specififes fuel efficiency
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddGas(double gallons) + +
+          adds specified no.
+ voiddrive(double miles) + +
+          Reduces fuel in the car based on car's fuel efficiency and specified distance traveled
+ doublegetGasInTank() + +
+          returns the number of gallons of gas remaining in this car's tank
+ + + + + + + +
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Car

+
+public Car(double fuelEfficiency)
+
+
constructor for Car that specififes fuel efficiency +

+

+ + + + + + + + +
+Method Detail
+ +

+addGas

+
+public void addGas(double gallons)
+
+
adds specified no. of gallons to this car's tank +

+

+
Parameters:
gallons - number of gallons of fuel to add to this car's tank
+
+
+
+ +

+drive

+
+public void drive(double miles)
+
+
Reduces fuel in the car based on car's fuel efficiency and specified distance traveled +

+

+
Parameters:
miles - the number of miles driven
+
+
+
+ +

+getGasInTank

+
+public double getGasInTank()
+
+
returns the number of gallons of gas remaining in this car's tank +

+

+ +
Returns:
double number of gallons of gas remaining in this car's tank
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/practice/doc/allclasses-frame.html b/practice/doc/allclasses-frame.html new file mode 100644 index 00000000..7edad5e8 --- /dev/null +++ b/practice/doc/allclasses-frame.html @@ -0,0 +1,32 @@ + + + + + + + +All Classes (practice) + + + + + + + + + + + +All Classes +
+ + + + + +
Car +
+
+ + + diff --git a/practice/doc/allclasses-noframe.html b/practice/doc/allclasses-noframe.html new file mode 100644 index 00000000..d7e9d2b2 --- /dev/null +++ b/practice/doc/allclasses-noframe.html @@ -0,0 +1,32 @@ + + + + + + + +All Classes (practice) + + + + + + + + + + + +All Classes +
+ + + + + +
Car +
+
+ + + diff --git a/practice/doc/constant-values.html b/practice/doc/constant-values.html new file mode 100644 index 00000000..b098a6d7 --- /dev/null +++ b/practice/doc/constant-values.html @@ -0,0 +1,141 @@ + + + + + + + +Constant Field Values (practice) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/practice/doc/help-doc.html b/practice/doc/help-doc.html new file mode 100644 index 00000000..eb2387e5 --- /dev/null +++ b/practice/doc/help-doc.html @@ -0,0 +1,204 @@ + + + + + + + +API Help (practice) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+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.

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/practice/doc/index-all.html b/practice/doc/index-all.html new file mode 100644 index 00000000..370f1780 --- /dev/null +++ b/practice/doc/index-all.html @@ -0,0 +1,164 @@ + + + + + + + +Index (practice) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A C D G
+

+A

+
+
addGas(double) - +Method in class Car +
adds specified no. +
+
+

+C

+
+
Car - Class in <Unnamed>
The Car class models a car with constant fuel efficiency and tracks how much fuel is left in its tank.
Car(double) - +Constructor for class Car +
constructor for Car that specififes fuel efficiency +
+
+

+D

+
+
drive(double) - +Method in class Car +
Reduces fuel in the car based on car's fuel efficiency and specified distance traveled +
+
+

+G

+
+
getGasInTank() - +Method in class Car +
returns the number of gallons of gas remaining in this car's tank +
+
+A C D G + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/practice/doc/index.html b/practice/doc/index.html new file mode 100644 index 00000000..76be49f9 --- /dev/null +++ b/practice/doc/index.html @@ -0,0 +1,37 @@ + + + + + + + +practice + + + + + + + + +<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. +<BR> +Link to<A HREF="Car.html">Non-frame version.</A> + + + diff --git a/practice/doc/logfile.txt b/practice/doc/logfile.txt new file mode 100644 index 00000000..70a18221 --- /dev/null +++ b/practice/doc/logfile.txt @@ -0,0 +1,53 @@ +Project documentation +<---- javadoc command: ----> +C:\PROGRA~1\Java\JDK17~1.0_6\bin\javadoc.exe +-sourcepath +\\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice +-source +1.7 +-classpath +C:\Program Files\BlueJ\lib\bluejcore.jar;C:\Program Files\BlueJ\lib\junit-4.8.2.jar;\\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice +-d +\\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc +-encoding +UTF-8 +-charset +UTF-8 +-docletpath +C:\Program Files\BlueJ\lib\bjdoclet.jar +-doclet +bluej.doclet.doclets.formats.html.HtmlDoclet +-doctitle +practice +-windowtitle +practice +-author +-version +-nodeprecated +-package +-link +C:\Users\Public\Desktop\JavaDocs\ +\\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice/Car.java +<---- end of javadoc command ----> +Loading source file \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice/Car.java... +Constructing Javadoc information... +javadoc: warning - Error reading file: C:\Users\Public\Desktop\JavaDocs\/package-list +Standard Doclet version 1.7.0_60 +Building tree for all the packages and classes... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\Car.html... +\\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\Car.java:32: warning - @pre is an unknown tag. +\\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\Car.java:42: warning - @pre is an unknown tag. +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\package-frame.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\package-summary.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\package-tree.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\constant-values.html... +Building index for all the packages and classes... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\overview-tree.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\index-all.html... +Building index for all classes... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\allclasses-frame.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\allclasses-noframe.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\index.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\help-doc.html... +Generating \\NNHSSRV2.hs.sd203.org\CYNg$\GitHub\unit2Classes\practice\doc\stylesheet.css... +3 warnings diff --git a/practice/doc/overview-tree.html b/practice/doc/overview-tree.html new file mode 100644 index 00000000..86b41c83 --- /dev/null +++ b/practice/doc/overview-tree.html @@ -0,0 +1,144 @@ + + + + + + + +Class Hierarchy (practice) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/practice/doc/package-frame.html b/practice/doc/package-frame.html new file mode 100644 index 00000000..e46af51b --- /dev/null +++ b/practice/doc/package-frame.html @@ -0,0 +1,33 @@ + + + + + + + +<Unnamed> (practice) + + + + + + + + + + + +<Unnamed> + + + + +
+Classes  + +
+Car
+ + + + diff --git a/practice/doc/package-list b/practice/doc/package-list new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/practice/doc/package-list @@ -0,0 +1 @@ + diff --git a/practice/doc/package-summary.html b/practice/doc/package-summary.html new file mode 100644 index 00000000..90929157 --- /dev/null +++ b/practice/doc/package-summary.html @@ -0,0 +1,152 @@ + + + + + + + + (practice) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package <Unnamed> +

+ + + + + + + + + +
+Class Summary
CarThe Car class models a car with constant fuel efficiency and tracks how much fuel is left in its tank.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/practice/doc/package-tree.html b/practice/doc/package-tree.html new file mode 100644 index 00000000..28806459 --- /dev/null +++ b/practice/doc/package-tree.html @@ -0,0 +1,145 @@ + + + + + + + + Class Hierarchy (practice) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package <Unnamed> +

+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/practice/doc/resources/inherit.gif b/practice/doc/resources/inherit.gif new file mode 100644 index 00000000..c814867a Binary files /dev/null and b/practice/doc/resources/inherit.gif differ diff --git a/practice/doc/stylesheet.css b/practice/doc/stylesheet.css new file mode 100644 index 00000000..6ea9e516 --- /dev/null +++ b/practice/doc/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/practice/package.bluej b/practice/package.bluej new file mode 100644 index 00000000..ea8e8a2f --- /dev/null +++ b/practice/package.bluej @@ -0,0 +1,42 @@ +#BlueJ package file +dependency1.from=CarTest +dependency1.to=Car +dependency1.type=UsesDependency +objectbench.height=100 +objectbench.width=743 +package.editor.height=579 +package.editor.width=645 +package.editor.x=211 +package.editor.y=400 +package.numDependencies=1 +package.numTargets=2 +package.showExtends=true +package.showUses=true +project.charset=UTF-8 +target1.association=CarTest +target1.editor.height=1026 +target1.editor.width=1696 +target1.editor.x=-8 +target1.editor.y=-8 +target1.height=50 +target1.name=Car +target1.naviview.expanded=true +target1.showInterface=false +target1.type=ClassTarget +target1.typeParameters= +target1.width=80 +target1.x=80 +target1.y=70 +target2.editor.height=1026 +target2.editor.width=1696 +target2.editor.x=-8 +target2.editor.y=-8 +target2.height=50 +target2.name=CarTest +target2.naviview.expanded=true +target2.showInterface=false +target2.type=UnitTestTargetJunit4 +target2.typeParameters= +target2.width=80 +target2.x=110 +target2.y=40