Class ImageShapeExporter
- java.lang.Object
-
- io.github.applecommander.bastools.api.shapes.exporters.ImageShapeExporter
-
- All Implemented Interfaces:
ShapeExporter
public class ImageShapeExporter extends java.lang.Object implements ShapeExporter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageShapeExporter.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawBorders(java.awt.Graphics g, int shapeWidth, int shapeHeight, int imageWidth, int imageHeight)voiddrawShapeAt(java.awt.Graphics g, BitmapShape shape, java.awt.Point origin)voidexport(Shape shape, java.io.OutputStream outputStream)Export a single shape to the OutputStream.voidexport(ShapeTable shapeTable, java.io.OutputStream outputStream)Export the entire shape table to the OutputStream.voidexport(java.util.List<BitmapShape> blist, java.io.OutputStream outputStream)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.applecommander.bastools.api.shapes.ShapeExporter
export, export, export, export
-
-
-
-
Method Detail
-
export
public void export(Shape shape, java.io.OutputStream outputStream) throws java.io.IOException
Description copied from interface:ShapeExporterExport a single shape to the OutputStream.- Specified by:
exportin interfaceShapeExporter- Throws:
java.io.IOException
-
export
public void export(ShapeTable shapeTable, java.io.OutputStream outputStream) throws java.io.IOException
Description copied from interface:ShapeExporterExport the entire shape table to the OutputStream.- Specified by:
exportin interfaceShapeExporter- Throws:
java.io.IOException
-
export
public void export(java.util.List<BitmapShape> blist, java.io.OutputStream outputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
drawBorders
public void drawBorders(java.awt.Graphics g, int shapeWidth, int shapeHeight, int imageWidth, int imageHeight)
-
drawShapeAt
public void drawShapeAt(java.awt.Graphics g, BitmapShape shape, java.awt.Point origin)
-
-