Setting Theme's Max Whole Image Level from Java

Hi,
I'm using JDeveloper11g and I have problems with predefined themes.
I have developed an application which shows a predefined theme through the <dvt:predefinedTheme> component.
Because there too many FOIs , I want to set the "Max Whole Image Level" for the theme.
I know it' is possible from Javascript with function "setMaxWholeImageLevel".
Is it possible from Java too?
In Java I have instances of classes UIGeoMap and ThemeFOI, but I don't find methods to set the "Max Whole Image Level" for the theme.
How can I do it?
I tried another method too. I put an <af:clientListener> component to listen to page loading. So when page load event fires, a javascript method calls the "setMaxWholeImageLevel" function. The problem is that when page load fires, the object MVThemeBasedFOI (returned from object MVMapView) is null.
This is the javascript code:
function test()
var mapView = null;
var theme = null;
var geoMap = AdfPage.PAGE.findComponent('map1');
mapView = geoMap.getMVMapView();
if(mapView != null)
theme = mapView.getThemeBasedFOI('predefinedTheme1');
if(theme != null)
theme.setMaxWholeImageLevel(11);
theme.setMinClickableZoomLevel(11);
What can I do?
However, do you know if Java functions, setting "Max Whole Image Level" parameter, will be implemented?
Thank you,
Arturo

Hi,
I have found a solution for my problem.
If I call Javascript from backing bean, it works well.
I have inserted the calling to javascript function test() in method setMap1():
public void setMap1(UIGeoMap map1)
this.map1 = map1;
if(map1 != null)
ThemeFOI theme = map1.getThemeFOIById("predefinedTheme1");
if(theme != null)
FacesContext facesContext = FacesContext.getCurrentInstance();
ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
service.addScript(facesContext, "test();");
However I have these questions:
1) What is the best method to work? Is this method better than using an <af:clientListener> component listening to page loading ?
2) In the next release of JDeveloper, will it be possible to set a predefined theme as a "whole image" from Java ?
Thank you,
Arturo

