Class GeometryDrawingPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GeometryDrawingPanel extends JPanel
A JPanel that draws com.vividsolutions.jts.geom.Geometry objects.
Author:
RealLifeDeveloper
See Also:
  • Constructor Details

    • GeometryDrawingPanel

      public GeometryDrawingPanel()
  • Method Details

    • addGeometry

      public void addGeometry(org.locationtech.jts.geom.Geometry geometry)
      Adds a Geometry object to be drawn.
      Parameters:
      geometry - the Geometry object to add
    • clearGeometries

      public void clearGeometries()
      Removes all Geometry objects so that none are drawn.
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent