Class DefaultRendering

    • Constructor Detail

      • DefaultRendering

        public DefaultRendering​(Viewport viewport)
    • Method Detail

      • getGraphics

        public Graphics2D getGraphics()
        Specified by:
        getGraphics in interface Rendering
        Returns:
        The graphics context associated with this rendering.
      • setGraphics

        public void setGraphics​(Graphics2D graphics)
      • getViewport

        public Viewport getViewport()
        Specified by:
        getViewport in interface Rendering
        Returns:
        The porthole through which the model is viewed.
      • setViewport

        public void setViewport​(Viewport viewport)