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, stopDrawing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cleanCanvas, setRenderingHints, setStroke
drawLine, drawOval, drawRect, fillRect, setColor, setGraphics, startDrawing, stopDrawing
protected GeometryManager geomManager
public void draw(Geometry geometry, ISymbol symbol)
MapControlDrawer
Geometry
on the map using a concrete
symbol.draw
in interface MapControlDrawer
geometry
- The Geometry
to draw.symbol
- The symbol used to draw the geometry.public void draw(Geometry geometry, ISymbol symbol, Feature feature)
MapControlDrawer
Geometry
on the map using a concrete
symbol.draw
in interface MapControlDrawer
geometry
- 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)
MapControlDrawer
Handler
's that compose a geometry
on the map.drawHandlers
in interface MapControlDrawer
handlers
- 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 MapControlDrawer
firstPoint
- 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 MapControlDrawer
img
- The image to draw.x
- The X coordinate,y
- The Y coordinate.public void drawHandler(Handler handler, AffineTransform at)
MapControlDrawer
Handler
on the map.drawHandler
in interface MapControlDrawer
handler
- 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 MapControlDrawer
img
- The image to draw.xform
- The transform to apply.public void setViewPort(ViewPort viewPort)
MapControlDrawer
ViewPort
is used to transform the map
coordinates in the screen coordinates.setViewPort
in interface MapControlDrawer
viewPort
- The ViewPort
public void draw(Geometry geometry)
MapControlDrawer
Geometry
on the map using the color
specified using the PrimitivesDrawer.setColor(Color)
method.draw
in interface MapControlDrawer
geometry
- The Geometry
to draw.public void setComposite(Composite composite)
setComposite
in interface MapControlDrawer
public void transform(AffineTransform at)
transform
in interface MapControlDrawer