Shared Flashcard Set

Details

Graphics Methods
Methods of the Graphics class
9
Computer Science
Kindergarten
09/23/2010

Additional Computer Science Flashcards

 


 

Cards

Term
Write a method that will draw a String Literal at the given point (y,x)
Definition
drawString("Hello",y,x);
Term
Call the method that will change the color of the Graphics object g.
Definition
g.setColor(Color.RED);
Term
Call a method that wil draw a semi-circle that has dimentions of x length, y height; is positioned at (a,b); and begins at a 6:00 position. (filled)
Definition
fillArc(a,b,x,y,90,270);
Term

Call a method that wil draw a semi-circle that has dimentions of x length, y height; is positioned at (a,b); and begins at a 6:00 position. (not filled)

 

Definition

drawArc(a,b,x,y,90,270);

 

Term
Draw a circle starting at position (x,y) with a radius of 20.
Definition
drawOval(x,y,40,40);
Term
Draw an oval at position (x,y) with the length greater than the height. (filled)
Definition
fillOval(x,y,100,50);
Term
Draw a square with the graphics class.
Definition
g.drawRect(20,20,50,50);
Term
Draw a rectangle with dimetions 50,200.(filled)
Definition
fillRect(20,20,50,200);
Term
Draw a red Line witht the graphics class.
Definition

g.setColor(Color.RED);

g.drawLine(20,20,200,200);

Supporting users have an ad free experience!