public abstract class GeometryDrawerGraphics extends Objectimplements GeometryDrawer
| Constructor and Description |
|---|
GeometryDrawerGraphics(CoordinateTransformer
Create a new implementation of the PolygonDrawer interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawCircle(double x, double y, double radius, DrawMode
|
void |
drawGeometry(Geometry
|
void |
drawRectangle(double x, double y, double width, double height, DrawMode
|
void |
drawRectangleAbsolute(double x1, double y1, double x2, double y2, DrawMode
|
void |
drawRectangleCentered(double x, double y, double width, double height, DrawMode
|
void |
drawSegment(double x1, double y1, double x2, double y2)
|
void |
drawString(double x, double y, String
|
abstract Graphics2D |
getGraphics()
|
void |
setCap(Cap
|
void |
setColorBackground(ColorCode
|
void |
setColorForeground(ColorCode
|
void |
setJoin(Join
|
void |
setLineWidth(double width)
|
public GeometryDrawerGraphics(CoordinateTransformerct, int width, int height)
ct - the transformation applied to coordinates.
width - the width of the image in pixels.
height - the height of the image in pixels.
public abstract Graphics2DgetGraphics()
public void setColorBackground(ColorCodec)
public void setColorForeground(ColorCodec)
public void setLineWidth(double width)
public void setCap(Capcap)
public void setJoin(Joinjoin)
public void drawCircle(double x,
double y,
double radius,
DrawMode mode) public void drawSegment(double x1,
double y1,
double x2,
double y2)public void drawRectangleAbsolute(double x1,
double y1,
double x2,
double y2,
DrawMode mode) public void drawRectangle(double x,
double y,
double width,
double height,
DrawMode mode) public void drawRectangleCentered(double x,
double y,
double width,
double height,
DrawMode mode) public void drawString(double x,
double y,
String text,
int fontsize,
int xoff,
int yoff)