Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

draw3DRect, drawArc 1

Status
Not open for further replies.

theraccoon

Programmer
May 6, 2011
5
GR
Hello everyone, I will probably have more questions, I 'm a total beginner in java graphics(I know java a little), and I would like to ask you, the first two integers what represent if not the width and height? I mean x and y. And the last ones in drawArc, what are they exactly? Thank you.
 
From the doc

Code:
x - the x coordinate of the upper-left corner of the arc to be drawn.
y - the y coordinate of the upper-left corner of the arc to be drawn.
width - the width of the arc to be drawn.
height - the height of the arc to be drawn.
startAngle - the beginning angle.
arcAngle - the angular extent of the arc, relative to the start angle.

Cheers,
Dian
 
Thank you so much! I didn't understand a few things, though. When we say the width and height of the arc, we mean the width and height of the parallelogram that contains the arc? And I don't understand the last angle, can you expaint it to me please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top