How to get shape's bounding box

Hi!
Like the topic says, I'm wondering if there is a way to get a shape's bounding box? Either through a query or some method in JGeometry. I suppose I could just get the coordinates and loop over them to get the min/max values, but is there some more efficient way?
Thanks!

Yup. That worked.
I looked at the JGeometry documentation, but I would never have guessed that MBR stood for Minimum Bounding Rectangle if you hadn't pointed me in the right direction.
Thanks again!

Similar Messages

  • How to get title in Dialog box

    How to get title in Dialog box like "Adobe® Connect™ "

    Works for me. What happened when you tried?
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    tell application "Finder" to display dialog "I need ® or ™ in dialog box text" with title "I need ® or ™ in dialog box text" buttons {"Aha!"} default button 1</pre>

  • How  to get  the  Save  dialouge box  in   SAP Business One

    Hi,
    How  to get the  Save dialouge box in    Button  click  event  in  SAP Business One.
    Thanks,
    Y.

    Hello,
    You would like to display an SaveFileDialog box?
    may follow this thread, and you can find a sourcecode in vb.net and c# inside (for open dialog, but it is the similar...)
    Regards
    János

  • How to get System status Check Boxes into Query selection screen

    Dear experts,
    Pleas help in knowing how to get System status Check Boxes into quick view query (SQVI), selectionscreen.
    Regards
    Jogeswara Rao
    Edited by: K Jogeswara Rao on Jul 6, 2010 7:26 PM

    Problem solved through other Forum
    (Checkboxes not possible, some alternative solution to my requirement found)

  • How will get  to the transaction box. directley(shourtcut)

    hi
    how will get  to the transaction box. directley(shourtcut)?

    Hello,
    for SAP GUI for Windows, it is Ctrl + / .
    For list of keyboard shortcuts, see menu item "Help for SAP GUI" in the menu shown when clicking the right most toolbar button.
    for SAP GUI for Java, it is Ctrl + T (Cmd + T on Mac).
    For keyboard shortcuts, see the menu items in the menus  with the icons on the right.
    Best regards
    Rolf-Martin

  • Get rid of bounding box when expanding pattern

    Hey,
    I want to get rid of the bounding boxes (grids from the pattern) when expanding the pattern.
    I want to expand the patterns to make outlines of it but i get outlines from the grid to. I don't want them how do get rid of them easy?
    I am attaching printscreen of that.
    I can delete them manually but it takes forever when it's big project.
    Thanks

    Hey,
    it's help indeed but only for the frames.
    any way to solve this?

  • How to get rid of black box borders that occur around text

    When ever I type ANYTHING in emails, Pages, I get this irritating black box that shows up around paragraphs.  How do I get rid of this once and FOREVER?

    Press the key combination command-F5 to deactivate VoiceOver. If that doesn't work, proceed as follows.
    For OS X 10.7: From the menu bar, select
     ▹ System Preferences ▹ Universal Access ▹ Seeing ▹ VoiceOver: Off
    For OS X 10.8: Select
     ▹ System Preferences ▹ Accessibility ▹ VoiceOver
    and uncheck the box labeled Enable VoiceOver.

  • How to get rid of navigation box

    Hi guys i would like to know how to get rid of the navigation box in iphoto.  i have mountain lion and the most updated version of iLife. 
    this is the box i am reffering to . 

    Really? You asked a specific question and got a specific answer. Turns out you had a different question...
    You can't.
    Regards
    TD

  • How to get shape layer's content parameters in AEGP?

    Hi all,
    I have no idea when I want to export the parameters from the Contents of shape layer.
    Now I add Polystar Path1, ZigZag 1, and Repeater1, three contents of shaper layer.
    Content seems not equal to effect. I used AEGP_GetNewEffectStreamByIndex can get the effect's parameter of Shape layer. But no any information about Content.
    Does anyone know how to get the content's parameter?
    Thanks.

    Thanks for your reply and sorry about my unclear question.
    I use the picture to describe my question. There is a shape layer include "Contents" and "Effects".
    I can use AEGP_GetLayerEffectByIndex to get the parameter of effects (Blue point).
    However I can't find out the correct method to get the parameter of Contents (Yellow part, include Polystar, Zig Zag and Repeater).
    The yellow part is also not the Stream, I can't not use stream suite to get information.
    BTW, I have the same problem about Text Animator. (Yellow part of follow picture)
    lapula

  • CS6 - Pattern making. How can I use a bounding box to define the pattern size?

    I want to create a pattern in cs6. As in the previous versions of illustrator, I'd like to be able to use a bounding box to tell the computer where I want the pattern to start etc. In cs6 I can't seem to be able to do this. Once I hit 'make pattern' the bounding box is different and it becomes really difficult to define where I want the pattern to start. The pattern making part of illustrator seems to get confused and ends up throwing out my pattern completely. Any ideas?
    Thanks!

    Zehgut,
    Create a nofill/nostroke rectangle where you want to have the boundaries, then move it down beneath the artwork in the Layers palette and include it in the swatch. That is the way to define the boudaries.

  • How do I turn on bounding box?

    How do I turn back on selection bounding box?

    You can have a box when using the Move tool by enabling the "Show Transform Controls" option in the options bar at the top (while the tool is selected).
    You can add a box to a selection by enabling the transform controls (Control/Command+T or from the Edit menu).
    But if you are just looking for a box to surround a selection that offers no controls, this isn't a feature.

  • How to get Open/Save Dialogue box

    Hi,
    I need to get open/save dialogue box while downloading a file (from JSP).
    One way which I am currently using is on click of the button pass control to servlet and in servlet using the following code:
    /**.....Some Code */
    response.setContentType("application/csv");
    response.setHeader("Content-Disposition", "attachment; filename=" + filename);
    /**.....Some Code */But I am wondering is there any way I can do the same without passing the control to Servlet? On clicking the button in JSP, is there is any possibilty to get the Open/Save dialogue box directly.
    Thanks
    Arun

    without passing the control to Servlet?Why?
    In HTTP you can send the response only once.The application where i have this requirement is an old one. In the application, I have there are some screens, whose control never goes to Servlet.
    TO be more precise, 2 pages one HTML and another JSP. And the file to be downloaded is created when JSP is called from HTML page. And there is no interaction with Servlet. The JSP inturn calls a method in Java file (which is not a Servlet) and gets all the details including the file to be downloaded.
    I have used window.open() to download the file(in JSP) in order to have Open/Save dialogue box.
    But the approach is working fine in Windows XP systems but not in Windows2000. In Win00 machines it is directly opening the file in popup without giving the user any option for Open/Save.
    Please let me know your suggestion on this.
    Thanks

  • How to get the "delete" check box back?

    Hi Guys,
    I just used the "Migrate to Interactive Report" feature. After doing so, the check box is gone that is used to indicate rows to delete. A copy of the region is marked as "disabled" and the check box is still there, but it's not in the newly created region. Without that check box, my page has no way to delete rows. How do I add the check box to the new Interactive Report region? I'd rather not re-create the page from scratch.
    Thanks,
    Kim
    P.S. I'm using Apex 4.1 and Oracle 11g xe - all running on Windows 7.

    How about something like this? Instead of a check box add a new column with a delete image, you can use something like delete.gif (#IMAGE_PREFIX#delete.gif). The downside is that will be deleting one at a time, but in my experience this may not be an issue.
    Add a hidden item to hold the ID of the row your want to delete. We'll call it P1_ID.
    The new column with the delete image will need to "branch" to a URL and use this code (ALL in one single line)
    apex.confirm("Are you sure you want to delete?", {
      request:"DELETE_ROW",
      set:{"P1_ID":#ID#}
      });Then add a page process that fires when the request is DELETE_ROW
    Would probably look something like this:
    delete from some_table where id = :P1_ID;
    A similar technique can be used for checkboxes, but it's a little more advanced as you need to loop through the selections.
    Oh and add the column to the IR you don't really need to select anything. Or better yet, you could re-use the ID column of the report if you have one as your delete column. The #ID# on the code above needs to be the name of your column. So if your column is EMPNO the above would be #EMPNO# instead of #ID#.
    Hope this helps.
    -Jorge

  • How to get Case Sensitive Check Box at Search Page

    Hi Everyone,
    I am trying to get case sensitive check box at the bottom of the search page, for that we have to set any propert or we ahve to do anything else.
    Please Help!!!!
    Thanks,
    Amit

    Have never really thought of it. One thing you need to do is set the Case Insesitive Searching Option correclty in PeopleTools Options. I can't find any other setings. But it might have to do with the fields that are on your Search record. My guess is if any of the Search Fields are of type Character and format Mixedcase then the Case Sensitive check box will be displayed automatically.

  • How to get pagenumber of anchored Box

    In javascript, how to get page number of anchored textbox.
    if i gave "textframes[0].parent" means it shows an error.
    Thanks

    Usually, the "textframes" array of an object points to the textframes contained in that object. Therefore, if you ask something with textframes what the parent is of "textframes[0]", you will get that same object again.
    In this case you are getting an error because there are (apparently) no text frames inside the anchored object.
    To try out stuff like this you can use the "constructor.name" construction:
    alert (app.selection[0].parent.constructor.name);
    with the anchored object selected results "Character". That cannot ever be a part of a page, so you have to get up another level:
    alert (app.selection[0].parent.parent.constructor.name);
    will tell you it's a Story. Now that's obviously wrong, because a story can run over several pages. Looking into the Object Model, you will see a character also has a property "parentTextFrames" (described as "The text frames that contain the Character. Can return: Array of TextFrames or TextPaths."). Checking with
    alert (app.selection[0].parent.parentTextFrames[0].constructor.name);
    now returns the text frame of the story where the actual character -- in this case the Anchored object -- is located in.
    For simple documents and scripts, you are done here: the parent of a text frame is the page. If this frame in turn could be anchored inside something else, or the anchored object could be inside a table or something like that, or the objects could be on the pasteboard or on a master page, you'll need additional checks.

Maybe you are looking for