Package ghidra.program.model.data
Class DataImage
- java.lang.Object
-
- ghidra.program.model.data.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 forImageIO.write(java.awt.image.RenderedImage, String, java.io.File)
's formatName parameter.abstract javax.swing.ImageIcon
getImageIcon()
Return image iconvoid
setDescription(java.lang.String description)
Set string description (returned by toString)java.lang.String
toString()
-
-
-
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 forImageIO.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 classjava.lang.Object
-
-