Results 1 to 3 of 3
  1. #1
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Default Rotating multiple affineTransforms

    Hi,

    I have a list of affineTransforms being iterated through, and for each I have a rotate method being called, the problem is, when the iterator gets to the second affinetransform, the rotate method is attached to the second affinetransform and the first ones rotate angle goes back to zero. Has anyone ever had this problem? I could use 20 rotate methods for each so they get held in place but that kinda sounds like bad code. Does affinetransform have a rotate method that doesn't get set back to zero if the rotate method isn't being called every time the paintComponent refreshes?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Rotating multiple affineTransforms

    No, but it does have a concatenate(...) method.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Rotating multiple affineTransforms

    Moved from AWT/Swing

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Help with Image Rotating?
    By Leospaceman in forum Java 2D
    Replies: 2
    Last Post: 05-31-2011, 03:48 PM
  2. Rotating Images
    By Unome in forum Java Applets
    Replies: 3
    Last Post: 03-30-2009, 05:55 PM
  3. Rotating an image
    By lackofcolor in forum Java 2D
    Replies: 3
    Last Post: 02-28-2009, 12:54 AM
  4. Rotating Image?
    By sciguy77 in forum Java Applets
    Replies: 9
    Last Post: 02-17-2009, 02:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •