Interface ShapeDrawingLayer

  • All Known Implementing Classes:
    MapNavLayer

    public interface ShapeDrawingLayer
    An interface for layers that use a tool to create a shape and draw it For example, rectangle selection, rectangle zoom box and rectangular polygon creation layers can use the same RectangleTool if they implement this interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.geom.Point2D getSnapPoint​(java.awt.geom.Point2D point)
      Gets the shape snap point closest to the given point
      void setShape​(java.awt.Shape shape)
      Sets the shape to be drawn
      void shapeCompleted​(java.awt.event.MouseEvent e)
      To be called when the shape is completely drawn
    • Method Detail

      • setShape

        void setShape​(java.awt.Shape shape)
        Sets the shape to be drawn
        Parameters:
        shape -
      • shapeCompleted

        void shapeCompleted​(java.awt.event.MouseEvent e)
        To be called when the shape is completely drawn
        Parameters:
        e -
      • getSnapPoint

        java.awt.geom.Point2D getSnapPoint​(java.awt.geom.Point2D point)
        Gets the shape snap point closest to the given point
        Parameters:
        point -
        Returns: