Package org.gvsig.fmap.mapcontrol.impl
Class MapControlDrawer2D
java.lang.Object
org.gvsig.fmap.mapcontrol.impl.DefaultPrimitivesDrawer
org.gvsig.fmap.mapcontrol.impl.MapControlDrawer2D
- All Implemented Interfaces:
MapControlDrawer,PrimitivesDrawer
MapControlDrawer for a 2D view.
- Author:
- Jorge Piera
-
Field Summary
FieldsFields inherited from class org.gvsig.fmap.mapcontrol.impl.DefaultPrimitivesDrawer
color, graphics, xorColor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(org.gvsig.fmap.geom.Geometry geometry) It draws aGeometryon the map using the color specified using thePrimitivesDrawer.setColor(Color)method.voiddraw(org.gvsig.fmap.geom.Geometry geometry, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) It draws aGeometryon the map using a concrete symbol.voiddraw(org.gvsig.fmap.geom.Geometry geometry, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol, org.gvsig.fmap.dal.feature.Feature feature) It draws aGeometryon the map using a concrete symbol.voiddrawHandler(org.gvsig.fmap.geom.handler.Handler handler, AffineTransform at) It draws aHandleron the map.voiddrawHandlers(org.gvsig.fmap.geom.handler.Handler[] handlers, AffineTransform at, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) It draws theHandler's that compose a geometry on the map.voidIt draws an image on a map in a concrete position.voiddrawImage(Image img, AffineTransform xform) It draws image, applying a transform from image space into user space before drawing.voiddrawLine(Point2D firstPoint, Point2D endPoint, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) It draws a line using a concrete symbol.voidsetComposite(Composite composite) voidsetViewPort(org.gvsig.fmap.mapcontext.ViewPort viewPort) TheViewPortis used to transform the map coordinates in the screen coordinates.voidMethods inherited from class org.gvsig.fmap.mapcontrol.impl.DefaultPrimitivesDrawer
cleanCanvas, drawLine, drawOval, drawRect, fillRect, setColor, setGraphics, setRenderingHints, setStroke, startDrawing, stopDrawingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontrol.MapControlDrawer
cleanCanvas, setRenderingHints, setStrokeMethods inherited from interface org.gvsig.fmap.mapcontrol.PrimitivesDrawer
drawLine, drawOval, drawRect, fillRect, setColor, setGraphics, startDrawing, stopDrawing
-
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:MapControlDrawerIt draws aGeometryon the map using a concrete symbol.- Specified by:
drawin interfaceMapControlDrawer- Parameters:
geometry- TheGeometryto 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:MapControlDrawerIt draws aGeometryon the map using a concrete symbol.- Specified by:
drawin interfaceMapControlDrawer- Parameters:
geometry- TheGeometryto 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:MapControlDrawerIt draws theHandler's that compose a geometry on the map.- Specified by:
drawHandlersin interfaceMapControlDrawer- Parameters:
handlers- An array ofHandler's.at- A transformation that has to be applied to theHandler'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:MapControlDrawerIt draws a line using a concrete symbol.- Specified by:
drawLinein interfaceMapControlDrawer- Parameters:
firstPoint- The first point of the line.endPoint- The end point of the line.symbol- The symbol used to draw the line.
-
drawImage
Description copied from interface:MapControlDrawerIt draws an image on a map in a concrete position.- Specified by:
drawImagein interfaceMapControlDrawer- Parameters:
img- The image to draw.x- The X coordinate,y- The Y coordinate.
-
drawHandler
Description copied from interface:MapControlDrawerIt draws aHandleron the map.- Specified by:
drawHandlerin interfaceMapControlDrawer- Parameters:
handler- TheHandlerto draw.at- A transformation that has to be applied to theHandler.
-
drawImage
Description copied from interface:MapControlDrawerIt draws image, applying a transform from image space into user space before drawing.- Specified by:
drawImagein interfaceMapControlDrawer- 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:MapControlDrawerTheViewPortis used to transform the map coordinates in the screen coordinates.- Specified by:
setViewPortin interfaceMapControlDrawer- Parameters:
viewPort- TheViewPort
-
draw
public void draw(org.gvsig.fmap.geom.Geometry geometry) Description copied from interface:MapControlDrawerIt draws aGeometryon the map using the color specified using thePrimitivesDrawer.setColor(Color)method.- Specified by:
drawin interfaceMapControlDrawer- Parameters:
geometry- TheGeometryto draw.
-
setComposite
- Specified by:
setCompositein interfaceMapControlDrawer- Parameters:
composite-
-
transform
- Specified by:
transformin interfaceMapControlDrawer- Parameters:
at-
-