Class MapControlDrawer2D

java.lang.Object
org.gvsig.fmap.mapcontrol.impl.DefaultPrimitivesDrawer
org.gvsig.fmap.mapcontrol.impl.MapControlDrawer2D
All Implemented Interfaces:
MapControlDrawer, PrimitivesDrawer

public class MapControlDrawer2D extends DefaultPrimitivesDrawer implements MapControlDrawer
MapControlDrawer for a 2D view.
Author:
Jorge Piera
  • Field Details

    • geomManager

      protected org.gvsig.fmap.geom.GeometryManager geomManager
  • Constructor Details

    • MapControlDrawer2D

      public MapControlDrawer2D()
      Parameters:
      graphics -
      viewPort -
  • Method Details

    • draw

      public void draw(org.gvsig.fmap.geom.Geometry geometry, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Description copied from interface: MapControlDrawer
      It draws a Geometry on the map using a concrete symbol.
      Specified by:
      draw in interface MapControlDrawer
      Parameters:
      geometry - The Geometry to draw.
      symbol - The symbol used to draw the geometry.
    • draw

      public void draw(org.gvsig.fmap.geom.Geometry geometry, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol, org.gvsig.fmap.dal.feature.Feature feature)
      Description copied from interface: MapControlDrawer
      It draws a Geometry on the map using a concrete symbol.
      Specified by:
      draw in interface MapControlDrawer
      Parameters:
      geometry - The Geometry to draw.
      symbol - The symbol used to draw the geometry.
      feature - The feature used to draw the geometry.
    • drawHandlers

      public void drawHandlers(org.gvsig.fmap.geom.handler.Handler[] handlers, AffineTransform at, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Description copied from interface: MapControlDrawer
      It draws the Handler's that compose a geometry on the map.
      Specified by:
      drawHandlers in interface MapControlDrawer
      Parameters:
      handlers - An array of Handler's.
      at - A transformation that has to be applied to the Handler's.
      symbol - The symbol used to draw the handlers.
    • drawLine

      public void drawLine(Point2D firstPoint, Point2D endPoint, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Description copied from interface: MapControlDrawer
      It draws a line using a concrete symbol.
      Specified by:
      drawLine in interface MapControlDrawer
      Parameters:
      firstPoint - The first point of the line.
      endPoint - The end point of the line.
      symbol - The symbol used to draw the line.
    • drawImage

      public void drawImage(Image img, int x, int y)
      Description copied from interface: MapControlDrawer
      It draws an image on a map in a concrete position.
      Specified by:
      drawImage in interface MapControlDrawer
      Parameters:
      img - The image to draw.
      x - The X coordinate,
      y - The Y coordinate.
    • drawHandler

      public void drawHandler(org.gvsig.fmap.geom.handler.Handler handler, AffineTransform at)
      Description copied from interface: MapControlDrawer
      It draws a Handler on the map.
      Specified by:
      drawHandler in interface MapControlDrawer
      Parameters:
      handler - The Handler to draw.
      at - A transformation that has to be applied to the Handler.
    • drawImage

      public void drawImage(Image img, AffineTransform xform)
      Description copied from interface: MapControlDrawer
      It draws image, applying a transform from image space into user space before drawing.
      Specified by:
      drawImage in interface MapControlDrawer
      Parameters:
      img - The image to draw.
      xform - The transform to apply.
    • setViewPort

      public void setViewPort(org.gvsig.fmap.mapcontext.ViewPort viewPort)
      Description copied from interface: MapControlDrawer
      The ViewPort is used to transform the map coordinates in the screen coordinates.
      Specified by:
      setViewPort in interface MapControlDrawer
      Parameters:
      viewPort - The ViewPort
    • draw

      public void draw(org.gvsig.fmap.geom.Geometry geometry)
      Description copied from interface: MapControlDrawer
      It draws a Geometry on the map using the color specified using the PrimitivesDrawer.setColor(Color) method.
      Specified by:
      draw in interface MapControlDrawer
      Parameters:
      geometry - The Geometry to draw.
    • setComposite

      public void setComposite(Composite composite)
      Specified by:
      setComposite in interface MapControlDrawer
      Parameters:
      composite -
    • transform

      public void transform(AffineTransform at)
      Specified by:
      transform in interface MapControlDrawer
      Parameters:
      at -