Class Keyword

java.lang.Object
org.openstreetmap.josm.gui.mappaint.Keyword

public class Keyword extends 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.
  • Field Details

    • val

      public final 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
    • DEFAULT

      public static final Keyword DEFAULT
      Use default line width
    • THINNEST

      public static final Keyword THINNEST
      Thinnest line width
  • Constructor Details

    • Keyword

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