de.lmu.ifi.dbs.elki.visualization.style.lines
Class DashedLineStyleLibrary

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.style.lines.DashedLineStyleLibrary
All Implemented Interfaces:
LineStyleLibrary

public class DashedLineStyleLibrary
extends Object
implements LineStyleLibrary

Line library using various dashed and dotted line styles. This library is particularly useful for black and white output. LineStyleLibrary.FLAG_STRONG will result in thicker lines. LineStyleLibrary.FLAG_WEAK will result in thinner and semi-transparent lines. LineStyleLibrary.FLAG_INTERPOLATED will result in shorter dashing patterns.


Field Summary
private  ColorLibrary colors
          The style library we use for colors
private  int dashnum
           
private  double[][] dashpatterns
          Dash patterns to regularly use
private  double[] solidreplacement
          Replacement for the solid pattern in 'interpolated' mode
 
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.style.lines.LineStyleLibrary
FLAG_INTERPOLATED, FLAG_STRONG, FLAG_WEAK
 
Constructor Summary
DashedLineStyleLibrary(StyleLibrary style)
          Constructor
 
Method Summary
 void formatCSSClass(CSSClass cls, int style, double width, Object... flags)
          Add the formatting statements to the given CSS class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colors

private ColorLibrary colors
The style library we use for colors


dashpatterns

private double[][] dashpatterns
Dash patterns to regularly use


solidreplacement

private double[] solidreplacement
Replacement for the solid pattern in 'interpolated' mode


dashnum

private int dashnum
Constructor Detail

DashedLineStyleLibrary

public DashedLineStyleLibrary(StyleLibrary style)
Constructor

Parameters:
style - Style library
Method Detail

formatCSSClass

public void formatCSSClass(CSSClass cls,
                           int style,
                           double width,
                           Object... flags)
Description copied from interface: LineStyleLibrary
Add the formatting statements to the given CSS class. Note: this can overwrite some existing properties of the CSS class.

Specified by:
formatCSSClass in interface LineStyleLibrary
Parameters:
cls - CSS class to modify
style - style number
width - line width
flags - meta objects to request line variants

Release 0.4.0 (2011-09-20_1324)