Blocks :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
I am developing some tests to achieve de loading of geographic information from a shapefile using JavaFX 2.0. I read the shapefile data using the feature facilites provided by GeoTools API, and rendering these data using JavaFX Path class (with MoveTo and LineTo). I have also implemented a zoom operation associated to mousePressed event, that simply changes the scaleXProperty and scaleYPropety in the map. I have noticed that if the map is quite complex, the zoom operation is very slow. For example, with a map with 20000 lines the performance is very poor when making the zoom this way. The result is almos the same if I use Polylines to represent the map info. I have made some tests with the scaling operation and the thing is that the problems start when I use Path objects. For example, If I render a scene with 40000 rectangles (object Rectangle) the scaling works fine, but if a render the same scene using 40000 lines (in paths) the performance falls down dramatically. Is this normal?
|