public class MapControlDrawer2D extends DefaultPrimitivesDrawer implements MapControlDrawer
| Modifier and Type | Field and Description |
|---|---|
protected GeometryManager |
geomManager |
color, graphics, xorColor| Constructor and Description |
|---|
MapControlDrawer2D() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Geometry geometry)
It draws a
Geometry on the map using the color
specified using the PrimitivesDrawer.setColor(Color) method. |
void |
draw(Geometry geometry,
ISymbol symbol)
It draws a
Geometry on the map using a concrete
symbol. |
void |
draw(Geometry geometry,
ISymbol symbol,
Feature feature)
It draws a
Geometry on the map using a concrete
symbol. |
void |
drawHandler(Handler handler,
AffineTransform at)
It draws a
Handler on the map. |
void |
drawHandlers(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) |
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, stopDrawingprotected GeometryManager geomManager
public void draw(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 draw(Geometry geometry, ISymbol symbol, 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 drawHandlers(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)
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 drawImage(Image img, int x, int y)
MapControlDrawerdrawImage in interface MapControlDrawerimg - The image to draw.x - The X coordinate,y - The Y coordinate.public void drawHandler(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)
MapControlDrawerdrawImage 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(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