Interface LineStyleLibrary

  • All Known Implementing Classes:
    DashedLineStyleLibrary, SolidLineStyleLibrary

    public interface LineStyleLibrary
    Interface to obtain CSS classes for plot lines. meta is a set of Objects, usually constants that may or may not be used by the LineStyleLibrary to generate variants of the style. Predefined meta flags that are usually supported are:
    FLAG_STRONG
    Request a "stronger" version of the same style
    FLAG_WEAK
    Request a "weaker" version of the same style
    FLAG_INTERPOLATED
    Request an "interpolated" version of the same style (e.g., lighter or dashed)
    Since:
    0.3
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FLAG_INTERPOLATED
      Meta flag to request an 'interpolated' version of the style
      static java.lang.String FLAG_STRONG
      Meta flag to request a 'stronger' version of the style
      static java.lang.String FLAG_WEAK
      Meta flag to request a 'weaker' version of the style
    • Field Detail

      • FLAG_STRONG

        static final java.lang.String FLAG_STRONG
        Meta flag to request a 'stronger' version of the style
        See Also:
        Constant Field Values
      • FLAG_WEAK

        static final java.lang.String FLAG_WEAK
        Meta flag to request a 'weaker' version of the style
        See Also:
        Constant Field Values
      • FLAG_INTERPOLATED

        static final java.lang.String FLAG_INTERPOLATED
        Meta flag to request an 'interpolated' version of the style
        See Also:
        Constant Field Values
    • Method Detail

      • formatCSSClass

        void formatCSSClass​(CSSClass cls,
                            int style,
                            double width,
                            java.lang.Object... meta)
        Add the formatting statements to the given CSS class. Note: this can overwrite some existing properties of the CSS class.
        Parameters:
        cls - CSS class to modify
        style - style number
        width - line width
        meta - meta objects to request line variants