Similar Messages

  • [svn:bz-trunk] 20609: Change the default max object nest level from 1024 to 512.

    Revision: 20609
    Revision: 20609
    Author:   [email protected]
    Date:     2011-03-04 10:23:41 -0800 (Fri, 04 Mar 2011)
    Log Message:
    Change the default max object nest level from 1024 to 512. A max object nest level of 512 should be more than enough for most applications which probably will not be sending deeply nested object graphs over the wire. For applications that are sending deeply nested object graphs over the wire and that bump up against this limit, the limit can be increased but you should also do testing to make sure that serializing/deserializing these deeply nested object graphs doesn't cause stack overflow errors. 
    Update documentation for the max object nest level setting to reflect the new default.
    Add documentation for the new max collection nest level setting.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.java
        blazeds/trunk/resources/config/services-config.xml

    You should be able to get some more precise information from your Xorg logs, but I would bet it is related to the evdev driver. Some of the options in your xorg.conf no longer work with the latest version. For now you should be able to either map your mouse directly to the appropriate /dev/event* entry or change to the standard mouse driver, both of those methods should be in the wiki.
    You are supposed to be able to use the evdev driver without the input section of your xorg.conf by using dbus/hal autodetection, but AFAIK at the moment the xorg-server package still isn't compiled with hal support, so you would have to patch and rebuild the package.

  • Image with red car in road - turning whole image apart from car a different colour / tint

    Hi. I have done this before but can not remember what the technique is to search for it.
    I have an image of a red car in a city with buildings etc. I want to turn the whole image, apart from the red car, to be either grayscale or to have a blue tint.
    What technique is this called / what do I need to do?
    Many thanks
    Fetster

    http://feedback.photoshop.com/photoshop_family/topics/how_can_i_make_a_photo_black_and_whi te_with_one_object_in_color

  • [svn:bz-4.0.0_fixes] 20928: Needed to change maxObjectNestLevel in SerializationContext. java to 512 to change the default max object nest level from 1024 to 512.

    Revision: 20928
    Revision: 20928
    Author:   [email protected]
    Date:     2011-03-21 07:02:01 -0700 (Mon, 21 Mar 2011)
    Log Message:
    Needed to change maxObjectNestLevel in SerializationContext.java to 512 to change the default max object nest level from 1024 to 512.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/SerializationContext.java

    Hi Diego,
    i have a question.
    i know that we need SRM 4.0 installation on WAS and ITS to be installed.
    my question to you is....
    do we need to install EBP separately if we have already installed SRM 4.0 ( in other words is EBP part of SRM 4.0 installation or is it separate)
    and for ITS i am running WAS 6.4 and i know that ITS is an integral part of it so how do we activate ITS for SRM 4.0
    Thanks a lot in advance
    Harish

  • Image Save from Java GUI

    Hi,
    I am currently working on project which is basically development is going on Java Spring and Oracle 10g
    I have a problem when i am calling the procedure from Java GUI
    I am created directory named IMAGE_DIR
    CREATE OR REPLACE PROCEDURE u_rfnd_cnd_test
    (ackno in varchar2, p_name IN u_rfnd_cnd_petition.URCP_IMAGE_NM%TYPE) IS
    v_bfile BFILE;
    v_blob BLOB;
    BEGIN
    INSERT INTO u_rfnd_cnd_petition (URCP_ACK_NO, URCP_IMAGE_NM, URCP_IMAGE)
    VALUES ( ackno,p_name, empty_blob())
    RETURN URCP_IMAGE INTO v_blob;
    v_bfile := BFILENAME('IMAGE_DIR', p_name);
    Dbms_Lob.Fileopen(v_bfile, Dbms_Lob.File_Readonly);
    Dbms_Lob.Loadfromfile(v_blob, v_bfile, Dbms_Lob.Getlength(v_bfile));
    Dbms_Lob.Fileclose(v_bfile);
    COMMIT;
    END;
    When i m calling this procedure from Oracle itself its working fine
    But when calling this procedure from Java GUI with same parameter then i am getting error
    Error :java.sql.SQLException: ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the path specified.
    ORA-06512: at "WBCOMTAX.U_RFND_CND_TEST", line 18
    can anyone please help me out ?
    thanks in advance

    Generate the image from that html page.What would be the best way to generate an image of the
    browser rendered page? This is another issue I have
    struggled with.Ok, using a JEditorPane it is possible to render a HTML Page. Like all other Swing components it inherits the paintComponent method from JComponent. Simply generate an offscreen image and get its graphics context. Now you can pass this Graphics object the paintComponent and you get an image of your HTML page.
    Just make sure your offscreen image has the correct size. I guess this information is available from the JEditorPane.
    Use a PixelGrabber to get the image data and scan itfor the area the
    default.gif is placed.How would you use the PixelGrabber to find, or scan,
    for a 'default.gif' or multiple 'default.gif's? This
    too is an issue I have tried to wrap my mind around.This is the tricky part of it. Using the PixelGrabber you should get an array of pixel values. If you iterate thru this array it should be possible to find the pixel values of the default.gif (at least, if you choose a colr for your default.gif that does not appear in your HTML page incliding the other images).
    Now you have to replace those pixels with the pixels you have generated for your applets.
    J&ouml;rg

  • How do i set the transparency of an image retrieved from a database? (image was stored as blob)

    I had stored a png image into a database, when i retrieve it and display it the background is no longer transparent?
    I am loading the blob returned from the select statement by using the "loadBytes" method of the "UILoader" class.
    Thanx in advance
    gv1979

    If you want to stick with adjusting the scale you can do this two ways. Edit the value graph or edit the speed graph.
    The problem is that a camera move, a zoom or a dolly in, is not linear and scale is. This means the graphs are not a good representation of what you'll see visually. This makes them hard to use. At a constant rate for scale the appearance is that the increase in size slows down to closer you get to the final value. In other words, as you scale an object up at a constant rate, the visual appearance is a gradual slowing.
    A speed graph edited to look like this gives the appearance of a constant rate scale of the layer when you expect an acceleration at the end. There's just not enough granularity in the graph editor or enough control to predictably achieve the results you want.
    You'll have better luck editing the value graph to look something like this:
    While this looks extreme, you will get closer to achieving the results you want using the value graph. Once again, the amount of control and the resolution of the graph combined with the visual tomfoolery that scaling an object brings with it makes this a difficult way to achieve predictable results.
    You select the graph you'll edit by clicking on the second icon from the left.
    As I said before, you'll have much better luck getting the look you want if you make the layer 3D and move a camera toward it.

  • Setting source property of Trinidad image component using java script

    Hi,
    Can anyone tell me how to set the source property of Trinidad Image component using javascript.
    i tried document.getElementById("f1:img").source="/images/neha.gif".
    But its not working
    Thanks
    Neha

    Hi,
    Bases on the solution you suggested, i tried the img component to change the image on OnMouseOver and OnMouseOut. Its working fine in a normal browser but doesnt work in Mobile browser. May be because mobile browser supports only trinidad components. I then tried the option of backing bean
    " Or you can expose the component to a backing bean by setting its "binding" attribute. JDeveloper can create a backing bean from the wizard if you don't already have one. This will get you a CoreImage object in the bean, and you can change the source with its setSource method."
    . So i bound the omMouseOver event of the trinidad image component to a backing bean. Inside that i am changing the source and refreshing the component.
    <tr:commandLink id="cl1" action="goAlerts" styleClass="listingLink2">
    <tr:image source="/images/alert.gif" id="i4"
    binding="#{Images.alertOnMouseOver}"
    onmouseover="#{Images.alertOnMouseOver}"/>
    </tr:commandLink>
    Images.java
    public void setAlertOnMouseOver(CoreImage alertOnMouseOver) {
    this.alertOnMouseOver = alertOnMouseOver;
    alertOnMouseOver.setSource("/images/alertSelect.gif");
    RequestContext context = RequestContext.getCurrentInstance();
    context.addPartialTarget(alertOnMouseOver);
    System.out.print("Test");
    So what i found is setAlertOnMouseOver is getting called but not MouseOver event but when the page is loaded. Can you please tell me where i am going wrong?

  • Insert Image file from java to ms access database

    Are there any ways to insert image file or any files into microsoft access database and retrieve the file from the database. Guild will be helpful.Thank you.
    regards
    Singaravelan

    The right answer? Don't do it. You should not be putting images in any database.
    Better to write the image to the server's file system and add the path/link to the database instead.
    %

  • Image Manipulation from Java to browser

    Let me start by saying that I rarely ever post. I try only to do it after I scouring the internet and coming up empty-handed. I have a task that I think should be easy, but of course it is not.
    I have an Applet with a JPopupMenu which contains a "Print" JMenuItem. When the item is clicked I use JavaScript via LiveConnect to open a new browser window. My intention is to screen scrape the original page (parse the HTML) and replace any "<OBJECT>" tag with an image of what the Applet is currently showing.
    Why?
    Well, printing from browsers is buggy at best. I have to support many different OSs and many different versions of Netscape and IE. Some systems can print the HTML page with Applets just fine. Others can do OK and some just crash at the thought.
    How?
    The idea is that if I recreate a snapshot of the page in a new browser window with images replacing the Applets then the broweser can print that page just fine.
    Problem?
    I create a BufferedImage in my Applet. The problem comes when I want to tell JavaScript to write the image to the new HTML file. I have seen examples of how this would be done in theory. Has anyone done this?
    Background:
    I want to use NO server side technologies (i.e. Servlet/JSP) and I do not want to have to sign any files or request any special permissions.
    Is there another way to accomplish this goal???
    Even if you don't have a good answer, I would appreciate any comments on the matter.
    Eric

    Generate the image from that html page.What would be the best way to generate an image of the
    browser rendered page? This is another issue I have
    struggled with.Ok, using a JEditorPane it is possible to render a HTML Page. Like all other Swing components it inherits the paintComponent method from JComponent. Simply generate an offscreen image and get its graphics context. Now you can pass this Graphics object the paintComponent and you get an image of your HTML page.
    Just make sure your offscreen image has the correct size. I guess this information is available from the JEditorPane.
    Use a PixelGrabber to get the image data and scan itfor the area the
    default.gif is placed.How would you use the PixelGrabber to find, or scan,
    for a 'default.gif' or multiple 'default.gif's? This
    too is an issue I have tried to wrap my mind around.This is the tricky part of it. Using the PixelGrabber you should get an array of pixel values. If you iterate thru this array it should be possible to find the pixel values of the default.gif (at least, if you choose a colr for your default.gif that does not appear in your HTML page incliding the other images).
    Now you have to replace those pixels with the pixels you have generated for your applets.
    J&ouml;rg

  • Live view from java to flex - blinking image

    i am trying to simulate a live view using a canon Camera.
    I am interacting with the cam using the CanonSDK, i get an image every a short period in order to simulate a video frame by frame. This works fine, i am using java to do the backend and send the images trough BlazeDS to flex.
    The problem is not getting the image, the problem is that when i load a new image using something like:
    image.source=my_new_image;
    the new image is loaded but it produces a short white blink and it ruins the video...So i would like to know if there is a way to use channels of streaming or some way to pass the set of images in live view to flex and show them in the interface of flex from java.
    Thank you very much!
    Agustina

    I have this same problem in an SWF that I have an external image loading into. In another SWF, I don't have this problem. In one instance, the image is at the start of the movie clip and at the other it's on the last frame of the movie clip. My only suggestion would be to load as many of the images as you can off-screen and then put listeners on the images to know they are loaded before you show them. You can do that by:
    this.addElement(image);
    image.addEventListener(FlexEvent.UPDATE_COMPLETE, imageLoaded);
    private function imageLoaded(event:Event):void{
    //image is loaded...

  • [svn:bz-trunk] 20927: Didn't realize I also needed to modify SerialContext. java in addition to AbstractEndpoint. java to change the default max object nest level.

    Revision: 20927
    Revision: 20927
    Author:   [email protected]
    Date:     2011-03-20 11:48:41 -0700 (Sun, 20 Mar 2011)
    Log Message:
    Didn't realize I also needed to modify SerialContext.java in addition to AbstractEndpoint.java to change the default max object nest level. Change maxObjectNestLevel in SerializationContext.java to 512 to change the default max object nest level from 1024 to 512.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/SerializationContext.java

    As the server.xml is big enough, I took the minimum portion of it. Hope u can proceed with it.
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- New contexts -->
    <Context path="/xyz" docBase="pathTo_xyz" debug="0" crossContext="true"/>
    <Context path="/pqr" docBase="pathTo_pqr" debug="0" crossContext="true"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    You should also provide a WEB-INF folder under pqr or xyz folder.
    You should also provide a web.xml file under each WEB-INF folder.
    The minimal web.xml is
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    That's it. Try it out. Hope it is OK.
    Hafizur Rahman
    SCJP

  • Problems with image field and java

    Hi, i´m a beginner user of Adobe LiveCycle Designer, i create a form and i fill the text fields with a Java code, but when i try to dinamically assign a image on the image field of my form it doesn´t work, someone have any idea of whats happening or how can i manipulate the image field from Java code? thanks

    Session data will only last as long as the servlet container allows. In most cases (eg Tomcat) this defaults to about 30 minutes, but can be changed. Check that the session timeout configuration in your servlet container hasn't been set to "never timeout".
    Even if it had, I would have expected OutOfMemory errors rather than degrading performance. Although if the max heap size of the JVM has been set to a level higher than the RAM on the machine you could be getting excess page file usage.
    This probably wouldn't put CPU utilization at 99% though.. I suspect this is a code related problem.
    My best guess is one of two reasons:
    1. Somewhere in your code, or someone elses, there is a loop that never ends.
    2. There is a bug in the servlet container.
    I don't know which servlet container you are using, but I have used Tomcat extensively and never seen this behaviour.
    In terms of solving this problem, that's a tough one. I would try running the entire application within a profiling tool to see which threads are clogging up the processor. The Eclipse java IDE has a plugin called Eclipse Profiler which will allow you to track the utilization of code right down to the method level.
    If it were me, I'd be running the entire web application with a profiler like Eclipse Profiler and waiting for it to start clogging, then see who the guilty code is.

  • Can I set the min/max for multiple images at once?

    I have brought in my page design from photoshop and I don't want any of the images or text to resize when the web browser window is made smaller.
    Is there a way to do this without setting each min & max individually?

    I answered my own question in the end, I moved them to the parent background

  • Displaying a theme-based FOI layer as a whole image with javascript API v2

    Hi,
    I have looked the Oracle maps V2 tutorial developed in mvdemo.war application provided with Oracle Mapviewer v11.1.1.7. I have looked how to use theme-based FOI layers and I have not found how to set the "whole image" property for these layers. This feature is present in javascript API V1 and it greatly improves application performance. Our applications use this property very often.
    Is this property present in javascript API V2 but not documented?
    If it's not present, do you know if it will be?
    How can we show a layer with many geometry features and obtain the same performance we have now with the whole image property?
    Thanks,
    Arturo

    Hi,
    since this is a very crucial feature for us I'm very interested in that functionality as well. Is there a comparable functionality in the V2 API or will it be available in feature releases?
    Thanks
    Dominik

  • ERR "Could not load "image-loading" from icon theme"

    Just finished installing OpenBox on a virtualbox
    But cannot get nitrogen to set background.
    while running nitrogen from command line
    [utkarsh@myhost ~] $ nitrogen
    ERR: Could not load "image-loading" from icon theme, this indicates a problem with your Gtk/Gtkmm install

    I too had to the same problem. Couldn't find why we get that error. But could set the wallpaper using the command line.

Maybe you are looking for