Question: The Text class must contain a constructor that is supplied the color that defines the text color, a point that specifies the text location and

The Text class must contain a constructor that is supplied the color that defines the text color, a
point that specifies the text location and a string containing the text to be displayed. It must also
contain a draw function because it is extends the abstract class Image. The draw function must
draw the text using the method drawString in Graphics class.
The SolidPolygon class must contain a constructor that is passed the number of vertices in the
polygon and its color. It must define the method drawPolygon because it is extends the abstract
class Polygon_. It should call the fillPolygon method of the Graphics class to draw a solid
polygon.
The IsoscelesTriangle class must have a constructor that is supplied the color of the triangle,
a point that specifies the location of the top vertex, and the height and width of the triangle. It
must allocate the arrays of x and y coordinates that defines the triangle and it must compute their
values.
The Parallelogram class must have a constructor that is supplied the color of the parallelogram,
two points that specifies the location of the upper left and lower right vertices in addition to
an x offset value that specifies the x distance between the upper and lower left vertices. It must
allocate the arrays of x and y coordinates that defines the parallelogram and it must compute their
values.
The RegularPolygon class must contain a constructor that is supplied the color of the polygon,
the number of sides, a point that specifies the location of its center, and the radius, which defines
the distance between the center and each of the vertices. It must allocate the arrays of x and y
coordinates that defines the regular polygon and it must compute their values.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!