aspose file tools*
The moose likes Game Development and the fly likes Plotting Points Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Plotting Points" Watch "Plotting Points" New topic
Author

Plotting Points

colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 744
I can't find a method in Graphics2D to plot a point.
I can draw a line, eg g.drawLine(10,10,40,40);
but how do I plot a point at (x,y), without having to use:
g.drawLine(x,y,x,y); ???
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535

You can also use 'fillOval' or Rectangle2D.
 
 
subject: Plotting Points