I have a big chart created using jfreechart. This chart is too large for the screen, so I would like to put it in a scrollpane. However, when using the scrollbar, the full graph is redrawn every time, which makes it extremely slow. Is there a solution for this?
thanks,
Bart
Buffer it yourself. Display JFreeChart in a panel that is not in the visible panel, and use it as your buffer for the panel located in scrollpane. Then you can manage the redraw events and how often you synchronize the two panels.
, ChartPanel , . , .
public ChartPanel(JFreeChart chart, boolean useBuffer);
JFreeChart , , , JScrollPane .
JScrollPane
, datapoints . "kludges", ; .
SeriesDataset
SeriesChangeEvent
, , , , - . ChartPanel jscrollpanes . .
, - , .
Source: https://habr.com/ru/post/1722788/More articles:unit test method that creates the object - oopmySQL - Should I denormalize? - databaseL2S (LINQ to SQL) or EF (Entity Framework) - comparisonThe most optimized way to store crawler states? - optimizationmySQL - apply row level lock with mysqli - phpUsing Unreal 3 Engine in a .NET Application - .nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1722790/what-are-the-possible-ways-to-prevent-form-from-double-posting-in-aspnet-mvc&usg=ALkJrhiYx-fm5BlpUUkrcITOFr8HGeOpYQHow to send backspace using sendmessage (C #) in cmd.exe - c #Access to object members and atomicity - c #How to choose DBIx :: Class? - perlAll Articles