public static class SVGwritter.Qline extends SVGwritter
SVGwritter.Qcircle, SVGwritter.Qline, SVGwritter.QPolarAxes, SVGwritter.QScaleBar, SVGwritter.Qtext
Modifier and Type | Field and Description |
---|---|
QColor |
colour
The colour.
|
double |
thickness
The thickness.
|
double |
x1
x coordinate of first point of section.
|
double |
x2
x coordinate of last point of section.
|
double |
y1
y coordinate of first point of section.
|
double |
y2
y coordinate of last point of section.
|
Constructor and Description |
---|
Qline(double xx1,
double yy1,
double xx2,
double yy2)
Instantiates a new qline.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(PrintWriter osw)
Write to file svg definition of frawn object.
|
double |
length()
Length.
|
writeHeader
public double x1
public double y1
public double x2
public double y2
public double thickness
public QColor colour
public Qline(double xx1, double yy1, double xx2, double yy2)
xx1
- the xx 1yy1
- the yy 1xx2
- the xx 2yy2
- the yy 2public double length()
public void draw(PrintWriter osw) throws IOException
SVGwritter
draw
in class SVGwritter
osw
- file to writeIOException
- on file errorCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.