|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.visualization.svg.PrettyMarkers
public class PrettyMarkers
Marker library achieving a larger number of styles by combining different shapes with different colors. Uses object ID management by SVGPlot.
Field Summary | |
---|---|
private ColorLibrary |
colors
Color library |
private static String |
DEFAULT_PREFIX
Default prefix to use. |
private String |
prefix
Prefix for the IDs generated. |
Constructor Summary | |
---|---|
PrettyMarkers()
Constructor without arguments, will use DEFAULT_PREFIX as prefix
and a default PropertiesBasedStyleLibrary as style library. |
|
PrettyMarkers(String prefix)
Constructor without a a ColorLibrary , will use a default
PropertiesBasedStyleLibrary as style library. |
|
PrettyMarkers(String prefix,
StyleLibrary style)
Constructor |
|
PrettyMarkers(StyleLibrary style)
Constructor without prefix argument, will use DEFAULT_PREFIX as
prefix. |
Method Summary | |
---|---|
void |
plotMarker(SVGPlot plot,
Element parent,
double x,
double y,
int style,
double size)
Draw an marker used in scatter plots. |
void |
setStyleLibrary(StyleLibrary style)
Set the style library for this marker library. |
Element |
useMarker(SVGPlot plot,
Element parent,
double x,
double y,
int style,
double size)
Insert a marker at the given coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ColorLibrary colors
private static final String DEFAULT_PREFIX
private String prefix
Constructor Detail |
---|
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 PrettyMarkers(String prefix)
ColorLibrary
, will use a default
PropertiesBasedStyleLibrary
as style library.
prefix
- prefix to use.public PrettyMarkers()
DEFAULT_PREFIX
as prefix
and a default PropertiesBasedStyleLibrary
as style library.
Method Detail |
---|
public 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 use
plot
- 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
public void setStyleLibrary(StyleLibrary style)
MarkerLibrary
setStyleLibrary
in interface MarkerLibrary
style
- New style library to use.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |