Class UnicodeRange

  • All Implemented Interfaces:
    CssProperty, java.io.Serializable, java.lang.Cloneable


    public class UnicodeRange
    extends AbstractCssProperty<UnicodeRange>
     unicode-range: unicode-range;
     
    Optional. Defines the range of unicode characters the font supports. Default value is "U+0-10FFFF"
    Since:
    1.1.2
    See Also:
    Serialized Form
    • Field Detail

      • LOGGER

        public static final java.util.logging.Logger LOGGER
      • EMPTY_ARRAY

        public static final java.lang.String[] EMPTY_ARRAY
    • Constructor Detail

      • UnicodeRange

        public UnicodeRange​()
      • UnicodeRange

        public UnicodeRange​(java.lang.String cssValue)
        Parameters:
        cssValue - the css value to set.
      • UnicodeRange

        public UnicodeRange​(java.lang.String... unicodeChars)
         Eg:-
         String[] unicodeChars = {"U+0400-045F", "U+0490-0491", "U+04B0-04B1", "U+2116"};
        
         
        Parameters:
        unicodeChars - the unicodeChars to set
        Since:
        1.1.2
      • UnicodeRange

        public UnicodeRange​(UnicodeRange fontFamily)
        Parameters:
        fontFamily - the FontFamily object from which the cssValue to set.And, null will throw NullValueException
    • Method Detail

      • getBuiltCssValue

        protected static java.lang.String getBuiltCssValue​(java.lang.String... unicodeChars)
        Parameters:
        unicodeChars -
        Returns:
        Defines the range of unicode characters the font supports. Default value is "U+0-10FFFF"
        Since:
        1.1.2
      • getCssName

        public java.lang.String getCssName​()
        Returns:
        the name portion in style, eg align-content for style align-content: center.
      • getCssValue

        public java.lang.String getCssValue​()
        Returns:
        the value portion in style, eg center for style align-content: center.
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • setUnicodeChars

        public void setUnicodeChars​(java.lang.String[] unicodeChars)
         Eg:-
         String[] unicodeChars = {"U+0400-045F", "U+0490-0491", "U+04B0-04B1", "U+2116"};
        
         
        Parameters:
        unicodeChars - the unicodeChars to set
        Since:
        1.1.2
      • getUnicodeChars

        public java.lang.String[] getUnicodeChars​()
        gets the unicodeChars as an array and if here is no value set then returns an empty array.
         Note: it will never return null.
         
        Returns:
        the unicodeChars. If there is no unicodeChars set then returns an empty array instead of null.
        Since:
        1.1.2