@@ -0,0 +1,2377 @@
+package edu.ucsb.cs56.w14.drawings.maxsorenson.advanced;%0Aimport java.awt.geom.GeneralPath; // combinations of lines and curves%0Aimport java.awt.geom.AffineTransform; // translation, rotation, scale%0Aimport java.awt.Shape; // general class for shapes%0A%0A// all imports below this line needed if you are implementing Shape%0Aimport java.awt.geom.Point2D; %0Aimport java.awt.geom.Line2D; %0Aimport java.awt.geom.Rectangle2D;%0Aimport java.awt.geom.Ellipse2D;%0Aimport java.awt.Rectangle;%0Aimport java.awt.geom.PathIterator;%0Aimport java.awt.geom.AffineTransform;%0A%0Aimport edu.ucsb.cs56.w14.drawings.utilities.ShapeTransforms;%0Aimport edu.ucsb.cs56.w14.drawings.utilities.GeneralPathWrapper;%0A%0A/**%0A   A vector drawing of a television with%0A   an antenna and buttons that implements the %0A   Shape interface, and so can be drawn, as well as%0A   rotated, scaled, etc.%0A      %0A   @author Max Sorenson %0A   @version for CS56, Winter 14, UCSB%0A   %0A*/%0Apublic class TelevisionAntenna extends Television implements Shape%0A%7B%0A    /**%0A       Constructor%0A%0A       @param x x coord of lower left corner of television%0A       @param y y coord of lower left corner of television%0A       @param width width of the television%0A       @param height of television (including stand but not antenna)%0A     */%0A    public TelevisionAntenna(double x, double y, double width, double height)%0A    %7B%0A%09super(x,y,width,height);%0A       %0A%09GeneralPath g = this.get();%0A                      %0A        // make the television.   Remember that y goes DOWN the page,%0A        // so we ADD to y to get a %22lower%22 value on the screen%0A%09%0A%09double antennaHeight = y - height - ( height * .05);%0A%09double buttonHeight = (y + height) -( height * .075);%0A%0A        Line2D.Double leftAntenna = %0A            new Line2D.Double (x + width/2.0, y,%0A                               x, antennaHeight );%0A                               %0A        Line2D.Double rightAntenna =%0A            new Line2D.Double (x + width/2.0, y,%0A                               x + width, antennaHeight );%0A%09%0A%09Ellipse2D.Double button1 = %0A%09    new Ellipse2D.Double (x + width*.05, buttonHeight,%0A%09%09%09%09  width*.05, height*.05 );%0A%09%0A        // put the whole television together%0A       %0A        GeneralPath wholeTelevision = this.get();%0A        wholeTelevision.append(rightAntenna, false);%0A        wholeTelevision.append(leftAntenna, false);%0A        wholeTelevision.append(button1, false); %0A        %0A    %7D%0A%0A%7D%0A

why wasnt this added? television antenna