public static class SVGwritter.QScaleBar extends SVGwritter
SVGwritter.Qcircle, SVGwritter.Qline, SVGwritter.QPolarAxes, SVGwritter.QScaleBar, SVGwritter.Qtext
Modifier and Type | Field and Description |
---|---|
QColor |
colour
Text colour.
|
double |
thickness
Line thickness.
|
Constructor and Description |
---|
QScaleBar(ExtendedVector2d l,
String u,
int v,
double s)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(PrintWriter osw)
Write to file svg definition of frawn object.
|
void |
setScale(double s)
Set scale.
|
writeHeader
public double thickness
public QColor colour
public QScaleBar(ExtendedVector2d l, String u, int v, double s)
l
- position of textu
- unitsv
- values
- scalepublic void setScale(double s)
s
- scalepublic 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.