[Logo] VUE Users Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Login] Login 
If this is your first visit to the new VUE forums, you can login using the same username and password you currently use on VUE's website. If you need an account, please create one through VUE's website. If you have problems, please contact us via the contact form on http://vue.tufts.edu
applet documentation to control appearance/capabilities  XML
Forum Index » Developers' Corner
Author Message
C T


Joined: 11/14/2009 09:05:34
Messages: 9
Offline

Hello,

I have installed the VUE applet without problems. Now I would like to control the appearance/capabilities of the GUI so that the applet may show a single default map and do so in "browse" mode only (no editing). What are the parameters that would set this behavior? What parameters/values should I set when launching the applet jar file (if that is the way to do this)?

Please help me with these questions.

Regards,

C. Trigoso
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

CT,

We do not currently have parameters to enable/disable certain features. If you'd like to build a list of what you'd want to see toggle-able(sp?) I can take a look.

-Mike
C T


Joined: 11/14/2009 09:05:34
Messages: 9
Offline

Mike,

Many thanks for your response. Essentially I need two things:

a) the Vue.jar should be launched with a parameter/value pair pointing to a default map to open (the map would be stored on the same server as the applet code).
b) the map would be shown in read-only mode, meaning that the user would not be able to modify the map or create another map.

Is that feasible?

Thank you in advance for your help with this matter

Regards,

Carlos Trigoso

C T


Joined: 11/14/2009 09:05:34
Messages: 9
Offline

Mike,

While re-reading the instructions, I found the following text:

"There are a number of VUE methods that can be dynamically called via javascript to provide richer interaction between VUE, and its container page, they include:

public static String getActiveMapPath();
public static String getActiveMapDisplayTitle();
public void ToggleAllVisible(); //toggles visiblity of Dock Windows
public static boolean isInited();
public void setSize(int width, int height);
public static void displayMap(String urlString);
public static void displayLocalMap(String fileString);"

This can be found here: https://wikis.uit.tufts.edu/confluence/display/VUEUserGuide/20+Web+-+VUE+Applet


I am guessing that these (and other) methods could be used to load a default read-only map? Do you think this makes sense?

Thank you again for your help.

Regards,

Carlos Trigoso
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

Carlos,

Unfortunately, we don't yet have a means to load a map "read-only", those methods could be used to load the map though. Making it fully-read only is possible in theory, and I can see the value, it's just not something we've undertaken leaning more instead on the image map and pdf exports. It'd be more then toggling menus as theirs iteractions with the map itself that would need to be disabled as well.

Mike
C T


Joined: 11/14/2009 09:05:34
Messages: 9
Offline

Mike,

Got it. No problem. I will experiment with loading the map first and see how far I can go. If you happen to find a solution or a trick to achieve a read-only mode please write back.


Quick question: the list of methods I copied is complete? (I believe VUE has no published API, right?)


Many thanks for your cooperation.

Regards,

Carlos Trigoso
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

The list of methods is complete. That said, if you dabble in programming at all you could download a tarball of VUE's source and pretty easily figure out how to get at other functionality or wrap and expose methods in the VueApplet class.

Mike
C T


Joined: 11/14/2009 09:05:34
Messages: 9
Offline

Thank you Mike.

I will do that. I think VUE is great and these changes will make it extremely useful to publish static information. Please give me the following information.

a) what is your development environment like (so that I may replicate it)?

b) I don't see an Eclipse project file in the sources... so I guess that you are using Ant and Java directly to build/compile, right?

c) Any tips to build the sources? (Any housekeeping with Ant or something like that?)


I promise I won't distract you with more questions! But I will inform you of the outcome.

Thank you again for your help.

Regards,

Carlos Trigoso
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline


I use eclipse, we don't include project files because not everyone who works on VUE does, it's just left up to the individual. You can just run "ant all" after downloading the source and that will build everything. You probably want to build once from ant before importing the project in eclipse, there's another thread here in Developers' corner for some tips for building VUE in eclipse.

Hope this helps.
-Mike
C T


Joined: 11/14/2009 09:05:34
Messages: 9
Offline

Mike,

Excellent. I checked the information in the other thread. Very good to have a good look at how this might work.

Will keep you informed of anything interesting.

Regards,

Carlos Trigoso
 
Forum Index » Developers' Corner
Go to:   
Powered by JForum 2.1.8 © JForum Team