Package elki.visualization.style.marker
Class PrettyMarkers
- java.lang.Object
-
- elki.visualization.style.marker.PrettyMarkers
-
- All Implemented Interfaces:
MarkerLibrary
public class PrettyMarkers extends java.lang.Object implements MarkerLibrary
Marker library achieving a larger number of styles by combining different shapes with different colors. Uses object ID management by SVGPlot.TODO: Add more styles
- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private ColorLibrarycolorsColor libraryprivate static java.lang.StringDEFAULT_PREFIXDefault prefix to use.private java.lang.StringdotcolorColor of "uncolored" dotsprivate java.lang.StringgraycolorColor of "grayed out" dots(package private) ColorInterpolationinterpolColor interpolation styleprivate java.lang.StringprefixPrefix for the IDs generated.
-
Constructor Summary
Constructors Constructor Description PrettyMarkers(StyleLibrary style)Constructor without prefix argument, will useDEFAULT_PREFIXas prefix.PrettyMarkers(java.lang.String prefix, StyleLibrary style)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.ElementplotMarker(SVGPlot plot, double x, double y, int style, double size, double intensity)Draw an marker used in scatter plots.protected org.w3c.dom.ElementplotSimple(SVGPlot plot, double x, double y, double size, java.lang.String color)Plot a replacement marker when no color is set; usually blackorg.w3c.dom.ElementuseMarker(SVGPlot plot, double x, double y, int style, double size, double intensity)Insert a soft marker at the given coordinates.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.visualization.style.marker.MarkerLibrary
useMarker
-
-
-
-
Field Detail
-
colors
private ColorLibrary colors
Color library
-
DEFAULT_PREFIX
private static final java.lang.String DEFAULT_PREFIX
Default prefix to use.- See Also:
- Constant Field Values
-
prefix
private java.lang.String prefix
Prefix for the IDs generated.
-
dotcolor
private java.lang.String dotcolor
Color of "uncolored" dots
-
graycolor
private java.lang.String graycolor
Color of "grayed out" dots
-
interpol
ColorInterpolation interpol
Color interpolation style
-
-
Constructor Detail
-
PrettyMarkers
public PrettyMarkers(java.lang.String prefix, StyleLibrary style)Constructor- Parameters:
prefix- prefix to use.style- style library to use
-
PrettyMarkers
public PrettyMarkers(StyleLibrary style)
Constructor without prefix argument, will useDEFAULT_PREFIXas prefix.- Parameters:
style- Style library to use
-
-
Method Detail
-
plotMarker
public org.w3c.dom.Element plotMarker(SVGPlot plot, double x, double y, int style, double size, double intensity)
Draw an marker used in scatter plots.- Parameters:
plot- containing plotx- positiony- positionstyle- marker style (enumerated)size- size- Returns:
- container element
-
plotSimple
protected org.w3c.dom.Element plotSimple(SVGPlot plot, double x, double y, double size, java.lang.String color)
Plot a replacement marker when no color is set; usually black- Parameters:
plot- Plot to draw tox- X positiony- Y positionsize- Sizecolor- Color string
-
useMarker
public org.w3c.dom.Element useMarker(SVGPlot plot, double x, double y, int style, double size, double intensity)
Description copied from interface:MarkerLibraryInsert a soft marker at the given coordinates.- Specified by:
useMarkerin interfaceMarkerLibrary- Parameters:
plot- Plot to draw onx- coordinatey- coordinatestyle- style (enumerated)size- sizeintensity- intensity of the color- Returns:
- Element node generated.
-
-