How can i get the position of my object

HI,ALL! i get a queation now. when i picking some transfromgroup,and move it.(use picktranslatebehavior),i want to get the position of the transformgroup after it has been moved.so how can i get it?!Apology for my bad english .thanks!:)

Check out:
http://forum.java.sun.com/thread.jspa?threadID=633485&tstart=15

Similar Messages

  • How can I get the position assigned to the user in CRM .

    Hi all ,
    How can we get the positions to which a  user is assigned as a holder in CRM .
    Thanks ,
    Naval bhatt .

    Hi,
         Use the PPM toolkit class CL_CRM_PPM_UM_TOOLKIT. You can use the method You can use the method GET_ASSIGNMENTS_OF_USER which returns positions held by an user(user name).  You may also find the method GET_POSITION_OF_USER useful. It accepts username and the organization ID and will return the positions held by the user under that organization.
      This class always uses the current plan (01). If you want otherwise, you can use the FM RH_STRUC_GET. As to how this FM should be used, look inside the above said methods.
    Regards,
    Arun Prakash
    Edited by: Arun Prakash Karuppanan on May 11, 2010 11:40 AM

  • How can I get the position stream for a composition?

    I am writing an AEGP plugin for AfterFx and I need to get the position stream for a composition. I have based my plugin on ProjDumper.
    Can anyone help?

    Hi Shachar,
    Many thanks, that goes some way to explain it.
    However I am creating a composition adding text layers to it and animating the positions of the individual text layers. Then I create a second composition and include the first as a nested composition and I animate the position of the first composition within the second composition.
    When I run my plugin I only see the animations I added to the individual text layers, they are not combined with the overall animation attached to the first compisition within the second composition.  The animation data for the first composition must be stored somewhere. Do you know where ?
    I have been looking at source items and markers neither seem to provide the information I am interested in. Any clues would be very helpful.
    Thanks in advance.

  • How can i get the name of form object

    hi
    can anybody tell me how we retrive the name of form on our webpage
    i try it
    document.form[0].name (i define a function in javascript for matching purpose and i want to get the form name in this function)

    Hi,
    The following example gives you an idea. Implement according to your needs
    <html>
    <body>
    <form name="testform">
    <input type="text" name="txt" value="tesg ">
    <input name="submit" type="button" value="click" onClick="this.form.txt.value=this.form.name">
    </form>
    </body>
    </html>bye for now
    sat

  • How can i get the intValue of a Object?

    Now, I can't believe the result and I don't know why?Somebody help me!
    My codes:
    Object aobj[] = (Object[])vector.elementAt(i);
    System.out.println("Mxxh1: " + aobj[j] );
    int k = ((Integer)aobj[j]).intValue();
    System.out.println("Mxxh2: " + k );
    I can get the result:Mxxh1: 2;but I can't convert the Object to intValue,why?

    Yes, it must be a an instance of the class (or one of its assignable base classesO that you are trying to cast it to. Casting does not convert objects to new types.
    But, since it is really a BigDecimal, simply cast the Object reference to that and call intValue on it.
    Chuck

  • How can you get  the public variables from object that extends JLabel?

    I'm using the mouseClickedListener method e.getComponent(); to get the component that is clicked on the sceen. The component i clicked is type "object" and extends a jlabel, and i really need to acces a variable from it. Heres the code i'm using-
    MouseListener listenerDown=new java.awt.event.MouseListener() {
            public void mousePressed(MouseEvent e){
                paintAll();
                mX=e.getX();
                mY=e.getY();
            public void mouseClicked(MouseEvent e) {
                Component c = e.getComponent();
                drawResizeBox(c);
                selected=c;
            public void mouseReleased(MouseEvent e) {
            public void mouseEntered(MouseEvent e) {
            public void mouseExited(MouseEvent e) {
    package javapoint;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.geom.Line2D;
    import java.awt.image.BufferedImage;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    public class object extends JLabel{
        public object(Rectangle rect,int id){
            idNum=id;
            Rect=rect;
            BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
            Graphics2D g = (Graphics2D) image.getGraphics();       
            g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g.drawRect((int)rect.getX(), (int)rect.getY(), (int)rect.getWidth(), (int)rect.getHeight());
            Icon icon = new ImageIcon((Image)image);
            setIcon(icon);
            setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);
            mainFrame.slideArr[mainFrame.sIndx].add(this);
            setVisible(true);
            r=true;       
        object(Oval oval,int id){
            idNum=id;       
            setBounds(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
            getGraphics().drawOval(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
            o=true;
            setVisible(true);
        object(Line2D line,int id){
            idNum=id;       
            setBounds((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2()); //Not gunna work
            getGraphics().drawLine((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2());
            l=true;
            setVisible(true);
        object(Icon icon,int id){
            idNum=id;
            setIcon(icon);
            setBounds(50,50,icon.getIconWidth(),icon.getIconHeight());
            i=true;
            setVisible(true);
        void drawObject(object obj){
            if(r){
                Rectangle rect=obj.Rect;
                setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);          
                Rect=rect;
                BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
                Graphics2D g = (Graphics2D) image.getGraphics();           
                g.setColor(Color.red);
                g.drawRect(0, 0, (int)rect.getWidth(), (int)rect.getHeight());           
                Icon icon = new ImageIcon((Image)image);
                setIcon(icon);
            }else if(l){
            }else if(o){
            }else if(i){
        public boolean r=false;
        public Rectangle Rect;
        public boolean o=false;
        public Oval Oval;
        public boolean l=false;
        public Line2D Line;
        public boolean i=false;
        public Icon Icon;
        public JLabel label;
        public int idNum;
    }Edited by: ghostbust555 on Feb 12, 2010 2:14 PM

    ghostbust555 wrote:
    Well see the problem is i have an array of 200 objects.What does that have to do with anything? And if it does, why isn't it in the code you posted?
    I dont understand what you mean in your "Edit..." part. could you show some code/ explain farther? sorry if its a dumb question I'm still a bit of a novice at java.Yeah.
    object yuck = (object) e.getComponent(); // That's a cast.
    boolean yucksR = yuck.r; // Get the "r" variable from the object.

  • How can I get the position of an element/cell of a ListView?

    Hi,
    I am working on an interface that requires "Parallel Coordinate" like view. It requires lists with edges between their elements. To do that I need the location (x, y) coordinates of the right and left edges of each cell. Is there a way to find that?
    Thanks
    Ankit

    No, it has to by 'dynamic'. I don't want to transfer it hard, because it should work for any internal table name.
    The requirement is: There are many function modules that have an input field TABLENAME. I have to give the tablename in the Form 'IT_TAB'.
    But I look for a possibiltity not to write:
    tabname = 'IT_TAB'.
    For DDIC-Tables its not a problem, but I dont know a way for internal tables.

  • How can I get the underlying object from the ObjectReference

    Dear friends,
    I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ...
    I would like to get the underlying object for which the ObjectReference is
    a mirror For example, I have a class Customer in my application, and I can get an ObjectReference through JDI during runtime. But how can I get the target VM's object which is a real instance of Customer, by which I can invoke methods defined in Customer?
    Thank you so much for any input!
    SunnyDay

    I'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
    If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
    function getParentDoc(testObj) {
        //Get object for current page
        try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
        catch(er) {return;}
        //Step backwards to first page in document
        var prevPage = curPage.PagePrev;
        while (prevPage.ObjectValid())
            curPage = prevPage;
            prevPage = prevPage.PagePrev;
        //Compare with first pages of open documents
        var testDoc = app.FirstOpenDoc;
        while (testDoc.ObjectValid())
            if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
            testDoc = testDoc.NextOpenDocInSession;    
        return;
    To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions.

  • How can I get the cursor's position in a opened file and display a menu?

    Hello,
    I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
    More clearly-
    1. First I would save some words or sentences in a file(aa.txt).
    2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
    3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
    My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
    My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
    Would you please help me on this regard.
    Thanks

    DrClap wrote:
    I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
    [http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
    <quote>
    ...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
    The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
    </quote>
    So I guess that a non-sequitor ... or is it?

  • How can I get the direction handles to show up for the Position attribute?

    How can I get the direction handles to show up for the Position attribute?
    I have CS3 and I did the formentioned test and was able to make the handles work for the scale attribute but they don't seem to show when editing the position values.
    *I am in the graph editor looking at the "value graph"
    *I select the keys and convert the keys to auto bezier (I also tried the ease in and out buttons)
    *It changed the graph the way you might think (no longer linear) however the handles are not showing to edit further.
    *I also tried using the "convert vertex tool" (part of the pen tool) and still no luck getting those handles.
    *the handles only show up in the speed graph but that does me no good.
    Please help!
    THANKS 

    I don't have CS3 installed on any of my machines any more but your value graphs for position should look something like this:
    There are no handles for position in the Graph editor. You adjust the position curve by editing the motion path in the composition window. Press the G key to bring up the pen tool, then use the modifier keys Crtl/Cmnd and Alt/Option to temporarily switch between select and convert vertex to adjust the paths. Changes will be reflected in the value graphs. You will get editable handles with scale and rotation because these are not spatial properties. Spatial properties, position, Anchor Point, all XY & Z coordinates are edited in the comp window or in the layer window after revealing the properties. IOW, you edit anchor point position paths by opening up the layer window and choosing Anchor Point from the display options.
    The Manual isn't wrong. Here's a link to the live docs.

  • HT5219 How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    You may need to set the slider at the upper-right corner of the Control window to something other than the extreme left-most position:
    Hope this helps.

  • I am using 3.6. How can I get the update to look just like this version? I truly don't want to use IE or MSN but if that is all I have, then let me know. Thanks

    I am using 3.6 because I like how it spreads out my toolbars instead of just giving me the bookmarks in the corner and the lonesome firefox in the opposite corner. I know I can open the bookmark toolbar but it is not the same. I want the file, edit, view, history, bookmarks, tools, help toolbar across. How can I get the new firefox to do that

    This should duplicate the image that you posted as your preferred appearance for Firefox 5 in the above (request to be LOCKED) duplicate thread.
    '''Menu Bar'''<br />
    *right-click empty space at the end of the Tab Bar, click "Menu Bar" to place a checkmark
    *Menu Bar checked = Menu Bar on; Firefox button off
    *Menu Bar un-checked = Menu Bar off; Firefox button on
    *Other methods of doing the same:
    **click Firefox button > Options, click Menu Bar
    **Quick toggle Menu Bar on/off: ALT+V+T+M
    '''Tabs on Top'''<br />
    *right-click empty space at the end of the Tab Bar, click "Tabs on Top" to remove the checkmark
    *Tabs on Top checked = Tabs above toolbars
    *Tabs on Top un-checked = Tabs below toolbars
    *Other methods of doing the same:
    **click Firefox button > Options, click Tabs on Top
    **Quick toggle Tabs on Top on/off: ALT+V+T+T
    '''Separate Reload / Stop buttons and position of Home button'''<br />
    *Open the Customize window; do one of the following:
    **right-click the empty space at the end of the Tab bar, choose "Customize"
    **click Firefox button > Options > Toolbar Layout
    **if using the Menu Bar, click View > Toobars, click Customize
    **Quick open Customize window: ATL+V+T+C
    *the Reload and Stop buttons will be shown separate between the URL/Location bar and the Search Bar. While the Customize window is open, do one of the following, to keep the buttons separate:
    **drag the Stop button to the left of the Reload button
    **drag a "Space" between the Reload and Stop buttons
    **drag one or both buttons anywhere on the Navigation bar separated by a "Space" or another icon or reverse the order to Stop-Reload to keep them separate
    *drag the Home button to the right of the Search Bar
    *click "Done" at the bottom right of the Customize window when finished.
    '''Color Back/Forward, Home, Stop and Reload buttons'''<br />
    *Install this add-on: https://addons.mozilla.org/en-US/firefox/addon/firefox-3-theme-for-firefox/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • How can I get the tabs back where they belong beneath the address bar , NOT on top ???

    how can I get the tabs back where they belong beneath the address bar , NOT on top ???
    they are on top, which puts the address bar at a variable position depending on how many tab rows exist - makes a moving target for navigating to across my dual 24 inch screens
    I tried your "solution" using about:config and setting browser.tab.on.top or whatever to false, but that had NO effect
    Maybe because TabMixPlus is installed?
    It does allow putting the tabs all the way at the bottom, but I don't like that either.
    PLEASE, give me the address bar at TOP with tabs under that!!!
    Also, I don't want FlashGot to be at the right of the address bar!!!

    why should we use yet another add on to get the tabs back at the bottom? Big mistake.
    Moreover, why make FF look more like Chrome? If I wanted Chrome, i would have installed it long time ago.
    FF 29.0 is NOT an improvement.
    Nasty piece of mud.

  • How can i get the footer bar to stay, whilst page scrolls?

    how can i get the footer bar to stay, whilst page scrolls?
    at the moment, on my site, if the page is longer than the screen, it goes behind the footer,
    but the foot bar moves up the page as yo scroll down to see the rest of the content.
    any way of getting the footer to stay put, while body/page contant scrolls ?
    thanks

    You can use some css to do it...
    #footer_id {
         position:fixed;
         bottom:0px;
    <div id="footer_id">Your footer content</div>
    The css above will lock your footer to the bottome of the browser window. As long as your footer <div> is last in your html, it will float over the top of everything on your page when the page is scrolled. If it's not last in the html, you'll need to add a z-index to get it on top of your other content in the stack.

  • How can I get the InsertionPoint with FindText method.

    Hi All:
    In indesing script, I can find "abc text" with FindText method, and I want to insert a image here, but how can I get the insertionPoint(the FindText method return an object)? any help?
    Thanks in advance.

    What seems to be the problem?
    >app.findTextPreferences.findWhat = "text";
    >text = app.activeDocument.findText();
    >alert ("insertionpt "+text[0].insertionPoints[0].horizontalOffset);
    gives (as expected) the horizontal position of the first occurrance of "the".
    Note that findText returns an
    i array
    of found items; its length may be 0 (not found), 1 (only found once), or any other number.
    InsertionPoints is
    i also
    an array. Perhaps you expected it to be 'the' position of the found text -- it doesn't. It's an array of all insertion points in the found text.
    'The' position of the text (in its parent text) is something like text[0].index ("The index of the Text in the collection or parent object.")

Maybe you are looking for

  • Stock valuation different for different storage location in same plant

    Hi SAP Gurus, Please provide me a detailed idea and solution for this. My client has simulated several transactions in MM. Say it has two storage location 1110 and 1120 under plant 1100 Now in 1120 there are stock movements pertaing to a project (inc

  • IMessages to an iPhone occasionally appears with words cut off from end

    When sending texts from iMessages to an iPhone, the text occasionally appears on their iPhone with a couple words cut off from the end.  It appears fine in the iMessages display/history.   Here's a few things I've noticed: - It's repeatable.  For exa

  • Globally delete text from a PDF?

    Hi, Firstly, my apologies for wading in with a question that may have been asked. The forum search didn't turn it up but I'm not sure I searched with the right terms. I'm trying to remove all the text from a PDF to leave the vector images behind - th

  • Retriving Archived IDocs

    Hi, 1) Is it possible to retrieve an archived Idoc? If yes how? 2) Assume that an archived IDoc is in status 68. Please help confirm 3) Is it possible to retrieve an Idoc in status 68? If yes how. Would greatly appreciate any help. Regards, Mick

  • Why does my iPhone 3gs keep crashing?

    My iPhone 3GS keeps chucking me out of everything - apps, web and even typing a text!  Its infuriating, I just get to the end of typing a message and it just goes off and back to the "home" screen.  When I go back in to the text that I typed has gone