- java.lang.Object
-
- io.annot8.testing.testimpl.AbstractTestContent<BufferedImage>
-
- io.annot8.testing.testimpl.content.TestImage
-
- All Implemented Interfaces:
io.annot8.api.data.Content<BufferedImage>,io.annot8.api.helpers.WithDescription,io.annot8.api.helpers.WithId,io.annot8.api.helpers.WithProperties,Image
public class TestImage extends AbstractTestContent<BufferedImage> implements Image
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestImage.Builderstatic classTestImage.BuilderFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Image>getContentClass()intgetHeight()intgetWidth()voidsaveAsJpg(OutputStream outputStream)voidsaveAsPng(OutputStream outputStream)-
Methods inherited from class io.annot8.testing.testimpl.AbstractTestContent
getAnnotations, getData, getDataClass, getDescription, getId, getItem, getProperties, setAnnotations, setData, setData, setDescription, setId, setItem, setProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
TestImage
public TestImage()
-
TestImage
public TestImage(io.annot8.api.data.Item item)
-
TestImage
public TestImage(io.annot8.api.data.Item item, String id, String description, io.annot8.api.properties.ImmutableProperties properties, Supplier<BufferedImage> data)
-
-
Method Detail
-
getContentClass
public Class<Image> getContentClass()
- Specified by:
getContentClassin interfaceio.annot8.api.data.Content<BufferedImage>
-
saveAsJpg
public void saveAsJpg(OutputStream outputStream) throws IOException
- Specified by:
saveAsJpgin interfaceImage- Throws:
IOException
-
saveAsPng
public void saveAsPng(OutputStream outputStream) throws IOException
- Specified by:
saveAsPngin interfaceImage- Throws:
IOException
-
-