Class Picture

    • Field Detail

      • DESCRIPTION_DISPLAYED_PROPERTY

        public static final java.lang.String DESCRIPTION_DISPLAYED_PROPERTY
        The bound property of whether the description is displayed.
      • IMAGE_OPACITY_PROPERTY

        public static final java.lang.String IMAGE_OPACITY_PROPERTY
        The image opacity bound property.
    • Constructor Detail

      • Picture

        public Picture()
        Default constructor.
      • Picture

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

      • setDescriptionDisplayed

        public void setDescriptionDisplayed​(boolean newDescriptionDisplayed)
        Sets whether the description is displayed. This is a bound property of type Boolean.
        Parameters:
        newDescriptionDisplayed - true if the description should be displayed, else false.
        See Also:
        DESCRIPTION_DISPLAYED_PROPERTY
      • getImageOpacity

        public float getImageOpacity()
        Returns:
        The opacity of the image in the range (0.0-1.0), with a default of 1.0.
      • setImageOpacity

        public void setImageOpacity​(float newImageOpacity)
        Sets the opacity of the image. This is a bound property of type Float.
        Parameters:
        newImageOpacity - The new opacity of the image in the range (0.0-1.0).
        Throws:
        java.lang.IllegalArgumentException - if the given opacity is not within the range (0.0-1.0).
        See Also:
        IMAGE_OPACITY_PROPERTY