Beginner: Animating individual nodes in a Group?

I've a class extending Group, and I'm trying to do the following:
for (Node node : nodeGroup.getChildren()) {
            RotateTransition rotateTransition = new RotateTransition(Duration.seconds(4), node);
            rotateTransition.setFromAngle(0);
            rotateTransition.setToAngle(720);
            rotateTransition.setCycleCount(Timeline.INDEFINITE);
            rotateTransition.play();
        }I was hoping this would allow each node to rotate on its own axis, but instead the entire group is rotated as a whole. I've tried other transition types, and get the same kind of behaviour. I'm obviously missing something vital here (an introductory book, for one thing, but there doesn't seem to be any out for v2.0 yet), and I'd be grateful if anyone could supply some useful pointers.

Ok, here is my class (very much a work in (halted) progress):
public class PEGroup extends Group {   
    PEGroup (Image image, int noOfRows, int noOfColumns) {
        int hsize = (int) (image.getWidth() / noOfColumns);
        int vsize = (int) (image.getHeight() / noOfRows);                      
        for (int col = 0; col < noOfColumns; col++) {
            for (int row = 0; row < noOfRows; row++) {
                int x = col * hsize;
                int y = row * vsize;
                Shape slice = getShape(hsize, vsize, x, y);
                ImageView imageView = new ImageView(image);
                imageView.setClip(slice);
                this.getChildren().add(imageView);
    private Shape getShape(int hsize, int vsize, int x, int y) {
        Rectangle rec = new Rectangle(hsize, vsize);
        rec.setX(x);
        rec.setY(y);
        return rec;
    }and here's the code using it:
     Image image = new Image(getClass().getResourceAsStream(
            "test.jpg"));
        PEGroup nodeGroup = new PEGroup(image, 10, 10);       
        root.getChildren().add(nodeGroup);
     [... plus the code from OP ...]

Similar Messages

  • Using Hyperdraw on individual nodes

    I have a sustained chord on a track that is 4 notes , and I want to fade each of the notes in at different times (to gradually build the chord).
    Is there a way to hyperdraw these fades in on individual nodes when they are all recorded on one track? I seem to only be able to automate the entire track.

    Hi,
    Try separating each midi not to it's own track. That will solve it.
    You are trying to fade in 4 different voices, so 4 different tracks is the way to go.They can all be assigned to the same audio instrument, in the arrange page. And then you can use hyperdraw to change each ones volume.
    Cheers

  • Animating Node between two Groups

    I have layed out a game board with different areas where I used a Group to rotate and translate the Nodes inside. However, I want to animate a Node travelling from one Group to another. I'm a little lost on this. If I remove it from one group it disappears. Also, I want to know how to form a transition/timeline that will move it appropriately from the originating spot to the "landing spot" in the new group. The docs suggest that you can find the .boundsInScene, which I thought would get me the starting position at least, but this doesn't actually seem to exist in the SDK, so I don't know how to work the coordinate system from group to the other.
    Any ideas, other than just using one group? Its too convenient as the game is like a card game where the players cards are layed out around the table (the 4 groups), and I need to animate to the center of the board (another group).
    Cheers,
    J

    [JavaFX 1.2: Features and Enhancements|http://javafx.com/docs/articles/javafx1-2.jsp] "+The boundsInScene variable is no longer included in the Node , Group , and CustomNode classes. The localToScene(boundsInLocal) function provides the same ...+" (from my Google search preview).
    You can remove the node from its originating group, add it to the scene itself (at the end of the sequence, it will be over all the other nodes) at the found position, then animate it to its destination, and finally remove it from the scene into the target group.

  • Can you hide individual names in a group email

    Hello there,
    I've trawled the discussion pages and cannot find this question, so I hope I'm not repeating it.
    I want to send an email via Mac Mail using the 'send to group' facility on the Mac Address book. However I want to send the email and hide the individual names on the list. Is there a way to do this? I can do it using MicroSoft Entourage (don't all shout!) but would prefer to use Mac Mail.
    If it's not a facility available on Mac Mail then it's something to be considered. I don't want to go over to the 'Dark Side' but needs must.
    Cheers
    Tommisauce

    Hi Tom, and welcome to Apple discussions. This is the 10.3 Panther forum and I just tested the solution on Panther, and then noticed you have Leopard, but think it will work for a Leopard machine as well.
    I think there a few ways to do it. One way is to make a group of names in your Address Book and have in that group all of your intended mail recipients.
    I also couple this with a Mail preference but am not sure if this is necessary.
    Mail; Preferences; click on the Composing tab, and you will see under Addressing: When sending to a group, show all member addresses. Uncheck that.
    Then drag your group from the Address Book into the To: field and send.
    The recipients will not see the other addresses.
    You may like to bookmark the following link for future reference.
    Mac OS X 10.5 Leopard
    Message was edited by: roam

  • Move tool not working correctly, will not move individual layers only only groups.

    Everytime I try to move a layer within  a group it moves the entire group OR if it is not in a group it moves every single layer.
    The only way this does not happen is if I use the transform tool to move. This stinks for work-flow.
    Im not sure if I accidently made a change somewhere OR this is a bug ? Any fixes or suggestions?

    Move tool in what program?
    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll

  • Profile Manager Settings for Group does not display for individual members of the group

    Hi there,
    Can anyone confirm whether I am going mad or not, I and new to Mac Server and have set up Profile Manager on OSX Mavericks from scratch and have been using it successfully to deploy enterprise iPads. I have just gone to edit the profile as we wish to increase the timeout time to locking and have been greeted with something strange.
    We have all users in a Group which has settings applied for timeout, pass code change etc. however if I go to an individual account who is part of that group then it isn't showing any settings for that user and it would appear I need to set them again. Similarly if I go to a device belonging to a member of the group then its not showing any settings for that device.
    I would have assumed that if you set restrictions for a group then when you view the restrictions for a member of the group then it would be the same however it appears that you can have a separate payload for a group. Is this the case?
    I am grateful for any advice people can give me.
    Thanks again.
    Rob

    I would have assumed that if you set restrictions for a group then when you view the restrictions for a member of the group then it would be the same
    That was never the way it worked in older versions of 10.3, 10.4, 10.5, 10.6 Server.
    The restrictions for a Group were shown for a Group. The restrictions for a User (alone) were shown for that User.
    And the advantage is that if you see something wrong for a single user, you might be tempted to fix it there, in that user, and when you had changed six of them, you might remember that you meant that to be a group setting after all.
    And the software to implement them separately is simpler, but YOU have to test it to find out the end results of compositing Group and User settings.

  • Question Elements 11: "Add people" recognizes faces in individual photos but not groups of photos

    "Add people" feature has never worked in Elements 11.  How do I fix this?  It recognizes faces in individual photos, but not in groups of photos.

    Moved from Photoshop forum to Photoshop Elements forum

  • Mixed signal graph property node for plot groups?

    Hello!
    Is there a property node for the name of the Groups in a mixed signal graph?

    Hello
    as you can see in
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=226983&requireLogin=False
    there is no property for plot groups.
    Thanks,
    Rebecca Fox
    Applications Engineer
    National Instruments

  • Individual iMessage ok but group message not working

    I am suddenly having problems with iMessage.  I can send individual messages but when I try to send a group message, it just hangs and the message eventually completely disappears from my message history.  This is both for new conversations and existing conversations. It makes no sense.  Help!!!

    CORRECTION:
    Mms is not working despite it being on. Friends ARE NOT receiving group messages and I can't send mms to anyone individually.
    Sorry for the confusion. Confused some details between the old 3GS and this 4S

  • Individual messages not sent; Group ones too and cannot video call

    Hello so my since yesterday night, my individual messages to one person cannot be sent and I can't even force skype to quit. So this happened, refer to screenshot. Is it because i was in a group video call while messaging her on skype?
    So now, the messages are not sent, I cannot send messages to another group chat and i cant even press the call button. I have restarted skype, my computer and re-installed skype, nothing works. What do i do?

    Thank you for sharing this with the Creator community

  • Determining if postings can be made via individual ledgers in ledger group

    When posting to a ledger group and its respective individual ledgers that comprise that ledger group, do all of the periods within each ledger have to be open in order for the posting to go through or does it somehow do an override based on just the if the representative ledger is open?

    It just check the period open for the representive ledger when you are posting with a ledger group
    Regards,
    Gaurav

  • Execute Script - How to Update second node in XML group

    Hi,
    I have an XML variable "myXML" which is set to:
    <root>
         <nodes>
              <node>
                   <value>a</value>
              </node>
              <node>
                   <value>b</value>
              </node>
         </nodes>
    </root>
    Question - within an Execute script, how can I easily access and update the second node value? i.e. change "b" to "c"
    The following fails in Execute Script (although it is possible using an XPath expression in a SetValue
      patExecContext.setProcessDataValue("/process_data/myXML/root/nodes/node[1]/value", "c");
    If I have square brackets in this expression then it fails with a nasty error
    Is there an easy way?

    I tired your script in my sandbox and its working fine without fail.
    I noticed an additional space in your xpath expression
      patExecContext.setProcessDataValue("/process_data/myXML/root/nodes/no de[1]/value", "c");
    Can you remove the space within node tag and try again?
    Nith

  • Clicking on individual images in a group

    In Aperture 1.1, I was able to select a group of images to compare, then click on any particular one in that group that I want to edit. In Aperture 1.5, I can't figure out how to do that. The only way that I can go to a specific image is the use the scroll wheel on the mouse or the left/right arrow keys. Please tell me that there is a setting/modification that I need to make in order to get this functionality back.

    jumped the gun - turned out it was some wonkiness with my mouse. restarted aperture and issue was resolved.

  • How to change the individual node Icon based on the user action?

    Hi all,
    I just want to change the icon of the selected node when user clicks the button.
    I've gone through some examples in the tutorials and someother websites,
    but it looks very big for this simple need.
    Please help me in a simple way.
    Thanks a lot.

    Anandababu_Babu wrote:
    node represents a node in a JTree.
    I don't have a code for this problem, i just have a idea to implement this on my application,
    for better user interaction.Read the API for JTree and follow the link to the Swing tutorial on How to Use Trees where you will find a section on Responding to Node Selection and a link to another section on Editors and Renderers. After trying out what you learn there, feel free to ask here if you have a more specific question than "I don't know how to do it"
    luck, db

  • Stupid beginner animation question

    So I have a background map, and I want to draw a ship on top of it. Problem is, when I load in my jpg and stick it on top of the background, the jpg is a square. It makes sense... the jpg doesn't know that I only want my what isn't black. But is there a way I can easily get rid of the unwanted portion of the image?

    Make it a gif with a transparent background.

Maybe you are looking for

  • "firefox setup couldn't be downloaded"

    I'm trying to reinstall but I keep getting "firefox setup couldn't be downloaded" doesn't say why. I just uninstalled, followed all of the directions but I can't reinstall. Can't download trouble shooter either.

  • Oracle 9i installation

    Installed Oracle 9i Database. All went well but now the database did not start. If the database instance is called Trox, what would the commands be to test that the database exists and what commands would be used to start the database? How do you set

  • Converting UNPROTECTED Mp4 files to Mp3 format?

    I have some unprotected Mp4 files that I can't seem to convert to Mp3 format. The weird thing is, under Advanced, when I try to convert Protected Mp4 videos, there's an option that says "Convert to Mp3 format", but with my unprotected Mp3 files, ther

  • How to access HTTP Header from within Web service?

    Hello, Is there a way to access HTTP header variables like CONTENT_TYPE, CONTENT_LENGTH from within Web Logic web service. I was able to get the HTTP header variable from within Apache AXIS services by calling context.getProperty(HTTPConstants.MC_HTT

  • Safari stalls when scrolling or zoom

    My iPhone 6 using iOS 8.1 has a problem with Safari.  When scrolling up or down the page freezes for a while, or when zooming again it freezes for a time.  If you keep the page moving up & down its fine.  Took phone back to Apple store where they fou