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 BufferedImage
cloneContent()
Returns a clone of the image.int
getHeight()
Returns the height of the image.int
getWidth()
Returns the width of the image.BufferedImage
toBufferedImage()
Turns the image into a buffered image.String
toString()
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:
getWidth
in classAbstractImageContainer<BufferedImage>
- Returns:
- the width
-
getHeight
public int getHeight()
Returns the height of the image.- Specified by:
getHeight
in classAbstractImageContainer<BufferedImage>
- Returns:
- the height
-
cloneContent
protected BufferedImage cloneContent()
Returns a clone of the image.- Specified by:
cloneContent
in classAbstractSimpleContainer<BufferedImage>
- Returns:
- the clone
-
toBufferedImage
public BufferedImage toBufferedImage()
Turns the image into a buffered image.- Specified by:
toBufferedImage
in interfaceBufferedImageSupporter
- Specified by:
toBufferedImage
in classAbstractImageContainer<BufferedImage>
- Returns:
- the buffered image
-
toString
public String toString()
Returns a string representation of the container.- Overrides:
toString
in classAbstractSimpleContainer<BufferedImage>
- Returns:
- the string representation
-
-