Package adams.data.image
Class BufferedImageContainer
- java.lang.Object
-
- adams.data.container.AbstractSimpleContainer<T>
-
- adams.data.image.AbstractImageContainer<BufferedImage>
-
- adams.data.image.BufferedImageContainer
-
- All Implemented Interfaces:
CloneHandler<AbstractSimpleContainer<BufferedImage>>,UniqueIDHandler,BufferedImageSupporter,MutableNotesHandler,NotesHandler,MutableReportHandler<Report>,ReportHandler<Report>,Serializable
- Direct Known Subclasses:
BufferedImageBitmaskContainer
public class BufferedImageContainer extends AbstractImageContainer<BufferedImage>
Image wrapper around a BufferedImage used by JAI.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.image.AbstractImageContainer
FIELD_FILENAME, FIELD_NAME, FIELD_PATH
-
Fields inherited from class adams.data.container.AbstractSimpleContainer
m_Content, m_Notes, m_Report, m_UUID
-
-
Constructor Summary
Constructors Constructor Description BufferedImageContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BufferedImagecloneContent()Returns a clone of the image.intgetHeight()Returns the height of the image.intgetWidth()Returns the width of the image.BufferedImagetoBufferedImage()Turns the image into a buffered image.StringtoString()Returns a string representation of the container.-
Methods inherited from class adams.data.image.AbstractImageContainer
getImage, setImage
-
Methods inherited from class adams.data.container.AbstractSimpleContainer
getClone, getContent, getHeader, getNotes, getReport, getUniqueID, hasReport, initialize, setContent, setNotes, setReport
-
-
-
-
Method Detail
-
getWidth
public int getWidth()
Returns the width of the image.- Specified by:
getWidthin classAbstractImageContainer<BufferedImage>- Returns:
- the width
-
getHeight
public int getHeight()
Returns the height of the image.- Specified by:
getHeightin classAbstractImageContainer<BufferedImage>- Returns:
- the height
-
cloneContent
protected BufferedImage cloneContent()
Returns a clone of the image.- Specified by:
cloneContentin classAbstractSimpleContainer<BufferedImage>- Returns:
- the clone
-
toBufferedImage
public BufferedImage toBufferedImage()
Turns the image into a buffered image.- Specified by:
toBufferedImagein interfaceBufferedImageSupporter- Specified by:
toBufferedImagein classAbstractImageContainer<BufferedImage>- Returns:
- the buffered image
-
toString
public String toString()
Returns a string representation of the container.- Overrides:
toStringin classAbstractSimpleContainer<BufferedImage>- Returns:
- the string representation
-
-