There's two parts to this concept - snapping to a dynamic grid, and displaying a dynamic grid to show several magnitiudes of grid levels at once.
For the Dynamic Grid rendering code, see: http://jts-topo-suite.svn.sourceforge.net/viewvc/jts-topo-suite/trunk/jts/java/src/com/vividsolutions/jtstest/testbuilder/ui/render/GridRenderer.java?view=log For the snapping code, see the method public Point2D toModel(Point2D viewPt) { and the method snapScale() in http://jts-topo-suite.svn.sourceforge.net/viewvc/jts-topo-suite/trunk/jts/java/src/com/vividsolutions/jtstest/testbuilder/Viewport.java?view=log On 4/28/2011 7:37 AM, Sunburned Surveyor wrote: > Martin, > > Can you give me a pointer to the package(s) in JTS test builder that > we'd want to look at for code to port to OJ for the grid? > > Thanks, > > Landon > > On Sun, Mar 6, 2011 at 2:20 PM, Martin Davis<mtncl...@telus.net> wrote: >> Yes, in the JTS TestBuilder the finest grid is the one snapped to. It's >> visually obvious. >> >> But... the user doesn't "ask to snap" to a particular grid. The >> snapping is always to the grid displayed, which depends on zoom level. >> >> I've found this to be more flexible and easier to use than having a >> single defined snapping grid. But the two can coexist happily - just >> display the user-defined grid as well as the variable-size grid. And >> allow any or all to be enabled. >> >> On 3/6/2011 2:02 PM, Michaël Michaud wrote: >>>> I think I would snap only to the 1x grid not to deviate coordinate >>>> inputs when it is not required. >>> I would also differenciate the 1x grid from others as this is the one >>> the user asked to snap to. >>> >>> Michaël >>> >>> >>> ------------------------------------------------------------------------------ >>> What You Don't Know About Data Connectivity CAN Hurt You >>> This paper provides an overview of data connectivity, details >>> its effect on application quality, and explores various alternative >>> solutions. http://p.sf.net/sfu/progress-d2d >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >>> >>> ----- >>> No virus found in this message. >>> Checked by AVG - www.avg.com >>> Version: 10.0.1202 / Virus Database: 1435/3485 - Release Date: 03/06/11 >>> >>> >>> >> ------------------------------------------------------------------------------ >> What You Don't Know About Data Connectivity CAN Hurt You >> This paper provides an overview of data connectivity, details >> its effect on application quality, and explores various alternative >> solutions. http://p.sf.net/sfu/progress-d2d >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1209 / Virus Database: 1500/3601 - Release Date: 04/27/11 > > > ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel