Class Keyword


  • public class Keyword
    extends java.lang.Object
    A MapCSS keyword. For example "round" is a keyword in
    linecap: round;
    Keywords are similar to a Java enum value. In accordance with the CSS specification, they are parsed case insensitive.
    • Constructor Summary

      Constructors 
      Constructor Description
      Keyword​(java.lang.String val)
      Create a new Keyword
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • val

        public final java.lang.String val
        The string value for this keyword
      • AUTO

        public static final Keyword AUTO
        Automated text positioning
      • BOTTOM

        public static final Keyword BOTTOM
        Align text at the bottom
      • CENTER

        public static final Keyword CENTER
        Align text at the center
      • RIGHT

        public static final Keyword RIGHT
        Align to the right
    • Constructor Detail

      • Keyword

        public Keyword​(java.lang.String val)
        Create a new Keyword
        Parameters:
        val - The string value that is written in the MapCSS file
    • Method Detail

      • toString

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object