public abstract class DeviceDrawing
extends java.lang.Object
Constructor and Description |
---|
DeviceDrawing() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addObject(com.vividsolutions.jts.geom.Geometry g) |
void |
drawArc(double xcenter,
double ycenter,
double radius,
double firstArcAngle,
double lastArcAngle) |
void |
drawArrondi(com.vividsolutions.jts.geom.Coordinate p1,
com.vividsolutions.jts.geom.Coordinate p2,
double arrondi) |
void |
drawArrow(Vect vector,
com.vividsolutions.jts.geom.Coordinate arroworigin,
double width)
draw an arrow
|
void |
drawDottedLines(double x1,
double y1,
double x2,
double y2,
double dotLength,
double dotSpace)
draw dotspace + dotline
|
void |
drawImprovedDottedLines(double x1,
double y1,
double x2,
double y2,
double dotLength,
double dotSpace)
Dessine une ligne pointillee, en faisant en sorte que les pointilles soient
bien
|
void |
drawLine(double x1,
double y1,
double x2,
double y2)
draw line from .. to
|
void |
drawRectangleHole(double ypiste,
double halfheight,
double x,
double endx)
draw a rectangle hole
|
void |
drawTo(com.vividsolutions.jts.geom.Coordinate c) |
void |
drawTo(double x,
double y) |
void |
endGroup() |
void |
flushLine() |
java.lang.String |
getCurrentLayer() |
abstract boolean |
ignoreReference()
does the export needs to ignore the reference ?
|
void |
moveTo(com.vividsolutions.jts.geom.Coordinate c) |
void |
moveTo(double x,
double y) |
void |
setCurrentLayer(java.lang.String layer)
define the current layer for drawing
|
void |
startGroup() |
abstract void |
write(java.io.File file,
java.lang.String[] layers)
write previously drawn content to a file
|
abstract void |
write(java.io.OutputStream outStream,
java.lang.String[] layers)
write to output stream
|
public void setCurrentLayer(java.lang.String layer)
layer
- public java.lang.String getCurrentLayer()
public void startGroup()
public void endGroup()
public void drawArc(double xcenter, double ycenter, double radius, double firstArcAngle, double lastArcAngle)
public void drawArrondi(com.vividsolutions.jts.geom.Coordinate p1, com.vividsolutions.jts.geom.Coordinate p2, double arrondi)
public void drawLine(double x1, double y1, double x2, double y2)
x1
- y1
- x2
- y2
- public void drawDottedLines(double x1, double y1, double x2, double y2, double dotLength, double dotSpace)
x1
- y1
- x2
- y2
- dotLength
- dotSpace
- public void drawImprovedDottedLines(double x1, double y1, double x2, double y2, double dotLength, double dotSpace)
x1
- y2
- x2
- y2
- dotLength
- dotSpace
- public void drawRectangleHole(double ypiste, double halfheight, double x, double endx)
ypiste
- halfheight
- x
- endx
- public void drawTo(com.vividsolutions.jts.geom.Coordinate c)
public void drawTo(double x, double y)
public void flushLine()
protected abstract void addObject(com.vividsolutions.jts.geom.Geometry g)
public void moveTo(com.vividsolutions.jts.geom.Coordinate c)
public void moveTo(double x, double y)
public void drawArrow(Vect vector, com.vividsolutions.jts.geom.Coordinate arroworigin, double width)
vector
- vector for the arrowarroworigin
- origin of the arrowwidth
- lengths of the arrow borderspublic abstract void write(java.io.File file, java.lang.String[] layers) throws java.lang.Exception
file
- layers
- java.lang.Exception
public abstract void write(java.io.OutputStream outStream, java.lang.String[] layers) throws java.lang.Exception
outStream
- layers
- java.lang.Exception
public abstract boolean ignoreReference()