|
||||||||||
| 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,
ISymbol symbol)
It draws a Geometry on the map using a concrete
symbol. |
void |
drawHandler(org.gvsig.fmap.geom.handler.Handler handler,
AffineTransform at)
It draws a Handler on the map. |
void |
drawHandlers(org.gvsig.fmap.geom.handler.Handler[] handlers,
AffineTransform at,
ISymbol symbol)
It draws the Handler's that compose a geometry
on the map. |
void |
drawImage(Image img,
AffineTransform xform)
It draws image, applying a transform from image space into user space before drawing. |
void |
drawImage(Image img,
int x,
int y)
It draws an image on a map in a concrete position. |
void |
drawLine(Point2D firstPoint,
Point2D endPoint,
ISymbol symbol)
It draws a line using a concrete symbol. |
void |
setComposite(Composite composite)
|
void |
setViewPort(ViewPort viewPort)
The ViewPort is used to transform the map
coordinates in the screen coordinates. |
void |
transform(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,
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 drawHandlers(org.gvsig.fmap.geom.handler.Handler[] handlers,
AffineTransform at,
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 drawLine(Point2D firstPoint,
Point2D endPoint,
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 drawImage(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 drawHandler(org.gvsig.fmap.geom.handler.Handler handler,
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 drawImage(Image img,
AffineTransform xform)
MapControlDrawer
drawImage in interface MapControlDrawerimg - The image to draw.xform - The transform to apply.public void setViewPort(ViewPort viewPort)
MapControlDrawerViewPort is used to transform the map
coordinates in the screen coordinates.
setViewPort in interface MapControlDrawerviewPort - The ViewPortpublic 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 setComposite(Composite composite)
setComposite in interface MapControlDrawerpublic void transform(AffineTransform at)
transform in interface MapControlDrawer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||