Two overlayed painting areas

I'm trying to implement Canvas with axes, which allows zooming by mouse dragging. But when I'm painting the zooming rectangle, it's neccesary to repaint the whole Canvas in each mouseDragged event. It causes blinking. Is possible to overlay two painting areas, one for my graphs and second for zooming rectangle (which should only be repainted when mouse dragged) ???
Thank you very much
Cechyn

Two things come to mind
With repaint(x, y, w, h) you will restrict the subsequent call to paint() to that area. Any drawing that paint() does outside of that area will be clipped. So when you decide to zoom, set the zoom param and call reapint() on just the zoom rect. See also Graphics.getClip() and Graphics.clipRect
- or -
Implment your component as a Container with two sub-components, one for each painting area. This seems the more OO

Similar Messages

  • I am new to Final Cut Express and don't understand why I am unable to drag transitions into Canvas? Something wrong in my setup? It's not the overlays they are "on" so can anyone advise me please?

    I am new to Final Cut Express and don't understand why I am unable to drag transitions into Canvas? Something wrong in my setup? It's not the overlays they are "on" so can anyone advise me please, by the way the "L" doesn't appear in the bottom left hand corner either? and by the way how can I get rid of that irritating Blue badge saying "AutoFill your contact details" all mine are in "address book" already!

    You can't drag a transition into the canvas. If you're dragginmg a transition from the effects tab you drag it between the edit point of two clips in the timeline.
    Make sure show edit overlays is turned on in the Canvas view popup.

  • How do i stop two processes that are running in activity monitor

    how do i stop two processes that are running in Activity Monitor took one out of trash and it says preparing to move desktop still running with another one been running for hrs now want to stop these many thanks jen.

    Select each one and Force Quit it.
    But be careful there are many processes that are run by the OS that if quit will cause problems possibly even crash the system.
    regards

  • Why two remote keys are genrated in data manager when i'm syndicating the same records twice

    Hi Experts,
    Please guide me that will there be any problem if two remot keys are getting generated for the same system thougt we are expecting to update the same Business Partner Number in ECC.
    Also We are able to see two different business partner number(in ECC this is KUNNR in KNA1)
    Please guide me how to proceed so that when we syndicate the same set of records we want to get update the records in ECC for the same KUNNR.
    We don't want to get another KUNNR for the same records.
    Thanks!
    Pankaj

    "barbara" wrote in message
    news:506500000008000000FAC20000-1077587809000@exch​ange.ni.com...
    > I'm using the simulation interface toolkit V2.0 but it works only the
    > first time after the installation. When I restart again my computer it
    > doesn't work any more. Why??????????
    >
    ---snip
    I am not familiar with the different software that you mentioned but as a
    first step I would check compatibility which is done as below:
    Get original operating system CD that was used to install Windows XP on the
    machine in your post. When Windows XP is inserted into CD ROM drive it
    normally will ask you to conduct compatibility check for the current
    installation. See what it says.
    HTH
    Mohan Pawar
    ----snip

  • Two separate text areas for typing in two languages on the same page

    Dear All,
    I am trying to find a way to have two separate typing areas on a single page so that I can write a letter in both French and English. I can easily get two columns, one which follows another, but that is not what I want.
    Any help would be greatly appreciated.
    I am running Pages '09.
    Thanks
    Tunaman

    What do you want then? Can you describe how you like to position the text?
    In word processing document you can use layout breaks and column beaks to get two text columns beside each other.
    You can also use text boxes, one for each language. You can even use Shapes as text boxes.

  • TS1292 There are two numbers that are not visible in the middle of the code What can I do?

    There are two digits that are not visible in the middle of the itune code. How can I still access this card?

    Click here and request assistance, supplying as much of the code as you can.
    (74408)

  • In my new iphone5 two static lines are showing up continuously what is the problem

    in my new iphone5 two static lines are showing up continuously what is the problem

    The last user troubleshooting step is a restore. Check this support document http://support.apple.com/kb/HT1414 about restore. Just be advised that a restore will delete content from the phone. If you restore from a backup, then it will put content back on, however if it is necessary for you to restore as a new device, everything will be deleted. Make sure content is synced and backed up.
    If that doesn't do it, then make an appointement at the Genius Bar of the Apple store to have the hardware checked. If under warranty and found to be defective, they will replace the device. If no Apple Store close,then contact Apple Care.

  • Cannot compile two classes that are on same package

    When I compile two classes that are on same package one class that is independent of other class gets compiled but the other class which uses
    the first one shows cannot find symbol error with the first class name

    try...
    javac *.java
    that should compile all the java files in that folder at the same time. I dont know if that will fix your problem but it is worth a shot.

  • How can I adjust video from two cameras that are out of sync?

    Hi - I've just recorded someone speaking on two cameras with the intention of cutting clips in from the second camera while using the video and soundtrack from the main camera, however the two video files are out of sync by half a second or so by the end. How can I 'stretch' the shorter clip so they coincide properly? Thanks, David.

    David
    What version of Premiere Elements are you using and on what computer operating system is it running?
    Typically, select the clip,
    as you hold down the Alt key of the computer main keyboard, tap the left or right arrow key once. Each tap = 1 frame nudge.
    as you hold down the Shift+Alt keys of the computer main keyboard, tap the left or right arrow key once. Each tap = 5 frames nudge.
    If you are working with audio editing, consider Edit Menu/Project Settings/General with Audio Display Format = Milliseconds.
    Please let us know if any of the above worked for you.
    Thank you.
    ATR

  • Why two pay roll area fields in Pay roll Driver?

    Hi experts,
    Can some body educate me with the significance of two pay roll areas in the pay roll driver program?
    One field in Payroll period block and another in Selection block.
    Thanks in advance.
    RSS.

    Hi RSS
    The payroll area of the payroll period in payroll driver is for determining time period.
    Please refer to the following doc for this payroll area:
    Payroll area for determining time period
    Payroll programs process different personnel areas and employee subgroups in different payroll periods. A payroll area groups the employees for whom the payroll is to be run on the same date irrespective of their status (salaried employee, industrial worker).
    The program which retrieves data for payroll accounting selects records on the basis of payroll area. The payroll area defines the selection period but not the personnel numbers that are selected.
    Use
    The following options are available for the "Payroll area", "Payroll period", and "Payroll year" fields:
    Payroll area without period and year
    The payroll area is used to determine the current payroll period from the control record. The payroll period is the period for which payroll is to be run. This value is set as the data and person selection period.
    Payroll area with period and year
    The exact period is determined from the payroll area, period and year entries. This value is set as the data and person selection period.
    The payroll area of selection in payroll driver is for payroll accounting area. Please refer to the following doc:
    Payroll Area
    A payroll accounting area (which is often abbreviated to payroll area) is an organizational unit containing all of the employees for whom the payroll runs at the same time.
    Use
    The payroll usually runs for payroll accounting areas. Each payroll accounting area determines the specific dates for which the payroll runs, the earliest payroll period for which retroactive accounting is possible, retroactive accounting recognition, and the periods for which the payroll runs.
    Hope it is helpful
    Regards.
    Jun

  • Is it possible to create a sales order in two credit control area

    Hi,experts,
          I have a senario to realize. One customer has two sales area, and has two credit control area correspondingly. And this customer also has one common shared credit control area. I want to realize that one sales order would occupy two credit control area.
          common credit control area limit :  300
           credit control area A limit : 500
           credit control area B limit : 500
    Now I have a sales order for this customer, net value is 400, the sales order will be blocked. Although it does not supass the credit control area A, but supass the common credit control area limit
    How to realize this senario?
    Thanks.

    wayne,
    Sales order has one credit control area, check VBAK-KKBER
    Therefore order should be checked against this CCA.
    TW

  • Create relation between two blocks which are based on different procedure

    Hiii
    How to create relation between two blocks which are based on different stored procedures in Oracle form??
    Pradhyumn Sharma

    hiii,
    I selected the common key deptno in both procedure.
    I created a relation between both procedure. but when i compile the form it give an error in ON-CHECK-DELETE-MASTER. My procedure are
    ==================================
    PACKAGE emp_pkg AS
    TYPE emprec IS RECORD(
    empno asg_emp.empno%type,
    ename asg_emp.ename%type,
    job asg_emp.job%type,
    sal asg_emp.sal%type,
    deptno asg_emp.deptno%type);
    TYPE emptab IS TABLE OF emprec INDEX BY BINARY_INTEGER;
    PROCEDURE empquery(block_data IN OUT emptab, p_deptno IN NUMBER);
    end;
    ====================================
    PACKAGE dept_rec IS
    type rec is record(dname asg_dept.dname%type,
         loc     asg_dept.loc%type,
         deptno asg_dept.deptno%type);
    type deptrec is table of rec index by binary_integer;
    PROCEDURE dept_rec1(block1 in out deptrec);
    END;
    ===================================
    In ON-CHECK-DELETE-MASTER
    CURSOR BLOCK9_cur IS
    SELECT 1 FROM dept_rec.dept_rec1 d
    WHERE d.DEPTNO = :BLOCK6.DEPTNO;
    identifier dept_rec.dept_rec1 must be declared.
    Regards
    Pradhyumn

  • Can Partial Trigger Work between Two Components Which Are in Two Pages?

    Scenario: Some output text components in page one while a SelectOneChoice and a InlineFrame are in page two. At first the resource attribute of inlineFrame was set to point to page one. When changing the value of SelectOneChoice, the values of those output text will be expected to change accordingly. I tried to make SelectOneChoice to be the trigger of those output text components, but found that SelectOneChoice can't be seen when attempt to edit the value of PartialTrigger attribute of those output text components. Then I tried to set the ID of SelectOneChoice as the value of the InlineFrame component, but failed getting the wanted result again.
    Problem: How to get a partial refreshing effect between two components that are in two different pages? Can partial trigger work in this scenario?
    Thanks for your interest!

    Hi,
    Sorry, you can't achieve that the way you're doing it. If you're using 11g, however, you could do that using regions.
    Regards,
    ~ Simon

  • Two internal tables are neither compatible nor convertible Agentry connect to SAP

    Hello Gurus,
    I try to create two Objects, PurchaseOrder and PurchaseItem. Each PurchaseOrder has a collection of PurchaseItems. I create a Items array in PurchaseOrder object and fetch the PurchaseOrders and PurchaseItems in fetchPurchaseOrder Bapi.
    Then I face issue
    com.syclo.sap.mm.steplet.POGetSteplet::throwExceptionToClient::506::POGetSteplet - Two internal tables are neither compatible nor convertible. |
    2014 06 25 19:31:44#+0700#ERROR#com.sap.mobile.platform.server.agentry.console##anonymous#Agentry Runtime Worker Thread###Exception: 19:31:44 06/25/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: POGetSteplet - Two internal tables are neither compatible nor convertible.),
    I dont know the root cause of the error. Is it an error from ABAP code? Or from Agentry Java code?
    T
    he following is my code in processResult()
    @Override
      public ArrayList<SAPObject> processResults() throws Exception {
      ArrayList<SAPObject> POTab = new ArrayList<SAPObject>();
      JCO.Table _POTab = _tables.getTable("ET_PO_HEADER");
      int rows = _POTab.getNumRows();
      for(int i = 0; i<rows; i++){
      _POTab.setRow(i);
      PurchaseOrder POrow = new PurchaseOrder(_POTab);
      String poNum=POrow.getID();
      if (poNum.equals("")) {
      continue;
       ArrayList<PurchaseItem> poItems = getItems(poNum);
      POrow.Items = poItems.toArray(POrow.Items);
      POTab.add(POrow);
      return POTab;
      public ArrayList<PurchaseItem> getItems(String poNum) throws AgentryException {
      try {
      JCO.Table _purchaseItems = _tables.getTable("ET_PO_ITEMS");
      int numItems = _purchaseItems.getNumRows();
      ArrayList<PurchaseItem> poItems = new ArrayList<PurchaseItem>(numItems);
      for (int i = 0; i < numItems; i++) {
      _purchaseItems.setRow(i);
      String itemPONum = _purchaseItems.getString("PONUMBER");
      if (itemPONum.equalsIgnoreCase(poNum)) {
      PurchaseItem item=new PurchaseItem(_purchaseItems);
      poItems.add(item);
      return poItems;
      catch (Exception e) {
      user.rethrowException(e, true);
      return null;
    Please help me. Thank you very much.

    Looking at the error messageit looks like exception is thrown on the SAP side.  One of the posssible reason is that in the BAPI Output table reference for PO header or PO items  and internal table referenced within the class handler for PO object are not the same.  One could be structure and another could be an internal table.
    Options to troubleshoot further.
    1) By  putting break in your class handler on SAP side.
    2) Turn on detailed logging on SMP Server.
    3) Check for short dumps on SAP side
    Thanks
    Manju  - SAP CEG

  • Two internal tables are neither compatible nor convertible.

    Hi,
    I am having an internal table which is of type table of my own structure.I need to copy the table(containing my structure) to a table of ABAP TYPE TABLE.It is
    showing the dump "Two internal tables are neither compatible nor convertible. "
    I have triede with MOVE statement,APPEND stmt and even using "=".Can anyone help me on this?
    Regards,
    Rohini.M

    Hi,
    I have given my code below.
    DATA: ls_header TYPE bbp_pds_header,
           lt_faud TYPE TABLE OF /sappssrm/faud,
           ls_syn_swt TYPE /sappssrm/s_synops_audit_data,
           lt_syn_audit TYPE STANDARD TABLE OF /sappssrm/s_synops_audit_data,
           ls_faud TYPE /sappssrm/faud.
    IF iv_flt_bus_obj_type = 'BUS2200'
    AND iv_flt_table_type = 'THGPF'.
        CALL FUNCTION 'BBP_PROCDOC_GETDETAIL'
          EXPORTING
            i_guid   = iv_parent
          IMPORTING
            e_header = ls_header.
        SELECT * FROM /sappssrm/faud INTO TABLE lt_faud WHERE businessobject = 'BUS2200' AND sapdocnum = ls_header-object_id.
        LOOP AT lt_faud  INTO ls_faud.
          MOVE-CORRESPONDING ls_faud TO ls_syn_swt.
          APPEND ls_syn_swt TO lt_syn_audit.
        ENDLOOP.
    ****Here I need to assign my lt_syn_audit table to my changing parameter ct_extension_table which is of generic type TABLE"***************************
    endif.
    I am using a BAdI "/SAPSRM/BDI_PDO_TE_OUTBOUND"
    Thanks and Regards,
    Rohini.M

Maybe you are looking for

  • Help: consuming an external web service with user name token

    Hello Together! I need to consume an external web service secured with WS-UserNameToken. The way, how did I do it: 1. I generated a web service consumer (proxy) in SE80 from the wsdl file 2. I created logical port for the consumer in SOAMANAGER 3. I

  • 20"iMac Display Suddenly Goes Black

    While I am using my iMac, occasionally suddenly goes black. If I hit a key (usually the space bar), it comes back as if I had put it to sleep. What is happening? What should be done? What can I do? Thanks for your help and information.

  • Call Encryption Software from SAP

    There is an encryption software installed in the user's PC. Some files are being downloaded in to the user's PC from SAP using a report. Is it possible to call this encryption software in the user's PC to encrypt all the downloaded files from SAP ?

  • After Effects CC (12.1) update Installation failed. Error Code: U44M2P

    Hi I first got a U44M1P7 Now a U44M2F error after I did what the trouble shoot suggested bu downloading the update directly Update 12.1 It installs to the end then says update failed. Please help

  • Library opens all files in it after I click on it

    Hi Everybody When I double click on my library it opens all files in it. I have another library, which after I click opens only a dialog box to chose the file to open. Now, how do I determine how the library should behave, either it should open all v