Class Depiction

All Implemented Interfaces:
org.apache.ecs.Element, org.apache.ecs.ElementRegistry

public class Depiction extends ComposedElement
Class that manages a Depiction, used in the TaskBar and TaskBarPage
  • Field Details

  • Constructor Details

    • Depiction

      public Depiction(String image, List words)
      Creates a new Depiction
      Parameters:
      image - The image
      words - List of words
  • Method Details

    • addAttribute

      public void addAttribute(String name, String value)
      Adds an attribute
      Parameters:
      name - name of the key with which the specified value is to be associated
      value - value to be associated with the specified key
    • setCss

      public void setCss(String css)
      Sets the css
      Parameters:
      css - String containing the css
    • setStyle

      public void setStyle(String style)
      Sets the style
      Parameters:
      style - String containing the style
    • setWidth

      public void setWidth(int width)
      Sets the width
      Parameters:
      width - The width
    • setHeight

      public void setHeight(int height)
      Sets the height
      Parameters:
      height - The height
    • isEmpty

      public boolean isEmpty()
      Returns true if is empty, false otherwise
      Returns:
      true if is empty, false otherwise
    • compose

      protected void compose()
      Specified by:
      compose in class ComposedElement