General purpose view that draws one of a set of predefined simple figures:
The figures can be filled (if meaningful), their defining points and the color can be set.
Properties:
DVector p1, p2, p3, p4 | 2d vectors defining (world) coordinates of four points |
int figureType | typ of figure to draw (cf. list above) |
Color color | color of the figure |
boolean filled | if true then figure is filled (if meaningful for chosen figure type) |
int arcAngle, startAngle | angle and starting angle of an arc (used if type = arc) |
String string | string to display (used if type = string) |
Methods:
void update() | redraw figure |