public class GeometryDrawerBatik extends GeometryDrawerGraphics
| Constructor and Description |
|---|
GeometryDrawerBatik(CoordinateTransformer
Create a drawer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawCircle(double x, double y, double radius, DrawMode
|
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 |
drawString(double x, double y, String
|
org |
getGraphics()
|
void |
setLineWidth(double width)
|
drawGeometry, drawSegment, setColorBackground, setColorForegroundpublic GeometryDrawerBatik(CoordinateTransformerct, int width, int height)
ct - a coordinate transformation to apply.
filename - a file to write the image to.
width - the width of the image in pixels.
height - the height of the image in pixels.
public org.apache .batik .svggen .SVGGraphics2D getGraphics()
public void setLineWidth(double width)
public void drawCircle(double x,
double y,
double radius,
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 drawRectangleAbsolute(double x1,
double y1,
double x2,
double y2,
DrawMode mode) public void drawString(double x,
double y,
String text,
int fontsize,
int xoff,
int yoff)