[JAVA2D] Elastic band

2002-10-23 Thread Gary Roussak



Can anyone point me at any examplesthat tell 
me how to program the stretching of a rectangular 'elastic band' over some form 
of drawing canvas, using aclick  drag action of the 
mouse?Hopefully you know what I mean - I'm trying to simulate in 
Java 2D the metaphor used by many of the typical drawing programs for selecting 
a rectangular area of the screen.

Many thanks.


Re: [JAVA2D] Elastic band

2002-10-23 Thread Dmitri Trembovetski
  Hi Gary,

  one of the demos shipped with Java SDK does just that,
  check out
  java sdk dir/demo/applets/DrawTest

  Thank you,
Dmitri


On Wed, Oct 23, 2002 at 09:16:0p +0100, Gary Roussak wrote:
  Can anyone point me at any examples that tell me how to program the stretching of a 
 rectangular 'elastic band' over some form of drawing canvas, using a click  drag 
 action of the mouse ? Hopefully you know what I mean - I'm trying to simulate in Java 
 2D the metaphor used by many of the typical drawing programs for selecting a 
 rectangular area of the screen.
 
  Many thanks.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.