Class ElementImageHelper.ImageInformation

  • All Implemented Interfaces:
    com.nomagic.magicdraw.icons.ElementImages.ElementImageInformation, java.lang.Cloneable
    Enclosing class:
    ElementImageHelper

    @OpenApiAll
    public static class ElementImageHelper.ImageInformation
    extends com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
    Structure, which contains information of image: content, format and location.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageInformation()
      Sets content, format and image to nulls.
      ImageInformation​(java.lang.String content, java.lang.String format)
      Initializes content, format of image.
      ImageInformation​(java.lang.String content, java.lang.String format, java.lang.String location)
      Initializes content, format and location of image.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object clone()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getContent()  
      int hashCode()  
      void setContent​(java.lang.String content)  
      • Methods inherited from class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation

        getFormat, getLocation, setFormat, setLocation
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageInformation

        public ImageInformation​(@CheckForNull
                                java.lang.String content,
                                @CheckForNull
                                java.lang.String format,
                                @CheckForNull
                                java.lang.String location)
        Initializes content, format and location of image.
        Parameters:
        content - content of image. Use Utilities.toString(byte[]) to convert bytes to a string
        format - format of image(like gif, png and etc)
        location - location of image
        See Also:
        Utilities.toString(byte[])
      • ImageInformation

        public ImageInformation​(java.lang.String content,
                                java.lang.String format)
        Initializes content, format of image.
        Parameters:
        content - content of image. Use Utilities.toString(byte[]) to convert bytes to a string.
        format - format of image(like gif, png and etc).
        See Also:
        Utilities.toString(byte[])
      • ImageInformation

        public ImageInformation()
        Sets content, format and image to nulls.
    • Method Detail

      • setContent

        public void setContent​(@CheckForNull
                               java.lang.String content)
      • getContent

        @CheckForNull
        public java.lang.String getContent()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation
      • clone

        protected java.lang.Object clone()
        Overrides:
        clone in class com.nomagic.magicdraw.icons.ElementImages.AbstractElementImageInformation