Class LayerCanvas

    • Constructor Detail

      • LayerCanvas

        public LayerCanvas()
      • LayerCanvas

        public LayerCanvas​(Layer layer)
      • LayerCanvas

        public LayerCanvas​(Layer layer,
                           Viewport viewport)
    • Method Detail

      • getLayer

        public Layer getLayer()
      • setLayerFilter

        public void setLayerFilter​(LayerFilter layerFilter)
      • dispose

        public void dispose()
      • addOverlay

        public void addOverlay​(LayerCanvas.Overlay overlay)
        Adds an overlay to the canvas.
        Parameters:
        overlay - An overlay
      • removeOverlay

        public void removeOverlay​(LayerCanvas.Overlay overlay)
        Removes an overlay from the canvas.
        Parameters:
        overlay - An overlay
      • isNavControlShown

        public boolean isNavControlShown()
        None API. Don't use this method!
        Returns:
        true, if this canvas uses a NavControl.
      • isAntialiasing

        public boolean isAntialiasing()
        Checks if anti-aliased vector graphics are enabled.
        Returns:
        true, if enabled.
      • setAntialiasing

        public void setAntialiasing​(boolean antialiasing)
        Enables / disables anti-aliased vector graphics.
        Parameters:
        antialiasing - true, if enabled.
      • setNavControlShown

        public void setNavControlShown​(boolean navControlShown)
        None API. Don't use this method!
        Parameters:
        navControlShown - true, if this canvas uses a NavControl.
      • isInitiallyZoomingAll

        public boolean isInitiallyZoomingAll()
      • setInitiallyZoomingAll

        public void setInitiallyZoomingAll​(boolean initiallyZoomingAll)
      • zoomAll

        public void zoomAll()
      • computeMaxVisibleModelBounds

        public static Rectangle2D computeMaxVisibleModelBounds​(Rectangle2D modelBounds,
                                                               double orientation)
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int width,
                              int height)
        Overrides:
        setBounds in class Component