How to use the property PivotX and PivotY in cascades

Hello

My goal is to rotate the line on my angle.

1 I received two points: A(x1; y1) and B(x2; y2).

2. I calculated the size of the vector AB and angle of point A:
AB = Math.sqrt (Math.pow ((x2-x 1), 2) + Math.pow ((y2-y1), 2));
Alicia = 44 *.

3 I put in place the line on the terms of coordination (width = AB, height = 3px):
myLine.layoutProperties.positionX = x 1;
myLine.layoutProperties.positionY = y1;

4 I turn the line on the angle that was found.
The starting point of the line must be the point A, endpoint - point B. But I have no =)
I try to use the rotationZ, but I do not know how to work with his propertyes PivotX and PivotY.
Default 0 PivotX and PivotY = 0. When I try to set up PivotX = x 1 and y1 = PivotY I get the incorrect result.

With PivotX = 0 and PivotY = 0 I get it (myLine.rotationZ = 44):

Please, help me =)

That could happen, because the pivotX and pivotY zero definition makes the rotation around the center of the element. In the case of this image, which is equal to its center point (300, 1.5), but no, it is top left. Try to set the pivotX to-(image.width/2), which will be:-300; pivotY to the-(image.height/2), which is - 1.5; and then turn again.

Please see the details on this subject here:

http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__visualnode.html

Tags: BlackBerry Developers

