public class MapControlDrawer2D extends DefaultPrimitivesDrawer implements MapControlDrawer
| Modifier and Type | Field and Description |
|---|---|
protected org.gvsig.fmap.geom.GeometryManager |
geomManager |
color, graphics, xorColor| Constructor and Description |
|---|
MapControlDrawer2D() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(org.gvsig.fmap.geom.Geometry geometry)
It draws a
Geometry on the map using the color
specified using the PrimitivesDrawer.setColor(Color) method. |
void |
draw(org.gvsig.fmap.geom.Geometry geometry,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
It draws a
Geometry on the map using a concrete
symbol. |
void |
draw(org.gvsig.fmap.geom.Geometry geometry,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol,
org.gvsig.fmap.dal.feature.Feature feature)
It draws a
Geometry on the map using a concrete
symbol. |
void |
drawHandler(org.gvsig.fmap.geom.handler.Handler handler,
java.awt.geom.AffineTransform at)
It draws a
Handler on the map. |
void |
drawHandlers(org.gvsig.fmap.geom.handler.Handler[] handlers,
java.awt.geom.AffineTransform at,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
It draws the
Handler's that compose a geometry
on the map. |
void |
drawImage(java.awt.Image img,
java.awt.geom.AffineTransform xform)
It draws image, applying a transform from image space
into user space before drawing.
|
void |
drawImage(java.awt.Image img,
int x,
int y)
It draws an image on a map in a concrete position.
|
void |
drawLine(java.awt.geom.Point2D firstPoint,
java.awt.geom.Point2D endPoint,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
It draws a line using a concrete symbol.
|
void |
setComposite(java.awt.Composite composite) |
void |
setViewPort(org.gvsig.fmap.mapcontext.ViewPort viewPort)
The
ViewPort is used to transform the map
coordinates in the screen coordinates. |
void |
transform(java.awt.geom.AffineTransform at) |
cleanCanvas, drawLine, drawOval, drawRect, fillRect, setColor, setGraphics, setRenderingHints, setStroke, startDrawing, stopDrawingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanCanvas, setRenderingHints, setStrokedrawLine, drawOval, drawRect, fillRect, setColor, setGraphics, startDrawing, stopDrawingpublic void draw(org.gvsig.fmap.geom.Geometry geometry)
MapControlDrawerGeometry on the map using the color
specified using the PrimitivesDrawer.setColor(Color) method.draw in interface MapControlDrawergeometry - The Geometry to draw.public void draw(org.gvsig.fmap.geom.Geometry geometry,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
MapControlDrawerGeometry on the map using a concrete
symbol.draw in interface MapControlDrawergeometry - The Geometry to draw.symbol - The symbol used to draw the geometry.public void draw(org.gvsig.fmap.geom.Geometry geometry,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol,
org.gvsig.fmap.dal.feature.Feature feature)
MapControlDrawerGeometry on the map using a concrete
symbol.draw in interface MapControlDrawergeometry - The Geometry to draw.symbol - The symbol used to draw the geometry.feature - The feature used to draw the geometry.public void drawHandler(org.gvsig.fmap.geom.handler.Handler handler,
java.awt.geom.AffineTransform at)
MapControlDrawerHandler on the map.drawHandler in interface MapControlDrawerhandler - The Handler to draw.at - A transformation that has to be applied to the
Handler.public void drawHandlers(org.gvsig.fmap.geom.handler.Handler[] handlers,
java.awt.geom.AffineTransform at,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
MapControlDrawerHandler's that compose a geometry
on the map.drawHandlers in interface MapControlDrawerhandlers - 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.public void drawImage(java.awt.Image img,
java.awt.geom.AffineTransform xform)
MapControlDrawerdrawImage in interface MapControlDrawerimg - The image to draw.xform - The transform to apply.public void drawImage(java.awt.Image img,
int x,
int y)
MapControlDrawerdrawImage in interface MapControlDrawerimg - The image to draw.x - The X coordinate,y - The Y coordinate.public void drawLine(java.awt.geom.Point2D firstPoint,
java.awt.geom.Point2D endPoint,
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
MapControlDrawerdrawLine in interface MapControlDrawerfirstPoint - The first point of the line.endPoint - The end point of the line.symbol - The symbol used to draw the line.public void setComposite(java.awt.Composite composite)
setComposite in interface MapControlDrawerpublic void setViewPort(org.gvsig.fmap.mapcontext.ViewPort viewPort)
MapControlDrawerViewPort is used to transform the map
coordinates in the screen coordinates.setViewPort in interface MapControlDrawerviewPort - The ViewPortpublic void transform(java.awt.geom.AffineTransform at)
transform in interface MapControlDrawerCopyright © 2016 gvSIG Association. All Rights Reserved.