• Post Reply Bookmark Topic Watch Topic
  • New Topic

Draw an arrow head on the end of a line  RSS feed

 
Chris Robinson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose this could end up being a geometry question as much as a Java question but here goes.
I want to draw a number of lines on a Canvas object. If for each line I have a start (x,y) value and an end (x,y) value what is the easiest way to draw an arrow on the endpoint?
Is there a Java object or method that will do it for me or will I need to do some good old fashioned maths? I could use some help in either case
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!