Package elki.visualization.style.lines
Class DashedLineStyleLibrary
- java.lang.Object
-
- elki.visualization.style.lines.DashedLineStyleLibrary
-
- All Implemented Interfaces:
LineStyleLibrary
public class DashedLineStyleLibrary extends java.lang.Object implements LineStyleLibrary
Line library using various dashed and dotted line styles.This library is particularly useful for black and white output.
LineStyleLibrary.FLAG_STRONGwill result in thicker lines.LineStyleLibrary.FLAG_WEAKwill result in thinner and semi-transparent lines.LineStyleLibrary.FLAG_INTERPOLATEDwill result in shorter dashing patterns.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private ColorLibrarycolorsThe style library we use for colorsprivate double[][]dashpatternsDash patterns to regularly useprivate java.lang.StringdotcolorColor of "uncolored" dotsprivate java.lang.StringgraycolorColor of "grayed out" dotsprivate double[]solidreplacementReplacement for the solid pattern in 'interpolated' mode-
Fields inherited from interface elki.visualization.style.lines.LineStyleLibrary
FLAG_INTERPOLATED, FLAG_STRONG, FLAG_WEAK
-
-
Constructor Summary
Constructors Constructor Description DashedLineStyleLibrary(StyleLibrary style)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidformatCSSClass(CSSClass cls, int style, double width, java.lang.Object... flags)Add the formatting statements to the given CSS class.
-
-
-
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
-
dotcolor
private java.lang.String dotcolor
Color of "uncolored" dots
-
graycolor
private java.lang.String graycolor
Color of "grayed out" dots
-
-
Constructor Detail
-
DashedLineStyleLibrary
public DashedLineStyleLibrary(StyleLibrary style)
Constructor- Parameters:
style- Style library
-
-
Method Detail
-
formatCSSClass
public void formatCSSClass(CSSClass cls, int style, double width, java.lang.Object... flags)
Description copied from interface:LineStyleLibraryAdd the formatting statements to the given CSS class. Note: this can overwrite some existing properties of the CSS class.- Specified by:
formatCSSClassin interfaceLineStyleLibrary- Parameters:
cls- CSS class to modifystyle- style numberwidth- line widthflags- meta objects to request line variants
-
-