Question

QUESTION 1 Which of the following methods would be implemented by the developer when drawing customized...


QUESTION 1

Which of the following methods would be implemented by the developer when drawing customized 2-D Graphics on a View?


a.invalidate
b.draw

c.onDraw

d.drawSquare


QUESTION 2

Which of the following methods will correctly request a re-drawing of the customized 2-D graphics on a View object once this specified method is invoked?

a.draw

b.invalidate

c.onDraw

d.validate



QUESTION 3

What type of object is passed to the onDraw method and is used for drawing customized graphics on the View?

a.Graphics?


b.Canvas?


c. CoreGraphicsContext?


d. View?


QUESTION 4

The overriden View's onDraw method can be invoked directly from any method outside of the Customized View's class.



a.True


b.False


Homework Answers

Answer #1

1) c. onDraw()

Reason. onDraw() can be used by view to draw itself.

2) b. invalidate ()

Reason: invalidate() correctly request a re-drawing of the customized 2-D graphics on a View object once this specified method is invoked.

3) b. Canvas

Reason: Canvas object is passed to the onDraw method and is used for drawing customized graphics on the View.

4) False

Reason: The overriden View's onDraw method cannot be invoked directly from any method outside of the Customized View's class.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1-To create an ArrayList of strings, which of the following is correct? `a ArrayList<String> list =...
1-To create an ArrayList of strings, which of the following is correct? `a ArrayList<String> list = new ArrayList<String>(); b ArrayList<String> list = new String<String>​[]; c ArrayList<String> list = new ArrayList<String>; d ArrayList​[String] list = new ArrayList​[String]; 2-All instance variables? a Are assigned a default value if they are not initialized b Must be initialized as part of their declaration c Are assigned an arbitrary value if they are not initialized d Must be initialized by the constructor 3-An instance method...
JAVA QUIZ Question 1 Which of the following is false about a "super" call in a...
JAVA QUIZ Question 1 Which of the following is false about a "super" call in a sub class's constructor? Select one: a. It must be the first statement in the constructor b. If you don't include it Java will c. If you don't include it you must have a 0 parameter constructor coded in the super class or no constructors coded at all in the super class d. The sub class constructor containing the super call and the called super...
1 Which of the following statements is TRUE regarding time series forecasting methods? a Moving average...
1 Which of the following statements is TRUE regarding time series forecasting methods? a Moving average (MA) method is appropriate for forecasting an item that shows seasonal pattern b By assigning larger weight to the most recent period data, weighted moving average (WMA) method is more reflective to the changes in the most recent period of data than MA method c Simple exponential smoothing method is NOT appropriate for forecasting stable item without trend d Linear trend line method is...
Which of the following would NOT be considered an "event"? Pressing the up arrow key to...
Which of the following would NOT be considered an "event"? Pressing the up arrow key to move text on a GUI Compiling the code for a GUI Dragging the mouse across the GUI Clicking a button on a GUI QUESTION 2 Which which Event class does MouseEvent extend? InputEvent ActionEvent KeyEvent WindowEvent QUESTION 3 There are three parts of an event. Which of the following is NOT part of an event? The source - the source is where the event...
Answer all the following multiple choices with the right answer. Question 1 Which object(s) would you...
Answer all the following multiple choices with the right answer. Question 1 Which object(s) would you use to describe the shape of the 2p orbital? Question 1 options: a) a circle b) a sphere c) a dumb-bell d) two perpendicular dumb-bells e) a doughnut Question 2 Which situation must be true for two electrons to occupy the same orbital? Question 2 options: a) The electrons must have low energy. b) The electrons must have identical sets of quantum numbers. c)...
Question 1 of 15 Which of the following is not a recommended starting point to enter...
Question 1 of 15 Which of the following is not a recommended starting point to enter sales of products/services? A. Quick Create > Invoice B. Register > New transaction C. Quick Create > Sales Receipt D. Customer detail page > New transaction E. Transactions > Sales > New transaction Question 2 of 15 Which of the following statements accurately describes bank rules? A. Bank rules are imported from the Bank's website into the For Review tab in the Banking Center...
1- which one of the following statements regarding valuation is false a when using the discounted...
1- which one of the following statements regarding valuation is false a when using the discounted free cash flow model, we should use a firm's wacc b. the comparables method takes into acount important differences between different firms c the difference between the discounted free cah flow model and the dividend discount model is that the latter computes a firms stock price directly while the free cash flows model has to make adjustments to get the share price d one...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime and criminology? a. Law in action departs substantially from the ideal behavior of the law. b. Focusing only on legally criminalized behavior makes it impossible to consider the impact of gender, race, age and ethnicity. c. Legalistic definitions ignore acts that cause great harm. d. The legalistic model suggests that these are absolute standards for judging right and wrong. e. All of the above....
Question 1 Which of the following are ways to improve your global and intercultural fluency? Question...
Question 1 Which of the following are ways to improve your global and intercultural fluency? Question 1 options: Travel Make new friends Engage in friendly debate All of the above Question 2 What is service learning? Question 2 options: The knowledge, skills, and motivation that enable individuals to adapt effectively in cross-cultural environments A structured program that alternates work experiences in a career field with classes for a semester or a year to integrate classroom learning in practical work settings...
1) Consider the following Java program, which one of the following best describes "setFlavor"? public class...
1) Consider the following Java program, which one of the following best describes "setFlavor"? public class Food {     static int count;     private String flavor = "sweet";     Food() { count++; }     void setFlavor(String s) { flavor = s; }     String getFlavor() { return flavor; }     static public void main(String[] args) {         Food pepper = new Food();         System.out.println(pepper.getFlavor());     } } a. a class variable b. a constructor c. a local object variable d....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT