|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.impl.DefaultPrimitivesDrawer
org.gvsig.fmap.mapcontrol.impl.MapControlDrawer2D
public class MapControlDrawer2D
MapControlDrawer for a 2D view.
| Field Summary | |
|---|---|
protected org.gvsig.fmap.geom.GeometryManager |
geomManager
|
| Fields inherited from class org.gvsig.fmap.mapcontrol.impl.DefaultPrimitivesDrawer |
|---|
color, graphics, xorColor |
| Constructor Summary | |
|---|---|
MapControlDrawer2D()
|
|
| Method Summary | |
|---|---|
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 |
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)
|
| Methods inherited from class org.gvsig.fmap.mapcontrol.impl.DefaultPrimitivesDrawer |
|---|
cleanCanvas, drawLine, drawOval, drawRect, fillRect, setColor, setGraphics, setRenderingHints, setStroke, startDrawing, stopDrawing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gvsig.fmap.mapcontrol.MapControlDrawer |
|---|
cleanCanvas, setRenderingHints, setStroke |
| Methods inherited from interface org.gvsig.fmap.mapcontrol.PrimitivesDrawer |
|---|
drawLine, drawOval, drawRect, fillRect, setColor, setGraphics, startDrawing, stopDrawing |
| Field Detail |
|---|
protected org.gvsig.fmap.geom.GeometryManager geomManager
| Constructor Detail |
|---|
public MapControlDrawer2D()
graphics - viewPort - | Method Detail |
|---|
public 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 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)
MapControlDrawer
drawImage in interface MapControlDrawerimg - The image to draw.xform - The transform to apply.
public void drawImage(java.awt.Image img,
int x,
int y)
MapControlDrawer
drawImage 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)
MapControlDrawer
drawLine 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 MapControlDrawer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||