| java.lang.Object com.vividsolutions.jump.workbench.ui.renderer.java2D.Java2DConverter
All known Subclasses: com.vividsolutions.jump.workbench.ui.Viewport, com.vividsolutions.jump.workbench.ui.zoom.ZoomBar,
Java2DConverter | public class Java2DConverter (Code) | | Converts JTS Geometry objects into Java 2D Shape objects
|
Inner Class :class LineStringPath extends LineString implements PathIterator | |
Inner Class :public static interface PointConverter | |
Method Summary | |
public Shape | toShape(Geometry geometry) If you pass in a general GeometryCollection, note that a Shape cannot
preserve information about which elements are 1D and which are 2D.
For example, if you pass in a GeometryCollection containing a ring and a
disk, you cannot render them as such: if you use Graphics.fill, you'll get
two disks, and if you use Graphics.draw, you'll get two rings. | public Coordinate[] | toViewCoordinates(Coordinate[] modelCoordinates) |
Java2DConverter | public Java2DConverter(PointConverter pointConverter)(Code) | | |
Java2DConverter | public Java2DConverter(PointConverter pointConverter, double resolution)(Code) | | |
toShape | public Shape toShape(Geometry geometry) throws NoninvertibleTransformException(Code) | | If you pass in a general GeometryCollection, note that a Shape cannot
preserve information about which elements are 1D and which are 2D.
For example, if you pass in a GeometryCollection containing a ring and a
disk, you cannot render them as such: if you use Graphics.fill, you'll get
two disks, and if you use Graphics.draw, you'll get two rings. Solution:
create Shapes for each element.
|
|
|