Scale factor on WebView

Hi,
Does webview provide any way for zooming in and zooming out (make html5 webpage appear to be bigger or smaller)? The closest thing i found is webview.setScaleX, webview.setScaleY but it doesn't seem to work. What i tried both way of setting the scale before or after loading the document and it does seem to matter. The webpage doesn't load at all after the setScale*.
Thanks for the great work btw.
- tt

You issue may be platform specific - a simple test case on JavaFX 2.0GA, WindowsXP SP3 with a Radeon 4650 worked fine for me.
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class WebViewScaler extends Application {
  public static void main(String[] args) { Application.launch(args); }
  @Override public void start(Stage primaryStage) {
    WebView root = new WebView();
    root.setScaleX(2); root.setScaleY(2);
    root.getEngine().load("http://jqueryui.com/");
    primaryStage.setScene(new Scene(root, 1000, 800));
    primaryStage.show();
}

Similar Messages

  • Problem in JAI scale factor

    I am using scale method for Zooming purpose.So i set scale factor as 0.5 for Zoom-in and 1 for Zoom-out.First I load the image,then i perform Zoom-in to make fit width.After Zoom-in,i am getting the image co-ordinates which is totally different from that of original.But actually what I need is the image co-ordinates to be same when i Zoom-in or Zoom-out. So i think Scale in JAI is only for Resize and not for Zoom.So please provide me the solution for Zooming as early as possible.
    Thanking You,
    Kannan

    I am not saying it will work, but I would ask if you tried "Dilate"? I don't know what the parameters are supposed to be for the different methods, but I do know how to get a listing of them. See the code below:
              OperationRegistry ory = JAI.getDefaultInstance().getOperationRegistry();
              String [] temp = ory.getRegistryModes();
              String []temp2;
              for (int which = 0; which < temp.length; which++) {
                   temp2 = ory.getDescriptorNames(temp[which]);
                   System.out.println("\t"+temp[which]+":");
                   for (int cual = 0; cual < temp2.length; cual++) {
                        System.out.println("\t\t"+temp2[cual]);
    That will get you a listing of all of the registry modes and the descriptor names within each mode. For parameters and explanations, well, I guess check out the source code for the JAI library and then rifle through it until you find an example, or use trial-and-error, since the only documentation seems to refer to deprecated calls (as I have noted in the most recent version of JAI).

  • Scale factor change in 11g?

    This is what i do on Oracle 10g R2 and 11g.
    select wktext from cs_srs where srid = 28992;
    On 10g R2 I get:
    PROJCS["Amersfoort / RD New",
              GEOGCS [ "Amersfoort",
                   DATUM ["Amersfoort (EPSG ID 6289)",
                        SPHEROID ["Bessel 1841 (EPSG ID 7004)",
                        6377397.155, 299.1528128], 593.16, 26.15, 478.54, -1.30439800822601264037402186442411206952, -.103297414968545854662361857351254024323, -1.14450153042326354585672371782129234178, .9999959225],
                   PRIMEM [ "Greenwich", 0.000000 ],
                   UNIT ["Decimal Degree", 0.01745329251994328]],
              PROJECTION ["RD New (EPSG OP 19914)"],
         UNIT ["Meter", 1]]
    On 11g I get:
    PROJCS["Amersfoort / RD New",
              GEOGCS [ "Amersfoort",
                   DATUM ["Amersfoort (EPSG ID 6289)",
                        SPHEROID ["Bessel 1841 (EPSG ID 7004)", 6377397.155, 299.1528128],
                        593.16, 26.15, 478.54, -1.304398008226, -.103297414969, -1.144501530423, 4.0775],
                   PRIMEM [ "Greenwich", 0.000000 ],
                   UNIT ["Decimal Degree", 0.01745329251994328]],
              PROJECTION ["RD New (EPSG OP 19914)"],
              UNIT ["Meter", 1]]
    Now the interesting part is in the scale factor of the datum transform:
    On 10g R2 this is:
    .9999959225],
    on 11g this is
    4.0775
    I understand that 11g is doing it correct as the scale factor needs to be defined in Parts Per million, so it should be read as:
    1.0 + 4.0775 * 1.0e-6.
    But then I don't get 0.9999959255.
    I only get that value when I do:
    1.0 - 4.0775 * 1.0e-6.
    So has the scale factor been wrong in Oracle 10g R2 all the time?
    Is Oracle Spatial wrong again as it should be 1.0 + ppm * 1.0e-6?
    Am very confused here...
    Edited by: [email protected] on Jan 25, 2010 4:04 PM

    Yes, a small subset of the EPSG SRIDs had this problem in 10gR2. OGC SRIDs were not affected. The value in 11g is correct, based on the EPSG data.

  • Scale Factor for Photoshop and Firefox

    Hi everyone,
    I am attempting to adjust the scale factor on my macbook pro. Everything is good so far except several applications (firefox and cs5 photoshop) do not readjust well. I am wanting to set the independent scale factor of these applications back to there original settings.
    To do this I need to know the location of bot firefox and photoshop .plist file. (ie: com.apple.photoshop) - this is not correct file name...
    If I know this, I can type this command into terminal:
    defaults write com.apple.photoshop AppleDisplayScaleFactor 1.00
    Does anyone know the name or location of the files?
    Thanks,
    Calvin

    I am attempting to adjust the scale factor on my macbook pro.
    If you mean so images display the correct size on screen when you choose Print Size, you do that in Photoshop by opening the preferences.
    Create any blank document at the resolution you most commonly use. Something small enough to fit the screen and be measured with a ruler. 3"x5" or somewhere around there.
    Open Photoshop's preferences and click on Units and Rulers in the left column. You want to change the settings in the New Document Preset Resolutions section. Since I mostly do print work, I set Print Resolution to 300 pixels/inch. Then start changing the Screen Resolution field until you find the number that gives you the closest setting to actual size when you choose View > Print Size. I ended up using 94 on a monitor with a 1920x1200 resolution.
    Photoshop is also smart enough to use those values to interpolate other file resolutions. If I make a copy of a 4"x6" image and scale it down to 200 pixels/inch, it still displays the correct size when choosing Print Size.

  • Change scale factor on runtime

    Hello!!
    Can somebody advice me about a way to change charts scale factor(wad 7.0). Something like doing zoom in and out.
    Thanks!!

    Hi Ben,
    Chandrasekar's approach was to create a new template & bind the list items to the new template which is also a good solution, but a better way would be just updating the list Aggregation that would have solved your issue,
    oList.updateAggregation("items");
    JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;icon&quot; href=&quot;http://static.jsbin.…
    Regards
    Sakthivel

  • LVPDA 8.5 picture set origin, scale factor??

    Hi!
    I want to display an image on the screen of the PDA. It will be a navigation like application:  i have to show a small detail of a bigger image, but always another detail. In desktop applications I can do this with changing the "origin" and "scale factor" property of the picture. But if I use these invoke properties of a picture with PDA target settings, i get a "target specific" error message. How to use these without getting error / is there another simple way to do this?
    Thanks:
    tomidevil

    Hello,
    Thank you for your answer.
    The error message box looks as following:
    "Target specific errosrs and warnings:
            Property Node 'Picture':     (nothing)
    Details:
    Could not get error details"
    "you have to use ActiveX Property Nodes, linked to the image you want to process" - I don't really understand what this means, and how to do it? 
    Regards,
    Tamas Gusztav

  • Geometric Template Matching Scale Factor

    Hey,
    I've been having some problems with the Geometric Pattern matching. I have a few images that I've been testing, and it seems like the scale factor I specify doesn't compensate for different sizes in the image.
    The three images are attached below. all.jpg is being successfully matched and the match cluster says it has a scale factor of 70%. I took the all image and increased it's size slightly to create all2.jpg. all2.jpg cannot be matched. I increased the size by 25%, and in the geometic pattern matching stuff I have a range of 25% to 150% so it seems like it should still be matched.
    Any help would be appreciated,
    Kevin
    Attachments:
    all.jpg ‏211 KB
    all2.jpg ‏113 KB
    template.jpg ‏132 KB

    That's interesting you would think that rotation was the problem after I explained taking all.jpg and increasing it's size to create all2.jpg, and that change caused all2.jpg to no longer contain a pattern match. So, I took all2.jpg and created all3.jpg by rotating all2.jpg to match the rotation of template.jpg. all3.jpg also does not contain a pattern match. Now for fun, I'll take all.jpg and create all4.jpg by rotating all.jpg to match template.jpg. all4.jpg also contains a match. So to summarize my findings:
    all.jpg - original - pattern found
    all2.jpg - all.jpg size increase - pattern not found
    all3.jpg - all2.jpg rotated - pattern not found
    all4.jpg - all.jpg rotated - pattern found
    This leads me to believe that the pattern matching is not accounting for the scale factor, but is accounting for the rotation. Although, the interesting thing is all2.jpg is closer in size to the template than all.jpg.
    Attachments:
    all3.jpg ‏124 KB
    all4.jpg ‏81 KB

  • Thermocoup​le Scale Factor

    Hi,
    As I learned in Basic I & II, 100 is the scale facto to measure thermocouple. Is this valid for all type or just the device at the training center.
    I am reading thermo Type K as a voltage with scale of 100 but the reading is .4 V instead of 70 deg c. The range set to 25-100 C.
    My Q is: Do you have to do some measurment to set the scale factor to the right number?
    Thanks 

    What device are you using to measure the voltage from the thermocouple? Are you using a National Instruments DAQ board, or something else to input the voltage to the PC? Is the voltage from the thermocouple amplified by anything before you measure it? That would help a great deal in determining the answer to your question.
    But this might be useful info:
    According to this website: http://www.picotech.com/applications/thermocouple.​html
    Type K (Chromel / Alumel)
    Type K is the 'general
    purpose' thermocouple. It is low cost and, owing to its popularity, it
    is available in a wide variety of probes. Thermocouples are available
    in the -200 °C to +1200 °C range. Sensitivity is approx 41 µV/°C. Use
    type K unless you have a good reason not to.
    So, at 100°C, without any amplification, the thermocouple would output a voltage of
    .000041V/°C * 300°C = 0.0123V (the TC range starts at -200, so add 200 to the desired temp)
    And at 25°C, the TC output would be
    .000041V/°C * 225°C = 0.009225V
    So, I would say that you have some kind of device that is amplifying your TC to a higher voltage. Therefore, you need to know what that amplification factor is before converting that voltage to a temperature. If, just as an example, you have a circuit or box that inputs a TC voltage and outputs 10mV/°C, then your 25-100°C range would be .250V - 1.00V. In that case, the .010 is your scale factor, and your 0.4V output would translate to 40°C. Again, that depends on the hardware you are using.
    Does that help at all, or just confuse you more?
    B-)

  • Output/Input Scale Factor

    I have a high resolution stage used for a scanning application.  I'm using a pci-7344 to control the stage.  The system is marginally stable with kp=1 and various values set for ki and kd.  I have found several posts with the same issue:
    http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/tuning-servo-system/m-p/139507/highlight/tru...
    http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/Is-there-any-way-to-drcease-the-open-loop-ga...
    http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/MAX-Reducing-Encoder-Resolution/m-p/1030934/...
    http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/7344-PID-proportional-gain-1-but-actuator-st...
    It is apparent that the gain needs to be set below one and the only current solutions (decrease encoder resolution or decreasing the output limits) are both unacceptable.  Encoders aren't free (and in my case extremely difficult to replace) and I want my stage to run as fast as possible.
    Many other modern controllers allow the input and/or the output of the PID loop to be scaled (even if it's only by factors of two for non floating point dsp's) for exactly this reason.  This allows one to arbitrarily place the optimal kp value within the allowable integer range (i.e. 1<kp<32768).  Is there a way to do this on ni controllers?  If not is there a propper place to request features?

    Unfortunately you can't scale the input or output of the PID loop. I am attaching two links below that discuss how to tune the servo motor and also where you can make product suggestions. I'm sorry I don't have better news for you, but please post your ideas to the idea exchange below so our developers can look at them. Thank you!
    A Simple Method for Servo Motor Tuning
    NI Idea Exchange
    Mychal F
    Applications Engineer
    National Instruments

  • ? Scale Factor of Imported Graphics

    I've exhausted every possible place I can find an answer, so if it's obvious to you, I apologize, but I have tried.
    I am going from nearly 20 years in Pagemaker (and Quark) to Indesign. The transition is not intuitive to say the least. My biggest head scratch is where do I find the proportions or scaling of images. The images are in their containers, but I find no way to see what their scaling factor is set to.
    The fit content to frame, fit frame to content, etc. etc. buttons in the tool bar don't give this info. In Pagemaker, there were actual x and y scaling measures. One of the advantages of seeing the measures is to ensure that you're not over scaling an object (and subjecting your image to pixelation). Links, right clicking, double clicking, etc. I just cannot find this information.

    Thank you Peter. I figured I was making it harder than it needed to be. I appreciate your taking the time to reply.
    Kristi

  • Scale factor in f.09

    i want to maintain the value of TOTAL OF REPORTING PERIOD in LACS. What Scaling factor to choose and how to set it as default.

    pls help me any one one on this
    mallik

  • Ghost scale factor appied to graphics and text

    I am working on menu generation that uses a container and adds child graphics with text labels
    The container has event listener applied to respond to MOUSE_OUT. This is so the entire menu
    will dissappear on rollout. The problem is that the child MovieClips and applied textFields are
    effected by some kind of scaling factor that I can't find in my code.
    I have attached the file with the code. It is formatted for Unix (line feed line endings)
    Suspect code is line 102 to 139 (knobOverMenu.makeMenu()). Lines 56 to 59 is the formating
    object.
    You will notice the font size is set to 2. I had to do this because using size 10 results in greatly
    scaled text.
    Why would this scaling factor be applied here? I can't find any indication in my code.
    Thank you for time and attention
    JK

    That is a simple rectangle that serves as the background for each menu
    item.
    It was created in Flash and exported to actionscript. So the code is
    what Flash
    created.
    The problem showed up when I started adding menuFieldmc with text label
    to menuPanel. That is another graphic like mainFieldmc but with enough
    height to include all the menu items. I suspect that is the problem. I
    also
    created that in Flash and exported for ActionScript. Inside menuPanel
    the mainFieldmc instances and text labels are scaled about 5 times.
    I am also curious about Sprite. When I convert a graphic element to a
    symbol,
    the dialog does not offer the option of assigning Sprite to the symbol,
    just Simple
    Button, Movie Clip, or Graphic. If I choose graphic it does not create
    an object
    definition.
    Thank you for time and attention
    JK

  • Calculating scale factor from miliamps input to labview output

    I am setting up a testing fixture with Fieldpoint and Labview. I am bringing in a 4-20MA single to the fieldpoint. I need to scale it so I can have a pressure and vacuum reading in my labview screen. Do I use a multiply function or make a sub VI.
    Thanks, Bob

    I built a sub VI for my amp meter. I have a current transducer that is set to read 100 amps. So we used y=mx+b and got the scaling right on. I copied the Sub VI and used it for a pressure reading. This time the scale was based on a 250 PSI Transducer. This transducer puts out a 4 to 20ma signal. Again this one works perfect. It is dead on compared to the precision analog gauge. The problem is with my Vacuum Transducer. It is a 0-200 psi or 0-30" in Hg. I calculated the y=mx+b for this sub VI and I can not get a valid vacuum reading. I checked the port to make sure I was pulling vacuum there.
    In the sub VI if you click on it, it shows the original calculation for the amps. I tried to save the sub VI as a different name but it will not allow two sub VI's in the same state. I was able to get the pressure to work by changing the value in the constant that is connected to the Y multiplier.
    So how do I get the vacuum meter to show a 0-30" value.
    Thanks for the reply, Bob

  • Multiply column by a scaler factor ??

    How do i multiply a column by a factor ??
    EG i want to find the city where the population of the city accounts for GREATER than 20% of the total population of the state ??
    pop90 = population of city
    totpop = population of corresponding state
    i tried WHERE pop90 > .2 totpop
    But the cmd isnt recognised, how can i do this ?? thanks

    EDIT, just tried the * key to use as multiplication and it seemed to work, this command counts the number of cities where the population of the city (pop90) is greater then 20% of the total population for its corresponding state (totpop)
    SELECT COUNT(city)
    FROM (SELECT city FROM (SELECT city,pop90,totpop FROM spatial.us_cities usc, spatial.us_states uss WHERE usc.state_abrv = uss.state_abrv)
    WHERE pop90 > .2 * totpop);

  • Is there a way to scale down the movement of a parented object, while keeping it on the same path as the parent?

    I have three elements in my comp--a foreground element, a mediumground element (a tree), and a background element (the sky). I want to parent
    the medium and background elements to the path of the foreground element--but since they are farther away form the camera, they would not move
    as much as the foreground layer. Is there a way to parent these two layers to the foreground element, and then scale back the percentage of their movement?

    I think you are making this much too difficult. If you have foreground, middle ground, and background layers make them all 3-D and arrange them in 3-D space then add a camera and move the camera. Your parallax shift will be automatic and perfect if you arrange the layers properly.
    As you move the layers in z space you can scale them up so your composition looks right. You can't even use a simple expression to tie the distance of the layer to the camera to automatically fix the scale.
    If you want to just move a layer on the x axis half as far as the foreground layer moves in x then the expression would look like this:
    mlx = thisComp.layer("master").position[0];
    sf  =  .5 // scale factor;
    nx = mlx * sf;
    [value[0] + nx, value[1]]
    In English this expression says mlx equals the master layer x value
    The scale factor (sf) is 50% experssed as a decimal
    The new x value (nx) is equal to the master layer x position times the scale factor
    Then you just write an array for the original x value plus the new x value  and take the existing y value from this layer.
    This expression gives you the opportunity to keyframe both the X and Y position of the layer.  If I wasn't typing this post on my phone I would've taken the time to subtract the master layer X and Y position from Half of the comp height and width so the following layer would not have to be brought back into position after writing the expression.

Maybe you are looking for

  • So many wireless questions in my move to australia--HELP

    I'm moving to australia and I have many questions--please forgive the length of this. First I had been waiting for the Palm Centro to move to Verizon because my Tungsten E is dying. Now that I'm moving I'm going to need to buy a cell phone in Austral

  • VGA external monitor shows yellow and green colour

    I just took apart my T410s to change the screen hinges. I thought all had gone well but when I plug in an external monitor the colours don't display properly. The display is yellow and if you wiggle the cable it goes green. Could this have been somet

  • How can i view mail mailbox folders on my iphone

    I have created folders or mailboxes on my iMac.  When I move mail to one of these folders I would still like to be able to access it from my iphone but can't seem to do that.  From my iphone, I can only view mail in "inbox", "sent", etc. but not fold

  • Burning CD's works fine, BUT when playing the cd, seconds are being skipped

    Hi, Burning CD's works fine here, but when I play the completed CD, every 30 seconds a second of the song is being skipped. It's like it jumps one second forward. Any ideas for this problem? I already tried to solve it by rebooting and burning the pl

  • Converting ReCycle Files into EXS

    When using the EXS editor to convert REX files, is it necessary to have ReCycle installed? I have some REX files but dont have ReCycle. Whenever I goto Instrument > ReCycle Convert in the EXS editor all the options are greyed out. Is it even possible