Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.visualization.svg
Class MinimalMarkers

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.svg.MinimalMarkers
All Implemented Interfaces:
MarkerLibrary

public class MinimalMarkers
extends Object
implements MarkerLibrary

Simple marker library that just draws colored crosses at the given coordinates.

Author:
Erich Schubert

Field Summary
private  ColorLibrary colors
          Color library
 
Constructor Summary
MinimalMarkers()
          Constructor
MinimalMarkers(StyleLibrary style)
          Constructor
 
Method Summary
 void setStyleLibrary(StyleLibrary style)
          Set the style library for this marker library.
 Element useMarker(SVGPlot plot, Element parent, double x, double y, int stylenr, double size)
          Use a given marker on the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colors

private ColorLibrary colors
Color library

Constructor Detail

MinimalMarkers

public MinimalMarkers(StyleLibrary style)
Constructor

Parameters:
style - Style library to use

MinimalMarkers

public MinimalMarkers()
Constructor

Method Detail

useMarker

public Element useMarker(SVGPlot plot,
                         Element parent,
                         double x,
                         double y,
                         int stylenr,
                         double size)
Use a given marker on the document.

Specified by:
useMarker in interface MarkerLibrary
Parameters:
plot - Plot to draw on
parent - parent node
x - coordinate
y - coordinate
stylenr - style (enumerated)
size - size
Returns:
Element node generated.

setStyleLibrary

public void setStyleLibrary(StyleLibrary style)
Description copied from interface: MarkerLibrary
Set the style library for this marker library.

Specified by:
setStyleLibrary in interface MarkerLibrary
Parameters:
style - New style library to use.

Release 0.3 (2010-03-31_1612)