Class LayerViewPanel

    • Method Detail

      • components

        public static List components​(org.locationtech.jts.geom.Geometry g)
      • intersects

        public static boolean intersects​(org.locationtech.jts.geom.Geometry a,
                                         org.locationtech.jts.geom.Geometry b)
        Workaround for the fact that GeometryCollection#intersects is not currently implemented.
      • visibleLayerToFeaturesInFenceMap

        public Map visibleLayerToFeaturesInFenceMap()
        The Fence layer will be excluded.
      • visibleLayerToFeaturesInFenceMap

        public Map visibleLayerToFeaturesInFenceMap​(org.locationtech.jts.geom.Geometry fence)
        The Fence layer will be included.
      • popupMenu

        public static JPopupMenu popupMenu()
      • setCurrentCursorTool

        public void setCurrentCursorTool​(CursorTool currentCursorTool)
      • setViewportInitialized

        public void setViewportInitialized​(boolean viewportInitialized)
        When a layer is added, if this flag is false, the viewport will be zoomed to the extent of the layer.
      • getCurrentCursorTool

        public CursorTool getCurrentCursorTool()
      • getLastClickedPoint

        public Point getLastClickedPoint()
        Note: the popup menu is shown only if the user right-clicks the panel. Thus, popup-menu event handlers don't need to check whether the return value is null.
      • getViewport

        public Viewport getViewport()
      • getFence

        public org.locationtech.jts.geom.Geometry getFence()
        Returns:
        the fence in model-coordinates, or null if there is no fence
      • featuresChanged

        public void featuresChanged​(FeatureEvent e)
        Description copied from interface: LayerListener
        Fired when a feature is added to or removed from a layer, or when a feature is edited (using an EditTransaction). Warning: this event is fired often.
        Specified by:
        featuresChanged in interface LayerListener
      • createBlankPanelImage

        public Image createBlankPanelImage()
        Returns an image with the dimensions of this panel. Note that the image has an alpha component, and thus is not suitable for creating JPEGs -- they will look pinkish.
      • superRepaint

        public void superRepaint()
      • format

        public String format​(double d)
        Returns:
        d rounded off to the distance represented by one pixel
      • format

        protected String format​(double d,
                                double pixelWidthInModelUnits)
      • fireSelectionChanged

        public void fireSelectionChanged()
      • dispose

        public void dispose()
      • flash

        public void flash​(Shape shape,
                          Color color,
                          Stroke stroke,
                          int millisecondDelay)
        Parameters:
        millisecondDelay - the GUI will be unresponsive for this length of time, so keep it short!
      • getBlackboard

        public Blackboard getBlackboard()