Class CityLayer

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

public class CityLayer extends Layer
Layer that renders and edits city markers and labels.
  • Constructor Details

    • CityLayer

      public CityLayer(IContainer container, String name, Supplier<CityPointRenderer> rendererSupplier)
      Creates a city layer.
      Parameters:
      container - owning container
      name - layer name
      rendererSupplier - supplier of the current city renderer
  • Method Details

    • beforeDraw

      public void beforeDraw(Graphics2D g2, IContainer container)
      Renders the current city markers and labels.
      Overrides:
      beforeDraw in class Layer
      Parameters:
      g2 - the graphics context
      container - the container being rendered
    • edit

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