Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20217
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Jim Gibson <jimsgibson@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JAVAFX Rendering |
| Date | Mon, 10 Dec 2012 09:49:51 -0800 |
| Lines | 38 |
| Message-ID | <101220120949515759%jimsgibson@gmail.com> (permalink) |
| References | <7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net sLunm2YNvaYoZoExozyplAywvoxoyGmVtge2bYx74tx0hot7UGTUSJPFDwIl/uF3ce |
| X-Orig-Path | jimsgibson |
| Cancel-Lock | sha1:exFm83vuPtrTQJvfvTnuWcYyzk8= |
| User-Agent | Thoth/1.9.0 (Mac OS X) |
| Xref | csiph.com comp.lang.java.programmer:20217 |
Show key headers only | View raw
In article <7cd27ea6-eea8-4b71-bfe5-9a1898b55c73@googlegroups.com>, nataraja gadikota <nataraja.3.833@gmail.com> wrote: > Hi , > I'm looking for a Java based solution for my canvas problem > TCL/TK is not able to handle 3million rectangles on a canvas ! > > https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/Dxh4KyOOojY > > " > Today I had to visualize a huge Data Structure with 146k nodes > and each node is a set of polys/rectangles >20 > > I've drawn everything on a Canvas , Appximately 3 million objects were > created > All my operations Zoom , Scrolling , Moving Objects on this Canvas have > become very SLOW > > I've tested the code with 100 nodes , everything is working fine at that > level > When I increase the DS , I'm looking at these issues . > > Any suggestions previous experiences on how to improve the speed ? Sounds like you should consider clipping (<http://en.wikipedia.org/wiki/Clipping_(computer_graphics)>) when you have zoomed in and showing low-resolution versions of groups of nodes (if your data consists of node groups in a tree-like structure) when you are zoomed out (I don't remember the word for this; "greeking" is a term applied to showing fuzzy blobs for text when the characters are too small to see clearly). In other words: don't draw all 3 million nodes, just the ones that would be visible on the screen. If a group of nodes is too small to be seen in detail, substitute a low-resolution graphic for the group. -- Jim Gibson
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2012-12-10 03:43 -0800
Re: JAVAFX Rendering Arne Vajhøj <arne@vajhoej.dk> - 2012-12-10 12:07 -0500
Re: JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2012-12-11 09:14 -0800
Re: JAVAFX Rendering Arne Vajhøj <arne@vajhoej.dk> - 2012-12-11 15:04 -0500
Re: JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2013-01-05 22:56 -0800
Re: JAVAFX Rendering Jim Gibson <jimsgibson@gmail.com> - 2012-12-10 09:49 -0800
Re: JAVAFX Rendering nataraja gadikota <nataraja.3.833@gmail.com> - 2012-12-11 09:15 -0800
csiph-web