de.lmu.ifi.dbs.elki.visualization.svg
Interface MarkerLibrary
- All Known Implementing Classes:
- MinimalMarkers, PrettyMarkers
public interface MarkerLibrary
A marker library is a class that can generate and draw various styles of markers.
Different uses might require different marker libraries (e.g. full screen, thumbnail, print)
- Author:
- Erich Schubert
useMarker
Element useMarker(SVGPlot plot,
Element parent,
double x,
double y,
int style,
double size)
- Insert a marker at the given coordinates.
Markers will be defined in the defs part of the document, and then SVG-"use"d at the
given coordinates. This supposedly is more efficient and significantly reduces file size.
Symbols will be named "s0", "s1" etc.; these names must not be used by other elements in
the SVG document!
- Parameters:
plot - Plot to draw onparent - parent nodex - coordinatey - coordinatestyle - style (enumerated)size - size
- Returns:
- Element node generated.
setStyleLibrary
void setStyleLibrary(StyleLibrary style)
- Set the style library for this marker library.
- Parameters:
style - New style library to use.