Markers in Waterloo plots are supported by a custom class - the GJMarker class.

This class provides:

  • Static methods to create markers for use in plots
  • Mechanisms to serialize those markers in XML files
  • Efficient, and automatic, mechanisms to reduce the memory footprint of applications by sharing markers by reference between plots

The static methods in the GJMarker class support the generation of the following marker types:

  • Circle
  • Square
  • Triangle
  • Diamond
  • Inverted Triangle
  • Left Triangle
  • Right Triangle
  • Dot

Character markers

The GJMarker class also supports the generation of markers from characters and Strings via its fromString methods.
These attempt to offset the characters/strings to locate the centroid at the 0,0 coordinate.