Interface StyleLibrary

  • All Known Implementing Classes:
    PropertiesBasedStyleLibrary

    public interface StyleLibrary
    Style library interface. A style library allows the user to customize the visual rendering, for example for print media or screen presentation without having to change program code.
    Since:
    0.3
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AXIS
      Axis
      static java.lang.String AXIS_LABEL
      Axis label
      static java.lang.String AXIS_TICK
      Axis tick
      static java.lang.String AXIS_TICK_MINOR
      Axis minor tick
      static java.lang.String BACKGROUND_COLOR
      Background color
      static java.lang.String BUBBLEPLOT
      Bubble size
      static java.lang.String CLUSTERORDER
      Clusterorder
      static java.lang.String COLOR
      Color
      static java.lang.String COLORSET
      Color set
      static java.lang.String DEFAULT
      Default
      static java.lang.String DOTPLOT
      Dot size
      static java.lang.String FONT_FAMILY
      Font family
      static java.lang.String GENERIC_SIZE
      Generic size
      static java.lang.String KEY
      Key
      static java.lang.String LINE_WIDTH
      Line width
      static java.lang.String MARGIN
      Margin
      static java.lang.String MARKERPLOT
      Marker size
      static java.lang.String OPACITY
      Opacity (transparency)
      static java.lang.String PAGE
      Page
      static java.lang.String PLOT
      Plot
      static java.lang.String PLOTGRAY
      Grayed out objects
      static java.lang.String POLYGONS
      Polygons style
      static java.lang.String REFERENCE_POINTS
      Reference points color and size
      static double SCALE
      Scaling constant.
      static java.lang.String SELECTION
      Selection color and opacity
      static java.lang.String SELECTION_ACTIVE
      Selection color and opacity during selecting process
      static java.lang.String TEXT_COLOR
      Text color
      static java.lang.String TEXT_SIZE
      Text size
      static java.lang.String XYCURVE
      XY curve styling.
    • Method Detail

      • getColor

        java.lang.String getColor​(java.lang.String name)
        Retrieve a color for an item
        Parameters:
        name - Reference name
        Returns:
        color in CSS/SVG valid format: hexadecimal (#aabbcc) or names such as "red"
      • getBackgroundColor

        java.lang.String getBackgroundColor​(java.lang.String name)
        Retrieve background color for an item
        Parameters:
        name - Reference name
        Returns:
        color in CSS/SVG valid format: hexadecimal (#aabbcc) or names such as "red"
      • getTextColor

        java.lang.String getTextColor​(java.lang.String name)
        Retrieve text color for an item
        Parameters:
        name - Reference name
        Returns:
        color in CSS/SVG valid format: hexadecimal (#aabbcc) or names such as "red"
      • getColorSet

        ColorLibrary getColorSet​(java.lang.String name)
        Retrieve colorset for an item
        Parameters:
        name - Reference name
        Returns:
        color library
      • getLineWidth

        double getLineWidth​(java.lang.String key)
        Get line width
        Parameters:
        key - Key
        Returns:
        line width as double
      • getSize

        double getSize​(java.lang.String key)
        Get generic size
        Parameters:
        key - Key
        Returns:
        size as double
      • getTextSize

        double getTextSize​(java.lang.String key)
        Get text size
        Parameters:
        key - Key
        Returns:
        line width as double
      • getFontFamily

        java.lang.String getFontFamily​(java.lang.String key)
        Get font family
        Parameters:
        key - Key
        Returns:
        font family CSS string
      • getOpacity

        double getOpacity​(java.lang.String key)
        Get opacity
        Parameters:
        key - Key
        Returns:
        size as double
      • lines

        LineStyleLibrary lines()
        Get the line style library to use.
        Returns:
        line style library
      • markers

        MarkerLibrary markers()
        Get the marker library to use.
        Returns:
        marker library