Re: Floating ViewpointControl Question



During the course of a McV meeting we began wondering about making ViewpointControls dockable, so I decided to look around the IDV sources.

I saw the various calls along the lines of "vpc.setFloatable(false)" and that the various data members I could use to get access to ViewPointControl.getToolBar() are protected, so I can't think of any reason why I couldn't just write a plugin that grabs the current VPC and enables floating/docking.

Does this assumption seem reasonable? Is there any reason that they aren't already capable of doing this? I ask due to the images in sections 4.3.1 and 4.3.2 of the user's guide looking like floating is enabled.

Its not so easy as that but I fixed things. The problem is that toolbars, when they are floatable, need to be in a parent panel that uses a BorderLayout. Also, it looks like their floatable property needs to be set before things are added to them.

I have changed some of the toolbar handling code to fix the above problems and use a property:
idv.viewmanager.toolbars.floatable=false
To determine whether toolbars are floatable.

The IDV should look&feel the same because the default is false.


Offtopic: Thanks for coming up to Madison to help us along! [I'm the newly minted CS grad].

No problem. It was good to meet all of you.

-Jeff



  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvdevelopers archives: