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_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.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private ColorLibrary
colors
The style library we use for colorsprivate double[][]
dashpatterns
Dash patterns to regularly useprivate java.lang.String
dotcolor
Color of "uncolored" dotsprivate java.lang.String
graycolor
Color of "grayed out" dotsprivate double[]
solidreplacement
Replacement 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 void
formatCSSClass(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: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 interfaceLineStyleLibrary
- Parameters:
cls
- CSS class to modifystyle
- style numberwidth
- line widthflags
- meta objects to request line variants
-
-