Merging Two Graphics2D objects into one

Is it possible to accomplish this:
1) have a method in class A that returns a Graphics2D object
2) have a method in class B that returns a Graphics2D object
3) have class C call both class A's and class B's methods that return Graphics2D objects
4) lay those two Graphics2D objects into a new Graphics2D object within a component's paint(Graphic g) method
What I am trying to do is a lot like a Viso diagram, that is drag a graphic onto another graphic x numberof times and perform some kind of layering technique.
Thanks

Why don't you pass a graphics 2D into each method, and get method to draw onto that. Then it becomes very simple to combine each.
MArk

Similar Messages

  • Insert PDF into new Adobe Form - merging two PDF files into one

    Hi everyone,
    I need to enable access to archive PDF files but within a new PDF file containing header and footer.
    Request is not to change archived PDF files at all.
    I use Web Dynpro application to upload PDF file and to display new PDF file.
    I thought converting archive PDF files into JPG files and than using an 'Image Field' object to display those in a new PDF file.
    I am dealing here with PDF version 1.3 files.
    I am also having trouble converting these PDF files into JPG files. Any sugestions one this problem?
    Does anyone have any suggestion on how to deal with this concerning the fact that archive PDF files can not be changed?
    Is there some other way to merge two PDF files into one using Adobe Designer?
    Regards,
    Amel

    Hello, Lukasz:
      I am also facing similar requirement from my customer.
      And I found one useful blog, hope this blog can help you.
      http://wiki.sdn.sap.com/wiki/display/WDJava/CombinePDFfileswithWebDynproforJava
      Best regards, Nick.

  • HT204053 Can you merge two Apple IDs into one?  It was a common issue caused by the iPhone 4 and has been corrected, but transferring purchases in iTunes is a pain with two IDs.

    For a brief time when iPhone 4, iOS 4 came out, many of us ended up with two Apple IDs.  I want to know if anyone can please provide me with simple step-by-step instructions on merging two Apple IDs into one?  It would make transferring purchases on iTunes much easier and reliable.  I realize i desperately need an iOS update, but i had no laptop for over two years!  I'm posting a cry for help on that in another community.  Thank you all.

    No,
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • Merge two PDF files into one with Adobe Reader

    Does anyone know how to merge two PDF files into one with Adobe Reader. Is it even possible?
    Thanks

    If you've got a Mac and OSX you can do this in Preview.  Make sure you can see the sidebar with the first PDF opened, and then drag the second PDF to the bottom of the last page in the sidebar.  Also you can reduce the size of your saved file by selecting (or making) a Quartz filter to 'reduce file size'
    Cheers

  • How to merge two storage drives into one partition-help

    THis is on an iPad-Please excuse for any typos
    I Am working on a project of restoring a macbook pro from old parts that I found. It works!!! But the HDD that i salvadged is ancient and gets about .15 MBPS. Not good. Its an apple certified and apple branded toshiba HDD-500G at 5400RPM. Yeah. *****
    I am considering buying a new hard drive as a 480GB SSD, and using OWC's Data doubler, adding a second HDD, for all the photos and vids i will be collecting through my work in video and photo. I am considering getting an SSHD (SSD+HDD in an SSD form factor) and using this as the second drive. its not much more expensive (like 10$ more) and itgetsme semi-SSD like performance on a mass scale of storage.
    HOw can I combine these two drives into ONE partition? 480GB will take awhile to fill up, but this is a future proof wall to use.
    I Will eventually invest in an external storage option (2-3 HDDS in one caddy for backups and storing 1080p video all under one roof. depends if the board im using actually has thunderbolt or usb that is fast enough-because of the crappy hdd i cant get it to boot into an OS or go through usb recovery without it freezing. I ahve tried re-applying thermal paste, still doesnt help)
    HOw can i easily partition these two drives into one?
    also, my friend needs a new HDD because bootup times in his macbook pro are at like 2 mins+ and hes running Core 2 Duo, with 8 G ram and 10.9 (Mav) should i recommend an SSHD or an ssd. (He doesnt want an HDD, hes had bad 'voodoo' with em'. Thanks!

    nithya_ram wrote:
    Give me d source code for merging two img files into one img file\\
    If you want someone to do your work for you, simply pay someone. However, if you have a question about code you're currently working on, feel free to ask a specific question here on the forum.

  • OLM - Merging Multiple Learning Objects into One

    Does anyone have experience or success merging multiple OLM learning objects into one? I think that we are supposed to be able to do this by exporting a content folder that contains all the learning objects that we want to merge into one CBT. The export works for me, and the learning object plays, but the content is not complete or combined. I noticed that the new content contains files called metadata(0).xml and metadata(1).xml representing the two learning objects that I tried to merge into one. I wonder if there's something I'm supposed to do with these files. Has anyone been successful in merging content?

    Content can be combined into a course structure like:
    Course Learning Object
    -- Topic 1 learning object
    -- Topic 2 learning object
    By creating a parent "course" learning object and moving the individual objects underneath it. The offering is then tied to that course learning object, so that when a user enrolls, in order to complete it the user navigates through both objects.
    You cannot combine all the pages from separate objects into a single learning object as the pages themselves have no knowledge of each other.
    Does that make sense?
    Scott
    http://www.seertechsolutions.com

  • How do i merge two pdf files into one

    How do i merge 2 pdf files into one.

    Open up the first pdf in Preview
    Then from Menu
    select from Edit Menu
    Select Insert (your choice of)
              Page from Scanner
              Page from File (select your PDF file)
              Blank Page
    You can then save as your first file or rename it

  • Merging two LDAP directories into one clean 10.4 server.

    What I have now is two different OD masters. One is a 10.3.9 server and the other is a 10.4.9 server. What I want to do is combine the two Open Directories into one on a brand new Xserve 10.4.9 install, and make that my only master with several replicas.
    I'm trying to do as much research as possible before attempting this feat. I haven't been able to find much on here via searching. I did however, find this link (http://www.afp548.com/article.php?story=20050615173039158&query=migrate), which should be quite helpful, but I was wondering if anyone on here had anymore input.
    Thanks in advance.

    Hi Celia
    I think you could achieve this using slapcat with a bit of ldapadd/ldapmodify? Manual pages should tell you more?
    Not done it myself with 10.5 but I don't see why not? Export desired information as LDIF file(s). You could do it for for both LDAP Servers and then bring them in. They should just add to each other?
    Worth a try?
    Tony

  • HT5625 How do you merge two Apple IDs into one account?

    I have two Apple IDs (it's a long story) with mixed content.  I'd like to merge the accounts into one account, in order to synchronize my apple products.  How do I do it?

    1. Click here and ask the iTunes Store staff if they'll do it. They probably won't.
    2. Because Apple generally doesn't permit that.
    3. Because the content remains associated with your Apple ID when you share it with other people.
    (102945)

  • Merging two Apple IDs into one

    I created a new Apple ID about a year ago when I changed my email. I didn't realize that my old music was tied to the old account. I can access it if I sign in to the old account, but it's really cumbersome to go back and forth between the two accounts, both of which have a ton of music on them. Is there any way to merge the two accounts into one since I'm the same owner of both accounts?

    No.
    Sorry

  • How to merge two Apple IDs into one?

    Is it possible to merge two IDs into one?  I don't want to use the 'hotmail.com' extension anymore.

    No. All purchases remain tied to the AppleID used to obtain them and cannot be transferred.
    tt2

  • How to merge two crystal reports into one in Delphi using TCrpe?

    I am absolutely new to Delphi and Crystal Reports. I figured that I can export a crystal report to pdf like this:
          crpe.Clear;
        crpe.ReportName := 'BasicInfo.rpt';
        crpe.ParamFields[0].CurrentValue := '0';
        crpe.Output := toExport;
        crpe.ExportOptions.Destination := toApplication;
        crpe.ExportOptions.FileName:='C:\CoverSheet.pdf';
        crpe.ExportOptions.FileType:=AdobeAcrobatPDF;
        crpe.Export;
    (Although this is working, please let me know if I am doing it wrong )
    My main problem here is: I have two .rpts "BasicInfo.rpt" and "Details.rpt" and I need to create one pdf out of them in Delphi.
    Is there any way to merge two .rpts and export it into one pdf in Delphi?

    You cannot merge two reports into one PDF - not in any CR SDK. There are 3rd party utilities that will let you do this, but no APIs for this in CR.
    BTW.; What version of CR are you using?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • HELP...want to merge two itunes accounts into one running several ipods

    Hi, I need advise as I have two Itunes accounts for my family running on tow different laptops with win7 and with two iphones and two itouchs. I do I merge all this into one account that I can access from all devices and all computers?

    Do you have a home network? You can set up itunes Home Sharing and transfer your purchases that way. You need to authorize each PC for the two different STORE accounts to transfer each account's purchases.
    If you don't have a home network you'd have to use an external hard drive or USB stick.
    Long story short, there's no automatic way to do it. You need to keep track of each account's purchases and what PC they are on, then move them to the PC that is missing those items.
    There are some 3rd-party programs like Tune Ranger that say they will keep everything insync from one PC to the next, but they cost around $20 or $30.

  • Can you merge two pages documents into one in new pages?

    I have a report and a few separate documents which I'd like to merge into one document. I've read that you can do this from thumbnails and copy the thumbnail but I just can't seem to do that either with right click or cmd C. (and the advice seemed to be pre the new pages)  I want to merge them without making them into PDFs (still want them editable).
    I have all the latest updates and system.

    My solution won't work without Pages '09. It is no longer available from Apple, though for about $20 USD one can get it from Amazon, and once installed in Yosemite, it must be updated from an Apple iWork 9.3 updater.
    If you had previously purchased Pages '09 from the OS X App Store, and it resides on an older Mac with OS X Lion or Mountain Lion, you should use the App Store to update it to v4.3. On those machines, the App Store will tell you that newer, incompatible Pages versions exist, and then it will offer to update your Pages '09 to the latest (4.3) version. Once this is done, you can simply copy that /Applications/Pages.app to a USB stick, create a new /Applications/iWork '09 folder on Yosemite, and transfer the Pages.app into that folder. If your Pages '09 was purchased on DVD, you will not be able to transfer it — and must be a new install on Yosemite, followed by the linked updater above. Takes all the joy out of working on a Mac.
    There is no assurance that Pages '09 will continue to work properly after forthcoming OS X updates. The ability to export via the Share menu and automatically open Apple Mail with the export as attachment feature is now broken.
    Pages v5.5.2, which is now available in the OS X App Store Updates — still does not support the solution you would like.

  • ABAP routine to join two ODS objects into one

    Hi there,
    i have two ODS objects related to each other. and i want to load them into another ODS object and join them so to say.
    as far as i got now, it seems that the only way to do this is an ABAP routine in the update rules. ca nanyone give me a hint on how to do this? no clue how ABAP works yet.
    i suppose there must be some template or something because i think others must have had the same issue before. anyone who already solved this?
    i'd appreciate your help,
    regards,
    stefan

    HI Stefan,
    First add VTS_KUN (customer code)
    VTS_BEDA (order date)
    in ODS2 VTSNWBP2 and don't map to any field intransfer rule.
    write this code in start routine of udpate rule between VTSNWBP2 and VTSNWBDN.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    <u>TABLES: /BIC/AVTS_NWBE00.</u>
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE <i>/BIC/CS8ZODS2</i>.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    <b>DATA:  S_DATA TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    DATA:  ITEM_TABLE TYPE STANDARD TABLE OF /BIC/AVTS_NWBE00
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    *start of modification
    *Populating the order number data from ODS1 table
    SELECT * FROM  /BIC/AVTS_NWBE00 INTO TABLE ITEM_TABLE.
    SORT DATA_PACKAGE BY VTS_BES  ASCENDING.
    SORT <u><i>ITEM_TABLE</i></u> BY VTS_BES  ASCENDING.
    LOOP AT DATA_PACKAGE INTO S_DATA.
       LOOP AT ITEM_TABLE WHERE VTS_BES = S_DATA-VTS_BES.
         MOVE-CORRESPONDING item_table to s_data.
         APPEND S_DATA.
       ENDLOOP.
    ENDLOOP.
    DATA_PACKAGE[] = S_DATA[].</b>
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    *TABLES: /BIC/AVTS_NWBE00.--ODS1 table
    Lemme know this is working.
    Regards,
    San!
    Message was edited by: San!

Maybe you are looking for