Update Implementation authored by Richard Schmidt's avatar Richard Schmidt
...@@ -89,15 +89,15 @@ Points are added iteratively to a FloatingPointData with an x- and a y-coordinat ...@@ -89,15 +89,15 @@ Points are added iteratively to a FloatingPointData with an x- and a y-coordinat
Plotting algorithms for diagrams should extend AbstractPlotter or an abstract child class, which provide basic functionalities such as axes drawing and axes scaling. Plotting algorithms for diagrams should extend AbstractPlotter or an abstract child class, which provide basic functionalities such as axes drawing and axes scaling.
### Adding textures, frames and line styles to the floating dot mode ## Adding textures, frames and line styles to the floating dot mode
#### Adding textures to bar charts ### Adding textures to bar charts
To add a new texture to bar charts, first implement a texture function in AbstractBarChartPlotter (e.g. fillFullPattern). Then add a new else-if-statement in plotAndFillRectangle with an incremented value for j and the newly defined function in the body. A comment "new textures are added here" will show you the right spot (line 148). To add a new texture to bar charts, first implement a texture function in AbstractBarChartPlotter (e.g. fillFullPattern). Then add a new else-if-statement in plotAndFillRectangle with an incremented value for j and the newly defined function in the body. A comment "new textures are added here" will show you the right spot (line 148).
#### Adding frames to scatter and line plots ### Adding frames to scatter and line plots
To add a new frame to scatter and line plots, first implement a frame function in AbstractPointPlotter (e.g. drawDot). Then add a new else-if-statement in drawPoint with an incremented value for i and the newly defined function in the body. A comment "new frames are added here" will show you the right spot (line 283). To add a new frame to scatter and line plots, first implement a frame function in AbstractPointPlotter (e.g. drawDot). Then add a new else-if-statement in drawPoint with an incremented value for i and the newly defined function in the body. A comment "new frames are added here" will show you the right spot (line 283).
#### Adding line styles to line plots. ### Adding line styles to line plots.
To add a new line style to line plots, first implement a line function in LinePlotter (e.g. drawFullLine). Then add a new else-if-statement in drawLines with an incremented value for i and the newly defined function in the body. A comment "new line styles are added here" will show you the right spot (line 170). To add a new line style to line plots, first implement a line function in LinePlotter (e.g. drawFullLine). Then add a new else-if-statement in drawLines with an incremented value for i and the newly defined function in the body. A comment "new line styles are added here" will show you the right spot (line 170).
*Richard* *Richard*
\ No newline at end of file