Class MultiStateIconComponent

All Implemented Interfaces:
GuiComponent, GraphicalComponent, com.ptc.core.components.rendering.guicomponents.PrintableComponent, GraphicalAttRepresentationHandler, com.ptc.netmarkets.util.misc.NmFormatable, Serializable
Direct Known Subclasses:
TrafficLightComponent

public abstract class MultiStateIconComponent extends AbstractGraphicalComponent
A multi-state icon component is a graphical representation that renders as one of several icons based an underlying attribute value. This class supports only integer-valued attributes.
Supported API: true

Extendable: true
See Also:
  • Method Details

    • getIconComponent

      public abstract IconComponent getIconComponent(int state) throws WTException
      The getIconComponent method should return the icon that corresponds with the int passed in. It will throw a WTException if the int passed in does not map to a valid state.
      Supported API: true

      Parameters:
      state - the integer corresponding to the returned icon
      Returns:
      the icon corresponding to "state".
      Throws:
      WTException - if "state" is an invalid value.