Package edu.cnu.mdi.mapping.layer
Class Etopo5Layer
java.lang.Object
edu.cnu.mdi.item.Layer
edu.cnu.mdi.mapping.layer.Etopo5Layer
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 Summary
ConstructorsConstructorDescriptionEtopo5Layer(IContainer container, String name, Supplier<Etopo5Renderer> rendererSupplier, Supplier<IMapProjection> projectionSupplier) Creates an ETOPO5 layer. -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeDraw(Graphics2D g2, IContainer container) Renders the ETOPO5 terrain using the current renderer and projection.voidOpens the ETOPO5 style editor.Methods inherited from class edu.cnu.mdi.item.Layer
add, addEnclosedItems, addItemChangeListener, addItemsAtPoint, addSelectedItems, afterDraw, anySelected, clearAllItems, contains, deleteItem, deleteSelectedItems, draw, equals, getAllItems, getContainer, getItemAtPoint, getItemsAtPoint, getName, getSelectedCount, getSelectedItems, hashCode, isEditable, isEmpty, isLocked, isVisible, notifyItemChangeListeners, remove, removeItemChangeListener, selectAllItems, selectAllItems, selectItem, sendBackward, sendForward, sendToBack, sendToFront, setDirty, setEditable, setLocked, setName, setVisible, size, toString
-
Constructor Details
-
Etopo5Layer
public Etopo5Layer(IContainer container, String name, Supplier<Etopo5Renderer> rendererSupplier, Supplier<IMapProjection> projectionSupplier) Creates an ETOPO5 layer.- Parameters:
container- owning containername- layer namerendererSupplier- supplier of the current ETOPO5 rendererprojectionSupplier- supplier of the current map projection
-
-
Method Details
-
beforeDraw
Renders the ETOPO5 terrain using the current renderer and projection.- Overrides:
beforeDrawin classLayer- Parameters:
g2- the graphics contextcontainer- the container being rendered
-
edit
Opens the ETOPO5 style editor.
-