public class PrettyMarkers extends Object implements MarkerLibrary
Modifier and Type | Field and Description |
---|---|
private ColorLibrary |
colors
Color library
|
private static String |
DEFAULT_PREFIX
Default prefix to use.
|
private String |
prefix
Prefix for the IDs generated.
|
Constructor and Description |
---|
PrettyMarkers(String prefix,
StyleLibrary style)
Constructor
|
PrettyMarkers(StyleLibrary style)
Constructor without prefix argument, will use
DEFAULT_PREFIX as
prefix. |
Modifier and Type | Method and Description |
---|---|
void |
plotMarker(SVGPlot plot,
Element parent,
double x,
double y,
int style,
double size)
Draw an marker used in scatter plots.
|
Element |
useMarker(SVGPlot plot,
Element parent,
double x,
double y,
int style,
double size)
Insert a marker at the given coordinates.
|
private ColorLibrary colors
private static final String DEFAULT_PREFIX
private String prefix
public PrettyMarkers(String prefix, StyleLibrary style)
prefix
- prefix to use.style
- style library to usepublic PrettyMarkers(StyleLibrary style)
DEFAULT_PREFIX
as
prefix.style
- Style library to usepublic void plotMarker(SVGPlot plot, Element parent, double x, double y, int style, double size)
useMarker(de.lmu.ifi.dbs.elki.visualization.svg.SVGPlot, org.w3c.dom.Element, double, double, int, double)
method
instead, which exploits the SVG features of symbol definition and useplot
- containing plotparent
- parent nodex
- positiony
- positionstyle
- marker style (enumerated)size
- sizepublic Element useMarker(SVGPlot plot, Element parent, double x, double y, int style, double size)
MarkerLibrary
useMarker
in interface MarkerLibrary
plot
- Plot to draw onparent
- parent nodex
- coordinatey
- coordinatestyle
- style (enumerated)size
- size