Class Etopo5Layer

java.lang.Object
edu.cnu.mdi.item.Layer
edu.cnu.mdi.mapping.layer.Etopo5Layer

public class Etopo5Layer extends Layer
Layer that renders ETOPO5 terrain and bathymetry.

Both the renderer and projection are obtained through suppliers because the owning map view may install the renderer after the layer is constructed and may replace the active projection later.

  • Constructor Details

    • Etopo5Layer

      public Etopo5Layer(IContainer container, String name, Supplier<Etopo5Renderer> rendererSupplier, Supplier<IMapProjection> projectionSupplier)
      Creates an ETOPO5 layer.
      Parameters:
      container - owning container
      name - layer name
      rendererSupplier - supplier of the current ETOPO5 renderer
      projectionSupplier - supplier of the current map projection
  • Method Details

    • beforeDraw

      public void beforeDraw(Graphics2D g2, IContainer container)
      Renders the ETOPO5 terrain using the current renderer and projection.
      Overrides:
      beforeDraw in class Layer
      Parameters:
      g2 - the graphics context
      container - the container being rendered
    • edit

      public void edit(Component parentComponent)
      Opens the ETOPO5 style editor.
      Overrides:
      edit in class Layer
      Parameters:
      parentComponent - the parent component for any dialogs; may be null