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 |
dotcolor
Color of "uncolored" dots
|
private String |
greycolor
Color of "greyed out" dots
|
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 |
---|---|
protected void |
plotGray(SVGPlot plot,
Element parent,
double x,
double y,
double size)
Plot a replacement marker when an object is to be plotted as "disabled", usually gray.
|
void |
plotMarker(SVGPlot plot,
Element parent,
double x,
double y,
int style,
double size)
Draw an marker used in scatter plots.
|
protected void |
plotUncolored(SVGPlot plot,
Element parent,
double x,
double y,
double size)
Plot a replacement marker when no color is set; usually black
|
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
private String dotcolor
private String greycolor
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
- sizeprotected void plotGray(SVGPlot plot, Element parent, double x, double y, double size)
plot
- Plot to draw toparent
- Parent elementx
- X positiony
- Y positionsize
- Sizeprotected void plotUncolored(SVGPlot plot, Element parent, double x, double y, double size)
plot
- Plot to draw toparent
- Parent elementx
- X positiony
- Y positionsize
- 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
- sizeCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.