public static class SVGwritter.Qtext extends SVGwritter
SVGwritter.Qcircle, SVGwritter.Qline, SVGwritter.QPolarAxes, SVGwritter.QScaleBar, SVGwritter.Qtext
Modifier and Type | Field and Description |
---|---|
QColor |
colour
The colour.
|
String |
font
The font.
|
double |
letterSpacing
If letters overlap, set it to half of font size.
|
ExtendedVector2d |
pos
Position of text.
|
double |
size
The size.
|
String |
text
The text.
|
String |
textAnchor
Text anchor.
|
Constructor and Description |
---|
Qtext(String t,
double s,
String f,
ExtendedVector2d pos)
Instantiates a new qtext.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(PrintWriter osw)
Write to file svg definition of frawn object.
|
int |
length()
Length.
|
writeHeader
public String text
public double size
public QColor colour
public String font
public ExtendedVector2d pos
public double letterSpacing
public String textAnchor
public Qtext(String t, double s, String f, ExtendedVector2d pos)
t
- Texts
- Sizef
- Font namepos
- positionpublic int 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.