AndroidPlot Remove cursor from plot - cursor

thanks to this post :
Get the correct position of a point in AndroidPlot
i manage to display a cursor near a point of my plot.
Now i want to remove this cursor from the plot.
First question : How can i do that ?
Second question : I found a trick not to see it by displaying it in a non visible area of the plot (-1,-1) But i can't update this in a long press event click on the ploy. Although i manage to do this in a button click. Is there an explanation?
Thank you

Regarding your first question, in version 0.9.6 and later, you can disable the cursor(s) by setting the corresponding paint element to null:
plot.getGraphWidget().setDomainCursorPaint(null);
plot.getGraphWidget().setRangeCursorPaint(null);
As far as your second question goes, it's hard to say without seeing some code. You should create a separate question for that though.

Related

Xlib - Two issues with call to XMoveResizeWindow

I am new to Xlib (in C) and am having two issues when calling the XMoveResizeWindow function.
ex.
XMoveResizeWindow(display, window_id, move_x, move_y, resize_x, resize_y);
1) After the call, the window I move will reposition itself correctly, however, if I select the window with the pointer after the move, it will instantly revert back to the position it held prior to the move. I assume I have to somehow 'update' the X11 server after it's moved with the windows new position?
2) Secondly, in regards to the resize of the window. My window is essentially being truncated by the x and y values entered, instead of resized. In other words, instead of the entire window shrinking down, the right and bottom sides of the window are cut off from view. Is there a way to instead resize the entire window?
--I am sorry I am unable to submit my complete code, however, I believe my issues are due solely to my lack of understanding of Xlib and this particular function's operations. As such, I am not neccessarily looking for specific code as a solution, merely an explination or suggestion on how I should go about implementing a solution.
Thank you.
I believe there is something wrong with your code, since that code is not available i'll point to an example.
Examples are given at readme itself.

Waypoints position and rotation are empty from the scene api

io3d.scene.getAframeElements api returns the waypoints
<a-entity tour-waypoint="TOP VIEW" io3d-uuid="2c0c947b-5135-456d-9626-8c80778b9dd5" position="" rotation="" scale="" visible=""></a-entity>
The position and rotation are empty. How can I get the pose data for each waypoints ?
Took us a while to figure this one out, sorry for the delay.
First things first, it worked with A-Frame just fine as this glitch demonstrates. The fact that the position and rotation don't show up in source code doesn't mean they don't work.
The reason for that is that A-Frame turns the attribute values into objects and objects aren't displayed in HTML sourcecode as (per standard) attribute values have to be strings. The fact that they aren't is not caused by us but by A-Frame and is, in fact, not a problem normally - it's the opposite as it is an optimisation.
Now you might want to show the information as part of an HTML dump (e.g. by displaying innerHTML in a textarea, then this is a problem.
That problem can be overcome by calling flushToDOM on the elements, like in this glitch. This affects all dynamically created A-Frame elements, not only 3d.io elements, by the way - you see this with the box element.
I hope this answers your question?

Draw a vertical line on Left Click MouseDownEvent

I'm using the Oxyplot library to plot some graphs based on real-time data. I know there is a feature called Tracker that shows some tooltip-like information (coordinates, for example) based on the Position where the user left-clicks. The information is only shown while the left-button is pressed.
I'm currently testing this functionality on a line graph, not sure if it works for other types.
What I wanted to do is to keep this info on screen and making it disapper only if the user tries to set a new one, clicking somewhere else on the graph and replacing the older information. Adding a vertical bar where the user clicked would be nice too.
I checked the Oxyplot documentation and I know that it is possible to customize this 'Tracker', but I failed to find a solution for my situation.
EDIT:
I've found this example, it seems helpful, but I'm struggling to extract the usefulness of it. Please help!
UPDATE:
Let me go a little further on the explanation of what I'm trying to achieve. I have many graphs, each of them placed on a separated panel (or tab). If I left-click in a position of a graph, I want to show the Tracker info on that specific position on each and every graph while the user doesn't click on another position (setting a new Tracker and removing the old one). In other words, it is allowed one Tracker at a time, and this is set on every existing graph at the same X-position.
UPDATE 2:
Alright, so after giving it a thought, I decided not to maintain the Tracker when left-clicking. Instead, I just want to draw a vertical line on every graph on the position of the click. Just one line at a time is permitted, it can be treated as a "temporary marker". I believe this is more doable than the other approach and will suffice my needs.
You can unbind the left button and replace it by just hovering the mouse, almost always showing the tracker:
public PlotController customController { get; private set; }
customController = new PlotController();
customController.UnbindMouseDown(OxyMouseButton.Left);
customController.BindMouseEnter(PlotCommands.HoverSnapTrack);
Xaml:
<oxy:PlotView Controller="{Binding customController}"/>
EDIT >>>>>>
TrackerManipulator code: https://github.com/ylatuya/oxyplot/blob/master/Source/OxyPlot/Manipulators/TrackerManipulator.cs
I think you should create a custom TrackerManipulator, and override the Complete method to not to do the "this.PlotControl.HideTracker();" line.

ExtJS 4.x: How to disable the red mark BUT only in runtime

I can't find solution. I want to leave "red corner" when user update grid cell (and to remove red corner now is quite easy - in afretedit call data.record.commit()) but I don't know how to do it in runtime. I meke some loops to calculate something (sum of raw e.g.) and this value I want to write in one, special cell but WITHOUT RED MARK.
Be so kind to prompt me how.
Sorry guys, I found proper soolution. Good way is to read manual, I just commited store of this grid after described above loops:
store.commitChanges()

Formatting the layout of data in a cell, Crystal Reports

I am trying to format the output of my data in crystal reports 2008. Currently, you can see in the picture that the data is in the top left of the cell. I am trying to have the data appear on the bottom left hand spacing of the cell, instead of top left hand side, for gldesc. Is there a way to do this?
Thank you.
Create a Formula with that field, by calling that data field in that formula. Then in the section place a text object and place the forumla where you wish in that text object. Hope this helps.
Ok, after examining the problem further, I realized that I was making this too hard, and all you have to do is drag and drop, to place the formulas/items where you would like them to be.
I was going to delete this question but I decided to answer it and share how I fixed it incase someone else has this question along the way.

Resources