Class BorderStylePreset

    • Constructor Detail

      • BorderStylePreset

        BorderStylePreset(BorderStyle style)
        Creates preset with border style style and null dash array.
        Parameters:
        style - Border style to use.
      • BorderStylePreset

        BorderStylePreset(BorderStyle style, List<Integer> dashArray)
        Creates preset with border style style and dash array dashArray.
        Parameters:
        style - Border style to use.
        dashArray - Dash array to use.
      • BorderStylePreset

        BorderStylePreset(BorderStyle borderStyle, BorderEffect borderEffect, List<Integer> dashArray)
        Creates preset with border style borderStyle, border effect borderEffect and dash array dashArray.
        Parameters:
        borderStyle - Border style to use.
        borderEffect - Border effect to use.
        dashArray - Dash array to use.
      • BorderStylePreset

        BorderStylePreset(BorderStyle borderStyle, BorderEffect borderEffect, float borderEffectIntensity, List<Integer> dashArray)
        Creates preset with border style borderStyle, border effect borderEffect and dash array dashArray.
        Parameters:
        borderStyle - Border style to use.
        borderEffect - Border effect to use.
        borderEffectIntensity - Intensity of the border effect.
        dashArray - Dash array to use.
    • Method Detail

      • getDashArray

        @Nullable() List<Integer> getDashArray()

        Returns dash array specified in this preset.

        Returns:

        Dash array or null if none is specified (for example when not using dashed border style).

      • hasBorder

         boolean hasBorder()

        Returns whether border style preset represents a border.

        Returns:

        true when border is enabled, false when this border style represents no border.