How can the line be drawn by drawline method

Assignment Help Computer Graphics
Reference no: EM13950871

1. How does a programmer typically get access to a Graphics object when coding an applet?

One must be created with the Graphics constructor.
It is an instance variable of the class JApplet.
It is a parameter of the paint method.

2. What can be stated about the line drawn by the following code? g.drawLine( 100, 200, 300, 200 )

the line is vertical.
The line is horizontal.
The line is a diagonal.
None the above.

3. What do the arguments 100, 200 represent in the following statement? g.drawRect( 10, 20, 100, 200)

The (x,y) coordinate of the upper-left corner of the rectangle we are drawing
The width and height of the rectangle we are drawing.
The height and width of the rectangle we are drawing.
The (x,y) coordinate of the lower-right corner of the rectangle we are drawing.

4. What is the (x,y) coordinate of the upper-right corner of the rectangle being drawn? g.fillRect( 10, 20, 250, 350 );

5. This code draws a filled rectangle with a width of 100 pixels and a height of 300 pixels, starting at the coordinate (50,30).
//assume you have a Graphics object called g
//your code goes here

6. This code draws a circle of radius 100 with its center located at (200,200).
//assume you have a Graphics object called g
//your code goes here

Reference no: EM13950871

Questions Cloud

What is probability that the passenger is using airport a : Suppose that, in a particular city, airport A handles 50% of all airline traffic, and airports B and C handle 30% and 20%, respectively. The detection rates for weapons at the three airports are .9, .5, and .4, respectively. If a passenger at one ..
Employment contract with computers : In March 2011 Chu, at age 50, decides to retire. As part of his employment contract with Computers Pty Ltd, Chu had agreed that he will not compete against the company in New South Wales for two years.
What is the amount of the cash flow to creditors : At the beginning of the year, the long-term debt of a firm was 300 and total debt was 350. At the end of the year, long-term debt was 250 and total debt was 360. The interest paid was 32. What is the amount of the cash flow to creditors?
Yield to maturity reflects the current market rate : If coupon rate is lower than its yield to maturity, then the bond would sell at a discount. Stock valuation models depend on all past and future dividend payments.? Yield to maturity reflects the current market rate and it is the appropriate discount..
How can the line be drawn by drawline method : How does a programmer typically get access to a Graphics object when coding an applet?
Planning a weekend camping trip : You are the father or mother of a family of four (kids ages 13 and 15) planning a weekend camping trip. Develop a responsibility matrix for the work that needs to be done prior to starting your trip.
Discuss in detail what wdg consulting likely means : Discuss in detail what WDG Consulting likely means by each of those steps - prepare a decision support paper for senior management on the topic of site location and consultant hiring. Responses should assume a "what if" approach.
Prepare journal entries to record the above transactions : Prepare journal entries to record the above transactions and events of Kash Company. (Do not round intermediate calculations and round your final answers to the nearest dollar amount. Omit the $ sign in your response.)
Demographic and an economic trend : Discuss a demographic and an economic trend related to China's power and its impact on marketers in your country. Support your discussion of these trends with statistics.

Reviews

Write a Review

Computer Graphics Questions & Answers

  Need of slide presentation

The leadership within that company has decided to pursue the idea of outsourcing a virtual desktop solution that would allow much more flexibility and secure desktop delivery. You know that there are multiple virtual desktop solutions out there, b..

  Design and implement a graphical user interface

Design and implement a graphical user interface (GUI) that lets a user draw geometric objects such as rectangles, line or circles segments. The geometric objects are two be "entered" with clicks of the mouse

  Implement an android application

When the application starts, it presents the user with a calendar displaying the dates of the current month and year and 6 buttons labelled Create Appointment, View/Edit Ap-pointments, Delete Appointment, Move Appointment, Search and Translate App..

  Bullhow ismight the strategic plan be communicated to

bullhow ismight the strategic plan be communicated to various levels o management a variety of differing teams and to

  1 write a four to eight 4-8 page paper in which youcreate

1. write a four to eight 4-8 page paper in which youcreate an environmental scan for the company indicating the most

  1 what are the three key stages and phases that

1. what are the three key stages and phases that characterize multilateral negotiations?a.nbspthe pre-negotiation stage

  Question 1a portray for a split second the four essential

question 1a portray for a split second the four essential elements of a design pattern.b what are factories accountable

  Way in which cli excels compared to gui

In your role as a user advocate, identify and describe one (1) way in which CLI excels compared to GUI, and explain whether or not those features are available in a GUI

  Question 1jarum industrial tools is considering a 3-year

question 1jarum industrial tools is considering a 3-year project to improve its production efficiency. buying a new

  Make a list of eight shots in picture composition

What are the specific instructions that the director gives to the camera operator to perform each operation Make a list of eight shots in picture composition

  What will the histogram of pixel intensities look like

Draw the cumulative histogram for this image (see Figure 1). What will the histogram of pixel intensities look like after applying histogram equalization?

  1 what is a business process and why do businesses use them

1. what is a business process and why do businesses use them? why are efficient business processes key to maximizing

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd