Class PGISCanvas

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.piccolo2d.PCanvas
repast.simphony.gis.display.PGISCanvas
All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, org.geotools.map.MapBoundsListener, org.geotools.map.MapLayerListListener, org.piccolo2d.PComponent

public class PGISCanvas extends org.piccolo2d.PCanvas implements org.geotools.map.MapLayerListListener, PropertyChangeListener, org.geotools.map.MapBoundsListener
Deprecated.
2D piccolo based code is being removed
This will show a MapContext and adds support for various tools.
Author:
Howe, Eric Tatara
See Also:
  • Field Details

    • CANVAS_WIDTH

      protected static final int CANVAS_WIDTH
      Deprecated.
      See Also:
    • CANVAS_HEIGHT

      protected static final int CANVAS_HEIGHT
      Deprecated.
      See Also:
    • msg

      protected simphony.util.messages.MessageCenter msg
      Deprecated.
    • currentListener

      protected org.piccolo2d.event.PInputEventListener currentListener
      Deprecated.
    • toolLayer

      protected org.piccolo2d.PLayer toolLayer
      Deprecated.
    • context

      protected org.geotools.map.MapContent context
      Deprecated.
    • rect

      protected Rectangle2D rect
      Deprecated.
    • layerNames

      protected Map<String,PGisLayer> layerNames
      Deprecated.
    • layers

      protected Map<org.geotools.map.Layer,PGisLayer> layers
      Deprecated.
    • scaleDenominator

      protected double scaleDenominator
      Deprecated.
    • ellipse

      protected org.geotools.referencing.datum.DefaultEllipsoid ellipse
      Deprecated.
    • layerListening

      protected org.piccolo2d.PLayer layerListening
      Deprecated.
    • mapLayer

      protected org.piccolo2d.PLayer mapLayer
      Deprecated.
    • mediator

      protected GisDisplayMediator mediator
      Deprecated.
  • Constructor Details

    • PGISCanvas

      public PGISCanvas(org.geotools.map.MapContent context)
      Deprecated.
      Create and new Canvas for the given context.
      Parameters:
      context - The context to be displayed
  • Method Details

    • getCRS

      public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
      Deprecated.
    • zoomToPreviousExtent

      public void zoomToPreviousExtent()
      Deprecated.
    • getScaleDenominator

      public double getScaleDenominator()
      Deprecated.
    • zoomToAreaOfInterest

      public void zoomToAreaOfInterest()
      Deprecated.
      Zoom the map to the area of interest specified in the MapContext.
    • setAreaOfInterest

      public void setAreaOfInterest(org.geotools.geometry.jts.ReferencedEnvelope aoe)
      Deprecated.
    • setEventHandler

      public void setEventHandler(org.piccolo2d.event.PInputEventListener listener)
      Deprecated.
      Set the tool which the map is listening to.
      Parameters:
      listener - the new tool to listen to.
    • addLayerEventHandler

      public void addLayerEventHandler(String layerName, org.piccolo2d.event.PInputEventListener listener)
      Deprecated.
    • getCurrentEventHandler

      public org.piccolo2d.event.PInputEventListener getCurrentEventHandler()
      Deprecated.
    • getToolLayer

      public org.piccolo2d.PLayer getToolLayer()
      Deprecated.
      Gets the layer on which tools should draw.
      Returns:
      the layer on which tools should draw.
    • getMapLayer

      public org.piccolo2d.PLayer getMapLayer()
      Deprecated.
      Gets the layer that contains the individual map layers.
      Returns:
      the layer that contains the individual map layers.
    • layerAdded

      public void layerAdded(org.geotools.map.MapLayerListEvent event)
      Deprecated.
      Specified by:
      layerAdded in interface org.geotools.map.MapLayerListListener
    • layerChanged

      public void layerChanged(org.geotools.map.MapLayerListEvent event)
      Deprecated.
      Specified by:
      layerChanged in interface org.geotools.map.MapLayerListListener
    • layerMoved

      public void layerMoved(org.geotools.map.MapLayerListEvent event)
      Deprecated.
      Specified by:
      layerMoved in interface org.geotools.map.MapLayerListListener
    • layerRemoved

      public void layerRemoved(org.geotools.map.MapLayerListEvent event)
      Deprecated.
      Specified by:
      layerRemoved in interface org.geotools.map.MapLayerListListener
    • repaint

      public void repaint()
      Deprecated.
      Overrides:
      repaint in class Component
    • propertyChange

      public void propertyChange(PropertyChangeEvent arg0)
      Deprecated.
      Specified by:
      propertyChange in interface PropertyChangeListener
    • mapBoundsChanged

      public void mapBoundsChanged(org.geotools.map.MapBoundsEvent event)
      Deprecated.
      Specified by:
      mapBoundsChanged in interface org.geotools.map.MapBoundsListener
    • layerPreDispose

      public void layerPreDispose(org.geotools.map.MapLayerListEvent event)
      Deprecated.
      Specified by:
      layerPreDispose in interface org.geotools.map.MapLayerListListener