redraw

JFreeChart XY-chart that refreshes with new set of data? Example?

核能气质少年 提交于 2019-12-14 03:42:47
问题 I want to learn how to learn how to create some charts with jfreechart and googlefor some examples. but I couldn't find what I need. This here is good http://www.java2s.com/Code/Java/Chart/CatalogChart.htm but doesn't have a refreshing graph with new displayed values. I would like to redraw a chart every nth seconds because I update an external dile witha set of values I want to display here. So how do I tell jfreechart to refresh the drawn graph and display it onthe canvas? Thanks in advance

What could cause redraw issues on 64-bit vista but not in 32-bit in .NET WInForms?

泪湿孤枕 提交于 2019-12-12 08:37:54
问题 This happens when compiling for Any Cpu as well as compiling to x86. Sections of the GUI doesn't redraw unless it's resized, for instance if the main form is maximized some of the controls don't resize with it, and others have sections that don't redraw and displays the what was previously there. This works fine on 32-bit machines, both XP and Vista, but on 64-bit Vista (don't have x64 XP to test with) the redrawing just isn't working properly. Anyone have any ideas on where to start tracking

How to force a view to redraw immediately before the next line of code is executed

荒凉一梦 提交于 2019-12-12 07:25:11
问题 I have a LinearLayout that I would like to change the background color of when one of its child views (an ImageButton) is clicked. I am able to do this, but not immediately - the change doesn't occur on the screen until later (I think during an onResume call). I would like to find out how to force the layout to redraw after the background is set, before the next line of code executes. Here is the onClick method of my OnClickListener for the button: public void onClick(View v) { LinearLayout

How to update DetailView

為{幸葍}努か 提交于 2019-12-12 01:43:43
问题 I have a swift app based on Master-Detail template. Every row in MasterView table is based on custom cell received from a nib. Every cell includes UIlabel and UIbutton . The logic of the app is following. If user taps on a row DetailView shows some details depending on selected row. The button on the row does not call tableView(_, didSelectRowAtIndexPath) . If user taps on the button inside a row only an image belongs to DetailView should be changed (other elements on DetailView remain the

How do I draw a picturebox at run time?

放肆的年华 提交于 2019-12-12 01:23:52
问题 public void read_file(string fname) { filepath = fname; TextReader input = File.OpenText(filepath); line = input.ReadLine(); int[] ID = new int[6]; int[] x = new int[6]; int[] y = new int[6]; int xx, yy; int i = 0; image = AForge.Imaging.Image.FromFile(filename); smal1 = AForge.Imaging.Image.FromFile(smallimg1); smal2 = AForge.Imaging.Image.FromFile(smallimg2); smal3 = AForge.Imaging.Image.FromFile(smallimg3); smal4 = AForge.Imaging.Image.FromFile(smallimg4); smal5 = AForge.Imaging.Image

Uncaught TypeError: Object [object Object] has no method 'fnStandingRedraw'

我只是一个虾纸丫 提交于 2019-12-12 00:30:07
问题 I have a datatable with few rows, I want to add new row in table : var oTable = $('#StudentsTable').dataTable(); Table2.fnStandingRedraw(); when I init the dataTable I add : "bProcessing": true, "bServerSide": true, "bDestroy": true, "fnFilter": true, 'bLengthChange': true, 'bPaginate': true, 'bStandingRedraw': true, after ajax submit I want to redrow the table: submitHandler: function(form) { var $modal = $('#ajax-modal'); $modal.modal('loading'); $(form).ajaxSubmit({ dataType: 'json',

Force component to redraw it's focus

五迷三道 提交于 2019-12-11 13:57:40
问题 I'm having one more "How do I" question :) Suppose I have a component and want to change it's focus color at runtime. Here's an example for you (I've excluded any buttons and such to prevent component from losing it's focus, cause in that case it changes it's color perfectly): <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()"> <mx:Script><![CDATA[ private function init():void { //putting focus inside needed component focusTest.setFocus(); focusTest

How to update table view cell?

ぃ、小莉子 提交于 2019-12-11 12:44:54
问题 I have a UITableView with one big cell and many small cells. When I receive content from server I update my UITableView with function - (BOOL)performFetch:(NSError **)error ( NSFetchedResultsController ). I noticed that my big cell has dublicate after update and the second cell doesn't reload. When I scroll down and scroll to top table looks good. How can I solve my problem? 回答1: "performFetch" updates the datasource but the tableview itself is not updated. For updating the tableview use

Qt MainWindow is not updating

不打扰是莪最后的温柔 提交于 2019-12-11 08:14:35
问题 I am using Qt to generate a Window. Additionally I use libnfc to get access to a nfc reader, so far so good. In my self written nfc-class i generate a new thread, this thread is polling for new tags on the reader. If there is a new tag, the thread will start a signal event for the MainWindow. In the main window I have just a QWebView which will show different websites on different states (after start, new tag, tag removed), just realy basic stuff. My problem is now: that the main window (or

How to keep old tiles until each new tile is loaded when redrawing a layer in Leaflet?

早过忘川 提交于 2019-12-11 06:31:35
问题 I'm using a combined tilelayer, which I have to refresh (using .redraw() currently) each time a new layer has been added or an old has been removed. There are no technical problems with my implementation, but when a layer is toggled, there is a brief flicker as the old tiles are instantly removed, but the new ones obviously take a few moments to load in. Is there any way to keep each of these old tiles until its replacement has been loaded, resulting in a smoother transition? I have