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 Link icon

    • Attributes Link icon

      public Attributes(Styles parent)
  • Method Details Link icon

    • getValues Link icon

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

      protected void applyNew(Attributes atts)
    • mergeMap Link icon

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

      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 Link icon

      public boolean isEmpty()
    • hasAttribute Link icon

      public boolean hasAttribute(String key)
    • set Link icon

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object