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

  Create a complex vector illustration drawing an object

create a complex vector illustration of your own, drawing an object or group of objects designed with a background in Adobe Illustrator. Or, you may draw a portrait or scene

  How graphics will be used in the site

how graphics will be used in the site

  Use illustrator to draw an elephant

Use illustrator to draw an elephant like the picture that i uploaded, with colors and background. Also use different layers to draw

  Java applets based question

Class Graphics contains technique draw Oval, which takes as discussions the same 4-arguments as method drawRect.

  Development 1 modelingyour program should be able to load

development 1. modelingyour program should be able to load standard 3ds file format geometric models.since the sample

  Create a dhcp and dns plan

To prepare for this assignment, do the following:Complete the required LabSim labs for this week.Research this topic and include at least three references from articles, books, or Web sites to support your paper.

  Program using webgl and javascript

Program using WebGL and JavaScript. Depict an 8 legged spider. Start with each leg just one cylinder

  Research a nonprofit organization that has faced a public

research a nonprofit organization that has faced a public relations crisis within the past few years.imagine that you

  Image synthesis with layer masks

Remove some objects in the scene so that the image looks better. In your report, paste the before and after image, and also describe the process.

  Question 1a the term multimedia describes a number of

question 1a the term multimedia describes a number of diverse technologies that allow visual media to be taken and

  Draw a square logo for dog food

draw a square logo for dog food, withi a large bag in the middle, and write text on the bag. please make it attractive to people. with colors and any techniques that you want to use

  Write a gui-based program that analyzes a round of golf

Write a GUI-Based program that analyzes a round of golf. You will retrieve the data for 18 holes from a text file. On each line in the file will be par for that hole (3, 4, or 5) and your score for that hole. Your program should read the file and ..

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