Class Attributes

java.lang.Object
com.simsilica.lemur.style.Attributes

public class Attributes extends Object
The attribute settings for a particular style selector.
  • Constructor Details

    • Attributes

      public Attributes(Styles parent)
  • Method Details

    • getValues

      protected Map<String,Object> getValues()
    • applyNew

      protected void applyNew(Attributes atts)
    • mergeMap

      protected Map mergeMap(Map high, Map low)
    • merge

      protected Attributes merge(Attributes atts)
      Like applyNew except that it returns a new Attributes object and leaves the original intact if a merge is necessary. If the specified attributes to merge are empty then this attributes object is returned.
    • isEmpty

      public boolean isEmpty()
    • hasAttribute

      public boolean hasAttribute(String key)
    • set

      public void set(String attribute, Object value)
    • set

      public void set(String attribute, Object value, boolean overwrite)
    • get

      public <T> T get(String attribute)
    • get

      public <T> T get(String attribute, Class<T> type)
    • get

      public <T> T get(String attribute, Class<T> type, boolean lookupDefault)
    • toString

      public String toString()
      Overrides:
      toString in class Object