Moving Multiple Objects

Hi:
I'm a young student just starting out in Java. Currently, I have a class project that involves creating 9 reindeer in an applet (which I did). I now need to be able to click on any ONE of the reindeer and have them all move simultaneously AND keep their spacing. I did manage to get them to move together but the main one is repainted over the other ones. How can I get them all to be locked as one object and have them move (mouseevent) keeping their spacing as it is initially set up to do?

Don't move them based on the mouse x,y moce them based on the mouse delta x, delta y. In other words, if the mouse is dragged 5 pixels to the left then subtract 5 from each of the objects x position.

Similar Messages

  • Moving multiple objects in a Finder window

    Try a simple experiment in Tiger (10.4): in a Finder window with the icon view + snap to grid ON, select multiple grouped objects (e.g. 10-20) and move them to a different place in the same window.
    They will not stay grouped but be sometimes dispersed in a random way or even move to places belonging to different grids.
    Another experiment is to move a single object from one window into another one: this changes the grid of the second window from time to time.
    This is extremely annoying when you want to keep the icons ordered.
    This bug existed also in Panther.
    I'm convinced it will exist in the next Mac OS X release. Do you bet ?

    Hi DarkStar,
    In my case there are no other major application running when I see the moving multiple objects bug in the Finder. And (as for econupmac) the problem is intermittent.
    I've checked the bug again and realize that it appears mostly when I'm moving a group of objects belonging to different columns. Here is what I did:
    Create a folder with the 'Snap to grid' option ON and 'Icon size 16x16'. Set its View as Icon. Load this folder with 30 files and organize them into 3 groups of 10 files side by side. Enlarge the size of the folder to have plenty space by maneuver.
    Now select the 5 bottom files of the middle column and move them gently around, then release them. The 'Snap to grid' feature will work fine and the files will be shifted to the nearest grid position... except when the files will stay in the middle of nowhere (you might need to do it several times until it happens).
    THIS IS THE APPLE BUG.
    This bug is more easily seen when a group of objects belonging to 2 adjacent columns is moved. Check this on a nicely arranged folder : Select the 5 bottom files of the middle column and the 5 bottom files of the right column and move them slightly. I bet that they will not stick to the grid. This will create a second grid which corrupts the folder. The next time you'll move around objects in this folder you'll see how crazy the folder behaves.

  • Moving Multiple Objects in Pages

    I have a 20 page document with objects on some of the pages.  I want to add a page in the middle and move all the object forward to their right pages.  How can I move all of them at once.  In appleworks this was easy.  I could select and move them all.  In Pages, if I select them all, on multiple pages of the document, I cannot then move them all at once, but only 1 at a time.  Help.

    Lancealot wrote:
    Hey Jerry,
    Thanks.  The first tip worked well.  The second, to add the page break or section break, moves all the word processing but not the graphics.  Thanks, Lance
    That's odd. I tested here before posting and it worked, everything below the break moved together, except for a slight offset due to a paragraph marker or something that displaced some text during the insertion. I'll have to check it again.
    Jerry

  • Multiple objects to have the same rollover state at the same time (but link to different pages)

    Hi,
    I have a mac
    I would like to know how i can have multiple images with the same rollover states - but which show up at the same time on more than one image, (but each item to have its own linking property applied to it)?
    see image below: i want both box 'A' to pop with the same rollover state even if I'm hovering on just one of the boxes. But i want each of the boxes to link to different pages in my website.
    Ive tried grouping the images and moving them to their own layer, but the rollovers aren't 'linking' together on multiple objects
    help!
    thanks

    It's not, but you don't need that to achieve the behavior you've described. A1, a trigger, will have the states and hyperlink you desire. On rollover it will show its rollover state and will show its target container which will be directly on top of A2. It will look like a rollover state for A2. Repeat this for A2, B1 and B2 and I believe you achieve the behavior you've described. It's just a different way of approaching the problem (that happens to fit the tools available in Muse).

  • Pasting multiple objects into frame

    Greetings everyone
    I was wondering if someone could shed some light on how to best paste multiple objects into a single frame.
    Mainly, I'm trying to nest objects that form a part of a newspaper article header; since it's a design element that keeps repeating with each single article I don't want to spend time with manually positioning the elements each time--it's time consuming and prone to sloppiness.
    Unfortunately, the base frame will have about three objects that need to be nested within it. Once I paste one object into a frame, the next time I do `Paste into`--the content (previously pasted object in this case) just gets overridden.
    I've read that, to paste multiple objects into a single frame, one should group the objects first. Now this works pretty well for getting them into the frame, but leaves me with no options to position them relative to the frame. I can't move or position an object individually and I have no option to ungroup them once they've been pasted.
    Here's a small mock-up to depict my peculiar predicament:
    Ideally, I'm aiming to have the main header frame to fit the content of the nested objects and for it to be flexible enough that I can quickly span it across multiple columns as per article requirements.

    !kRON wrote:
    For items that are part of the group, their (X,Y) location coordinates are relative to the document--neither to the group nor the parent frame. The group itself has coordinates that are relative to the parent frame (X+ offset, Y+ offset). I can select the group and the parent frame and use the align to selection options. For individual items, I cannot make a selection of both them and the frame, only between items that are part of a group. I loose options to align an individual item relative to the parent frame, which means I have to drag them around and rely on smart guides.
    I've tinkered around some more and it'd appear it's not possible to lay out the elements as I imagined. So I have to resort to grouping the items that would form a frame and pasting them into a frame. If multiple frames have to be members of a single frame I'd have to group the frames and paste them into the single frame and so on.
    Based on my layout mock-up, I'd end up with 3 frames within the header frame:
    Article header
    Heading
    Article type
    Separator
    Article heading
    Title
    Footer
    Author
    Shape
    Based on experience, should I go with this or stick with the old fashined moving around of loose elements? Will it be a lot of work to maintain resizing and repositioning of the various items and their frames once I start changing the width and height of the header frame or will it save me some time?
    I'm not a working designer or production worker, so anything new takes me longer than I think it should, because I don't have a rich reservoir of quick methods at my fingertips.
    Your description above interested me, because I've been wrestling with the annoying limitations of manipulating and adding compound objects in anchored frames. For many situations, it's probably simplest to assemble each iteration of a compound object, that introduces a new element, outside the anchored frame, then group the elements and paste the grouped object into the anchored frame.
    However, the arrangement of elements in your example made me think that a table might be a workable solution. The answer I arrived at is "Yes, it's a solution, but it takes a while to set up." If it's reusable easily, then it might be worthwhile investing in a few experiments.
    I've attached a zipped idml interchange version of the file, and also a PDF.
    Here are some notes:
    * I created a table with three rows and three columns, no header or footer rows. Three columns because I thought I'd paste a vertical line into an inline anchored frame in the center cell of the top row, for the separator line. Later, I realized that defining the vertical cell rule as paper color would suffice, so I merged the two right cells on the top row to create a two-column row, with text in each cell and the vertical separator between them.
    * I merged all three cells on the second row into a single cell.
    * I merged the two right cells on the bottom row, but later, when I moved the cell rule to position the triangular graphic in the inline anchored frame in the right cell, it moved the vertical cell rule in the first row. So, I had to unmerge (or split) the cells, and cut/paste the triangular graphic's anchored frame into the rightmost cell. To position the anchored frame, I moved the vertical cell rule with Shift+Drag, to keep the table width unchanged.
    * I sampled the purple color with the eyedropper tool while cells were selected and the swatch panel was set to fill the selected object.
    * I didn't spend much time matching the type, as you can see. To position the text, I adjusted the cell margins in some cases, and left/right indention in some cases; I'm not sure which is more efficient in situations where there will be different amounts of text to fit. I didn't create cell styles or paragraph styles (BAH! Bad, bad, bad process) because I won't be repeating this stuff, but you probably will benefit greatly from defining styles for your repeating needs.
    * The triangular cut into the bottom row made it easy to manage creating and positioning the graphic. A non-geometrical object might be trickier. The triangle is a text frame, set to negative space above, so it overlaps the cell above it, enough to avoid a black gap.
    * Except for the vertical paper-colored divider line, all the cells have zero-width strokes.
    * I created the table in a text frame, that I fitted down to the size of the table, but I can't remember if I selected, copied, and pasted the text frame into the text flow to anchor it, or if I selected the table in the text frame, copied and pasted it into the flow. Not sure if it makes a difference in work efficiency.
    If I understand your general needs, this should work well for changing text and adjusting the column widths.
    HTH
    Regards,
    Peter Gold
    KnowHow ProServices

  • Select multiple objects across pages (cs3)

    Hi
    Is it possible to select multiple objects across pages? All objects have an object style attache and have to be moved 0,7 mm to up. Maybe with a script?
    thanx
    S

    OK, the move part was much easier than I had anticipated. I think I was thinking of moving graphics inside a frame (or did they just make it a lot easier in CS3?).
    At any rate, this one does every page in the document. Just change "test" and the move amount to your preferences...
    tell application "Adobe InDesign CS3"
    tell active document
    set myObjectStyle to object style "test"
    repeat with i from 1 to count every page
    tell page i
    select (every item of all page items whose applied object style = myObjectStyle)
    end tell
    move selection by {0, "-0p7"}
    end repeat
    end tell
    end tell

  • Space between multiple objects

    Is there a way to alter the space between multiple objects without changing the objects themselves? You know, kind of like inflating/deflating a balloon with dots on the surface (yes, the dots would get bigger/smaller, but I think you get the idea). I've tried Transform>Move>Distance, and Effect>Distort & Transform>Transform>Move>Horizontal/Vertical, but both methods just moved all selected objects away from the origin point - no change to the space between objects. any ideas?

    ...you'd think there'd be an easier way...
    Are you talking about objects that already have equal spaces between them? If so, use the Distribute Spacing function in the Align palette. You can specify the desired horizontal/vertical distance between an array of objects.
    JET

  • Multiple objects with guid (cross forest mailbox move)

    Hi,
    While moving 1500 mailbox from 2007 forest to 2010 forest I had a problem with 2 users. When I run the move mailbox script fot these users I got the error below. Any ideas?
    New-MoveRequest : Multiple objects with Guid fb091806-4ef7-4a36-8705-8f2c9bb25080 were found.
    At C:\Exc2010\script\MoveMailboxes.ps1:22 char:16
    + New-MoveRequest <<<<   -Identity  $($entry.PrimarySMTPAddress)  -RemoteLegacy  -RemoteGlobalCatalog $RemoteDomainCont
    roller  -RemoteCredential $RemoteCredentials   -BadItemLimit 2000 -AcceptLargeDataLoss   -TargetDeliveryDomain mydomain.com.tr
        + CategoryInfo          : NotSpecified: (0:Int32) [New-MoveRequest], RemotePermanentException
        + FullyQualifiedErrorId : 68322CDA,Microsoft.Exchange.Management.RecipientTasks.NewMoveRequest
    Those who are skilled in combat do not become angered, those who are skilled at winning do not become afraid. Thus the wise win before the fight, while the ignorant fight to win.

    Hi,
    Please try to move the mailbox manually and check the issue again.
    Looks like multiple objects have the overlapping GUID. Please check it.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Sean Xiao
    TechNet Community Support

  • Error message "multiple objects found"

    Hi,
    I run into a new issue and durig role creation of design-time-roles. I get since a few days the message
    "test:testrole.hdbrole": multiple objects found
    my simplified role: (worked out before hundred times)
    test::test
    extends role test::testrole
    The role exists as design-time-object (one entry in "_SYS_REPO"."ACTIVE_OBJECT" and also only one entry in "SYS"."ROLES")
    Other roles can be granted as as usual - just a bunch of them make trouble.
    I dropped the roles (afterwards 0 entries in the mentioned tables) ... when activating testrole.hdbrole it says no object found - as expected. created the role again and the message appears again. Pretty weird.
    Did one of you had the same issue and solved it?
    Thanks for your answers in advance!
    Regards,
    Marcus
    P.S: Running HANA SP7 Rev 72 (DB+Studio+Client)

    Hi Mika
    Can you check your  : HKLM\SOFTWARE\Microsoft\Office\xxxx\Outlook\InstallRoot\Path
    For each key under HKLM\SOFTWARE\Microsoft\Office, apparently HKLM\SOFTWARE\Microsoft\Office\xxxx\Outlook\InstallRoot\Path has a "Outlook.exe" file at the location.
              If more than 1 file paths are found, then it appears that multiple versions of the outlook are installed.
    You might want to re install office if more thaqn one appears

  • How do I create multiple objects during runtime?

    I don't know how to create multiple objects during runtime, here's my problem:
    I get a String as input. Then I create an object called newobject. I put the object in a hashtable with the above string as key.
    Then comes the problem, in order to create a new object, I have to rerun the same class, which uses the same name (newobject) to create a 2nd object. Now my hashtable doesn't reference to my 1st object anymore...
    Is there anyway I can fill up the hashtable with different objects, and make each key point to each object it was supposed to?
    For those who want to see a bit of the program:
    public class PlayBalloon{
    public Hashtable ht = new Hashtable();
    for(){
    Balloon pB = newBalloon;
    newBalloon=new Balloon(pB);
    ht.put("Some input from user", newBalloon);
    for(){
    ht.get(s).draw;<= s=string, draw=own meth. in Balloon
    }

    I think i can see the problem that you are having. You have, in effect, duplicate keys in your hashtable - ie, two strings used as keys with the same name.
    The way that a hashtable works is as follows...
    When you ask for a value that is mapped to a key it will go through the table and return the first occurence it finds of the key you asked for. It does this by using the equals() method of whatever object the key is (in your case it is a String).
    If you cant use different Strings for your keys in your hashtable then i would consider writing an ObjectNameKey class which contains the String value that you are trying to put in the hashtable and an occurrence number/index or something to make it unique. Remember to override the equals method in your ObjectNameKey object or else the hash lookup will not work. For example
    class ObjectNameKey {
        private String name;
        private int occurence;
        public ObjectNameKey(String name, int occ) {
            this.name = name;
            this.occurence = occ;
        public String getName() {
            return name;
        public String getOccur() {
            return occurence;
        public boolean equals(Object o) {
            if (!(o instanceof ObjectNameKey)) {
                return false;
            ObjectNameKey onk = (ObjectNameKey)o;
            if (onk.getName().equals(name) && onk.getOccur() == occurence) return true;
            return false;

  • Using Multiple Object Types in a FIM Managed Criteria Distribution Group

    Is it possible to use multiple object types in a criteria based distribution group. So when building your criteria filter, "Select (object type) that match (all/any) of the following condiftions". Currently you can only choose 1 object type and
    I want to be able to choose object type "user" and a custom object type I create for my contacts 

    You can create main condition as "any" and later add two sub-conditions - one that object in set "All People" and other sub-condition that object in set "All Contacts" or "All Groups".
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Error while doing multiple object updation from EP ! object lock error

    HI all,
    I am doing multiple  object updation using a standard RFC(BAPI_PROJECT_MAINTAIN). The RFC i am calling from Enterprise portal. I am sending data to RFC one by one. But the error i am getting is object is locked by user so data can't be save.
    Though i am using Lock and unlock method before and after calling RFC the project lock error comes up.
    What might be the reason
    regards
    sandeep

    Hi Sandeep,
    Is the RFC you use for locking in the same model as the bapi BAPI_PROJECT_MAINTAIN? If it is not then you are using two connections for communication with the sap R/3 backend.
    You can do 2 things.
    1. You could add the RFCs for locking in the same model as the BAPI_PROJECT_MAINTAIN
    2. Instead of adding the RFCs in one model synchronize the connections the models use as follows:
    IWDDynamicRFCModel model1 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model1.class);
    IWDDynamicRFCModel model2 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model2.class);
    model1.setConnectionProvider(model2);
    You can do this in the wdDoInit. This will make sure both models use the same connection but closing a connection will close both at the same time.
    The same problem applies to commit/rollback functionality.
    Regards,
    Jeschael

  • Is there a way to shift select multiple objects in layer palette, not just highlight multiple object

    Hi,
    Is there a way to shift select multiple objects in layer palette, not just highlight multiple objects?
    I would want to do this when I have a bunch of objects hidden under some other objects on the artboard. This feature is available in PSD, so I assume Illustrator should have it.
    Thanks!

    Thanks for the reply, Harron.
    I'm using CS4 & below.
    Highlighting object - click on object in layers palette & it turns blue
    Select object - click on object in layers palette to the right of the circle, which creates a square, and selects the object on the artboard
    How do I shift-select multiple objects in the layers palette...select 50 objects with a click, then a shift-click? Shift-select works for highlighting, but not selecting. On most programs shift-select is used to grab a bunch of stuff...:0)
    In the past I have inadvertently selected multiple objects in the layers palette, by somehow alt?-dragging over the layers...or something...I can't re-create it.

  • Can I put multiple object placeholder in Master slide?

    I would like to know if I can creat multiple object placeholder in Master slide or not.  After searching the disccusion, seems that this problem occur since Keynote 03 and is not improved till Keynote 09 now.  In fact, I would like to make a slide show of multiple photos, but I would like to arrange several photos in one slide and exactly the same position and size in each slide.  So, it would be easiler if I can make a master slide with mulitple object placeholders.  Can anyone help or if there is any alternative ways? Thank you.

    Apple Maps is not a GIS application. It might be one day. For now, you will have to use ArcGIS or something similar.

  • Selecting Multiple objects in Pages for ipad

    On regular pages, I can select multiple objects (text boxes, etc) by holding shift then clicking on it. Is there a way to do that in Pages for IPAD?

    With one finger select an object and hold with another finger select the other objects one by one.
    Message was edited by: David M Brewer

Maybe you are looking for

  • Jsf with popup window jsf and .xhtml?

    hi, HI, I am using example at http://www.jsftutorials.net/interface/jsf-popup.html for popup with jsf using javascript. In main form when click on button or link, i am opening popup window , and getting values from popup window to parent window. Here

  • Decode does not work for line breaks

    Hi experts, In a BLS, I am decoding a string which I output .  It decodes the spaces but not for linea breaks.  What is wrong ¡? Thanks and best regards, Antonio Rodriguez  Rubalcaba

  • Will Canon 5d Mark III Raw files work with Lightroom 3

    I have just tried to upload Raw files from a Canon 5d Mark III to Lightroom 3.  The file were not recognised.  I believe there were some update issues but my Lightroom 3 is updated.  Do I need to get Lightroom 4?  I need to know urgently as I have a

  • How to upload a PDF file?

    How do I upload a pdf file so that I can edit it?

  • How to change the owner of an Information Broadcasting setting?

    Hi, I have created and scheduled some reports to be distributed via the Information Broadcasting functionality. I would like know if it is possible to change the "owner" of the setting in order to cater for the following scenario. User A has created