Class DataImage


  • public abstract class DataImage
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DataImage()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String getImageFileType()
      Returns the type of the underlying image data, suitable for ImageIO.write(java.awt.image.RenderedImage, String, java.io.File)'s formatName parameter.
      abstract javax.swing.ImageIcon getImageIcon()
      Return image icon
      void setDescription​(java.lang.String description)
      Set string description (returned by toString)
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DataImage

        public DataImage()
    • Method Detail

      • getImageIcon

        public abstract javax.swing.ImageIcon getImageIcon()
        Return image icon
        Returns:
        image object
      • getImageFileType

        public abstract java.lang.String getImageFileType()
        Returns the type of the underlying image data, suitable for ImageIO.write(java.awt.image.RenderedImage, String, java.io.File)'s formatName parameter.
        Returns:
        String image format type, ie. "png", "gif", "bmp"
      • setDescription

        public void setDescription​(java.lang.String description)
        Set string description (returned by toString)
        Parameters:
        description -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object