Similar Questions

  • Portege R500-11Z: how to use the external mic and hear the internal speakers

    We have a Portege R500-11Z running XP and want to use Skype with an external table microphone and the internal speakers.

    When connect us the microphone to the Jack MIC the Portege, built-in speakers cut out!

    How to use an external mic and still hear the internal speakers?

    Hello

    > When connect us the microphone on the Portege, built-in speaker MIC Jack cut!
    Are you sure you used the microphone port and no headphone port?

    Have you checked your settings Audio from Skype?
    There is an option called ring through the speaker too or something like that.

    Please also check the Realtek HD audio Manager in Control Panel.
    There is a tab called Audio i/o.

    Usually, you can change the connector settings, by clicking on the small key-tool icon.
    Disable the option called Mute rear output when plugged headphones before

    As you can see is called headset and not so I m confused a little bit why the speakers are turned off when you connect an external microphone.

    By the way; There is also a tab called micro.
    Check if the two options that reduce the echo and noise are OFF

  • How to use the OS Android and Windows on the same shelf?

    Original title: is it possible I ca use the OS android and mircosoft OS?
    Is it possible that I can used both ANDROID OS and MICROSOFT OS at the same time in my Tablet?

    You will not be able to install the Windows operating system on an Android device.

  • How to use the Listview element and list in Adf

    Hello

    Can someone explain how to use list view and tags to list items in adf to display the data in the table.


    Concerning
    Suresh

    On the error, check your log window, if no content appears then it suggests that an error occurs.

    I built it by hand.

    CM.

  • I'm trying to learn how to use the "Add spamming" and the "list of Manage spammer" but can not find any reference material?

    I need to learn to use correctly the spammer 'Add' and 'Manage the spammer list' functions and can find no documentation/explanation of these functions. Sites I list with the function "Add spamming" keep coming in my mail box.

    Thank you for your help

    Use the built-in junk e-mail filter Thunderbird.

    http://KB.mozillazine.org/Junk_Mail_Controls

  • Satellite A200 - how to use the disk recovery and backup all the files?

    Hi I have a Satellite A200 that came with a "product recovery cd. Recently I got an infection/trojan/spyware such as windows defender was taken over by something else (a lot of error abnormal messaes and asking me to purchase the full version). I'm no expert, but surely, I know that windows defender is a free program.

    Anyway, please could someone give me advice on the best way to solve this problem. that is the best option to use. Is there anyway that I can back up the files that I have (with the exception using an external HD drive).

    Thanks in advance

    Hello

    _How to use the recovery disk? _
    That s pretty easy: insert the diskette and boot from it that s all!
    In addition, you will need to follow the instructions on the screen and make a few clicks, but that s really all!

    _How to save files? _
    First of all I m asking you ask for it. You didn't make a backup yet? What do you do if your HARD disk down the next morning?

    In any case, the Toshiba recovery disc erase your entire HARD drive. This means that you must back up your files to an additional disk. Everything on the drive HARD internal will be deleted.

    You don t want to use an external HARD drive? Why?

  • How to use the target FPGA and co. on the same chassis cRIO?

    I have a cRIO system consisting of a master chassis 9074 with several modules IO and EtherCAT 9144 slave unit.

    I want to run a CIE (see: http://zone.ni.com/devzone/cda/epd/p/id/5333) on the chassis of the master, this uses the analytical engine. At the same time I have to do some very urgent measures if I want to use the Board in hybrid mode, using analysis and FPGA engine at the same time (as described here: http://digital.ni.com/public.nsf/allkb/0DB7FEF37C26AF85862575C400531690.)

    But as soon as I add the FPGA target at one of the chassis, the feature of the ice on this chassis stops working. After some research, I found that the CIE can initialize is no longer the modules belonging to the frame that has the target FPGA on it. Error in the method Init of the CIE is: 65700 (indeterminate). This occurs when you try to use "for a more specific class' on the modules configured with a target FPGA on it.

    Someone knows what can cause exactly this problem and perhaps provide a solution/work around?

    Many thanks in advance.

    Hybrid mode requires you to have a bitfile compiled running on the FPGA to be able to read the Scan Interface IO Variables.  Move the target FPGA at the RT target module will allow Interface of scanning for this module, but the frame will always mode Interface of LabVIEW FPGA.

    To get fair access to the scan mode for the frame, right click on the chassis in the project, and choose Properties.  Then, modify the Scan Interface programming.  If you want to continue using the programming of FPGA and the Scan Interface set (hybrid mode), you will need to compile a bitfile (empty if you do not want programs on the FPGA again or containing your FPGA code).  By compiling, the support of the module scan mode for the modules under your RT chassis is compiled in your custom bitfile.  Then, on your VI RT, you need to use reference FPGA VI open to your newly compiled VI.  Once this VI is deployed and ongoing implementation, you get the data from you are the CIE.

    For more information, see this knowledge base article and Reference Interface of Scan CompactRIO and procedures.

  • How to use the Arc keyboard and mouse Arc using the same USB Transceiver?

    I bought a bow from Microsoft and Microsoft Arc mouse keyboard.

    Both devices come with their own 2.4 GHz USB tranceivers.

    I want to connect the keyboard and mouse to a transceiver.

    I can't find any instructions on how to do it.

    In comparison, my Logitech keyboard and mouse comes with software that allows me to pair several devices to the same Transceiver.

    How to connect the keyboard and mouse to a transceiver?

    P.

    As far as I know, you can do that.  If you want the keyboard and mouse on a transceiver, you buy a keyboard/mouse kit, commonly known as a desktop computer.

  • I would like to know how to use the address book and the list of.

    from time to time I get the suggestion to store an email address in my list of and I don't know how to do this.

    Without knowing what send your help.

    Outlook.com,

    Click on the symbol of the gear in the top right (not the symbol of gear ie9)

    Then click on e-mail settings

    Avoid spam,

    Safe and blocked senders.

    Shippers,

    Copy and paste the email address in the field field, and then click Add.

  • How to use the headphones cable and load on iphone 7?

    I am very interested in th new IPhone but I'm not clear on how couldn't I maintain the main use that I have now with it.

    In many cases, I use my headset while I load the Iphone:

    -audio conversation at the end of the day when the battery is low and he needs to reload

    -When chat or listen to music while using my phone as a modem, with usb cable (otherwise as this function drains the battery quickly impossible)

    Also, I tried to use a Bluetooth headset but frankly I prefer questions from the cable to the battery ones (always unloaded when you have an important conference call) and the sound quality not so good

    So the question is simple: Apple will offer, for a reasonable price, a lightweight port Doubler ? It's the only solution I see, even if painful compared to the current iPhone (risk of losing the adapter, may not be comfortable in a Pocket / may damage the Iphone port...)

    Ulysse311 wrote:

    .. So the question is simple: Apple will offer, for a reasonable price, a lightweight port Doubler ?...

    Hello

    It is a community of support based on the user.

    If you wish to submit comments or suggestions to Apple, you can do it here:

    https://www.Apple.com/feedback/iPhone.html

  • Help... How to use the recovery on Pavilion g4 2014tx partition

    Hi all... Would like to ask how to use the recovery partition and what is the effect if I used it... ?

    Thank you...

    Hello:

    You normally start the PC, and at the beginning of the HP welcome screen, you press the F11 key to start the Recovery Manager program.

    Then follow the instructions to restore your PC to its state of software "out of the box.

    In so doing you re-partition and reformat the hard drive.

    All THE data you have on the PC will be lost.

    So make sure that you copy the files that you want to keep on a portable hard drive before proceeding.

    It is also for if you have created a storage partition. You must copy all the files from that too.

    All partitions are erased and redone.

  • How to use the POwn, PCon or PMin in codification

    Dear all experts,

    Do you know how to differentiate the consolidation of one account with another? The condition is:
    Assets: PCon
    Liabilities: PCon
    Account (NCI, the working capital reserve, etc.): POwn
    Is this possible? Actually when and how to use the POwn, PCon and PMin?

    Thank you for your attention
  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    Is it possible to get the procedure to use feature stich photo?

    Will be Zoombrowser EX for windows 10 wotk?

    If any expert can guide me... that will be great.

    Hi Sat17,

    Thank you for your inquiry.

    For Windows 8 and beyond, ZoomBrowser EX has been replaced by EX. ImageBrowser

    Your software you will need to updated for Windows 10.

    You can access the software for your camera by clicking here.  Once on our site, scroll down to "Drivers and downloads", then use the drop down menu to choose "8.1 Windows" or "Windows 8.1 (x 64)".»  Your camera software has not been updated for Windows 10, but for Windows 8.1 software will run on your computer.

    To update your software, click the [Select] button to the right, then click on "How to download and install" for installation instructions.

  • How to open .tif files using the Windows fax and picture viewer

    I have the file open options set to use the viewer photo and fax Windows, however, it is always opens the .tif file in a window of IE. In reading the other posts regarding this problem, I think it may be a number of MIME, but nobody published how to fix this. Can someone send please how to change the MIME type so I can open the files in the right way. I REALLY appreciate it.

    Windows XP SP3 with all updates and IE8.
    Thanks in advance,
    Eric
     
    Original title: how IE8 to open a .tif file by using the Windows fax and picture viewer?

    Hello

    I suggest that allows you to remove any CLSIDS listed under location:

    HKEY_CLASSES_ROOT Type\image/tiff
     

    Note: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/ )

    How to back up and restore the registry in Windows.

    I hope this helps.

Maybe you are looking for