Class Image

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Component, ImageComponent, Displayable, ImageModel, InfoModel, LabelModel, Model, PresentationModel, DepictedObject
Direct Known Subclasses:
PendingImage

public class Image extends AbstractImageComponent
A simple image component with no descriptive text.
Author:
Garret Wilson
  • Constructor Details

    • Image

      public Image()
      Default constructor.
    • Image

      public Image(ImageModel imageModel)
      Image model constructor.
      Parameters:
      imageModel - The component image model.
      Throws:
      NullPointerException - if the given image model is null.
    • Image

      public Image(InfoModel infoModel, ImageModel imageModel)
      Info model and image model constructor.
      Parameters:
      infoModel - The component info model.
      imageModel - The component image model.
      Throws:
      NullPointerException - if the given info model and/or image model is null.
    • Image

      public Image(URI imageURI)
      Image URI constructor.
      Parameters:
      imageURI - The image URI, which may be a resource URI, or null if there is no image URI.
    • Image

      public Image(URI imageURI, String label)
      Image URI and label constructor.
      Parameters:
      imageURI - The image URI, which may be a resource URI, or null if there is no image URI.
      label - The text of the label, or null if there should be no label.