Update Implementation authored by Richard Schmidt's avatar Richard Schmidt
......@@ -82,22 +82,22 @@ So the software will calculate the baseSize for the given `g, gpad, b, bpad` and
In the case of `thickness < minThickness` an exception will be thrown stating that there is not enough space available.
#Floating Dot Area Mode
##Floating Dot Area Mode
The floating dot area mode enables embossing by defining dots by their x- and y-coordinate. All plotting algorithms must implement the Plotter interface.
Points are added iteratively to a FloatingPointData with an x- and a y-coordinate. The list with coordinates are passed to the printer starting with an ESC 70 sequence.
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).
### 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).
### 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).
*Richard*
\ No newline at end of file