Dynamic JFreechart - dynamic

I have a project where I read values from a file. I'd like to create a Dynamic chart where the user will have the ability to choose sections of the graphs and these sections will zoom - in in order to see the results. This functionality is similar to what the Excel does.
For example in the initial graph the user is able to see the graph of the whole year but I'd like to be able to zoom in and to see the graph of a specific day in the same panel,labelm frame.
Is it possible to be done via JFreechart???

In the Java Web Start demo, most examples have zooming enabled. To zoom, right-click to see the context menu, click and drag a selection or use the mouse wheel. TimeSeriesChartDemo1, found in org.jfree.chart.demo, is a good starting point.

Related

How to make text within nodes findable in cytoscape.js, dagre-layout

I have been trying to use the dagre-layout in cytoscape.js to create a graph, however I seem unable to find the text within nodes, which I am able to do in dagre-d3, (EDIT: Find as in CTRL + F).
It seems like even in demos such as: http://js.cytoscape.org/demos/labels/ this is not available.
Any ideas on how to make it possible?
When working with Cytoscape, you're not working with traditional DOM elements for the nodes and edges. Rather it draws on a canvas. So are you screwed?
Nope. You just need to program a bit. Add a text box to your page. Add an on change listener to it (or add a button to search only when the user clicks it). When the user types, you can run a search that reads through all of the nodes in the graph. For speed you might want to implement a binary search based on the node's text.
When you find text that matches (exact or partial), you can add a class to change the visual appearance using Cytoscape.js' addClass method. You decision of how to show the data is up to you.

How identify all controls in chart when it arranged superimpose?

I have developed,Coded UI support for my control(Chart).My Control contains collection of controls.These are arranged on the top of another.
For example,I have add chart area and series (series present top of the area).
When recording, click the chart area but coded ui doesn't identify that control it should give a message for "click series custom control".
So how can I identify each control?
What I understand is the control you are clicking is probably not exposed to UIA. You said you added UIA support for Chart, but did you add support for the type of your controls in your collection of controls?
Btw, a simple way of seeing if a control can be identified by UIA is using the Inspect tool. You can find the tool under your SDK installation (mine for example is under: C:\Program Files (x86)\Windows Kits\8.1\bin\x64), or search for msdn inspect.exe to download from MS.

Taking screenshot from Petrel child windows

Is it possible to take screenshot of Petrel's child windows (programmatically) from the plugin using Ocean 2014.1? At the moment, I can save BMP for Window3D and EMF for other derives of ToggleWindow and read them again from my plugin, but, this doesn't work for all Petrel's child windows. Also, I would prefer to get raster image (like what I get when I push on Camera button action in Clipboard action group, Home tab) and support other windows like Histogram Window, Plot Window, etc.
Unfortunately I don't think Ocean has a common API that does what you want.
As you found out, some windows have methods that allow you to capture an Image dump of the window, but it is far from being generic.

getting position (x,y) , width and lenght of Lotus Notes window in vb.net

I'm trying to get the starting position (x,y), the width and the lenght of a Lotus Notes application window from a vb.net application.
so far, I've tried using Process to do the trick but I can't figure out what to use after finding the good process in windows running process list. The only "usefull" thing which use or see the UI is the Process.MainWindowTitle. It does give the title of my Notes Window but As I said, I want coordonates, width and lenght.
I also tried using back-end classes: COM object lotus and domino
But nothing in those have necessary stuff to fill my needs.
I would also need the state of the window, something like
SHOWNORMAL
HIDE
RESTORE
SHOWMAXIMIZED
SHOWMINIMIZED
...
EDIT
I want to get the position of the window to modify the position of my application. Also I want to resise and modify the position of the Notes client. My goal here is to make both of my application and the Notes client fit in the screen.
Any help is very apreaciated!
I did something like that using the Windows API some years ago. Right now, I got no examples about that, but what I did it was this: get the handler from Lotus Notes window, and then, get the handler from an embedded view, and simulate a click event to set the focus in it.
You can use the WinAPI, but that's not necessarily the best approach. You should consider other alternatives as Karl-Henry Martinsson says.

Squeak System Browser Questions

I am using (a school modified version of) the "Squeak By Example" (SBE) image for a OOP/OOD class. However, my System Browser is missing a few features that appear in SBE. I assume there are some configuration options that can get them back for me, but I can't find them yet.
My questions are:
1) How do I get the buttons back? In the bottom pane there should be a bunch of button (browse, senders, implementors, versions, ..., source). My buttons are missing.
2) How do I get the small workspace area above the buttons to appear? There is supposed to be an area that I can type in, below the top panes, and above the buttons, but it doesn't appear.
Thanks in advance!
Robert
Edit - I did fool around in the Preferences Browser and tried a lot of settings. I managed to make the buttons come back and then later got that small (unknown name) workspace pane back, but I have no idea how. I have tried to systematically turn stuff off again to find out what setting(s) controlled what, but I was unable to determine what controlled either problem. So even though I have it working, I would like some squeak/smalltalk knowledgeable person to let me know how to control these as it might help me learn...
"In the bottom pane there should be a bunch of button (browse, senders, implementors, versions, ..., source). " -- switch on the optionalButtons preference in the preferences browser.
The "area that I can type in, below the top panes, and above the buttons, but it doesn't appear" sounds like the annotation pane - this gives you summary information about the method you're currently viewing, and it's controlled by the annotationPanes preference. Alternatively you may be referring to the Mercury Panel which is used for fast navigation to other classes and methods; this is (of course :-) controlled by the mercuryPanel preference.
If you've been messing around, you may also find that you now have an incorrect system browser selected. Squeak has a choice of browsers which can act as the System Browser. You can choose between them by clicking the menu button on the System Browser and selecting "Choose new default Browser". Open a new browser window to see what effect this has had.
You may also want to try a Pharo image which has everything configured the way you want by default.
Do you have access to the Preferences Browser? It should be in the main system menu. You can alter all sorts of things via this browser, including which buttons appear in teh system browser?