Package elki.visualization.style.lines
Class SolidLineStyleLibrary
- java.lang.Object
-
- elki.visualization.style.lines.SolidLineStyleLibrary
-
- All Implemented Interfaces:
LineStyleLibrary
public class SolidLineStyleLibrary extends java.lang.Object implements LineStyleLibrary
Line style library featuring solid lines for default styles only (combine with a color library to obtain enough classes!)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 dashed lines.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private ColorLibrary
colors
Reference to the color library.private java.lang.String
dotcolor
Color of "uncolored" dotsprivate java.lang.String
graycolor
Color of "grayed out" dots-
Fields inherited from interface elki.visualization.style.lines.LineStyleLibrary
FLAG_INTERPOLATED, FLAG_STRONG, FLAG_WEAK
-
-
Constructor Summary
Constructors Constructor Description SolidLineStyleLibrary(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
Reference to the color library.
-
dotcolor
private java.lang.String dotcolor
Color of "uncolored" dots
-
graycolor
private java.lang.String graycolor
Color of "grayed out" dots
-
-
Constructor Detail
-
SolidLineStyleLibrary
public SolidLineStyleLibrary(StyleLibrary style)
Constructor.- Parameters:
style
- Style library to use.
-
-
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
-
-