public class SwingMorphDrawer extends java.lang.Object implements MorphDrawer
Constructor and Description |
---|
SwingMorphDrawer(AppData appData) |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
copyImage(java.awt.image.BufferedImage source,
double scale)
Copy an image
|
void |
draw(BoxedMorph boxedMorph,
java.lang.Object graphicsContext,
Dim size,
boolean selectionState,
boolean showBoundingBox,
boolean clip) |
public SwingMorphDrawer(AppData appData)
public static java.awt.image.BufferedImage copyImage(java.awt.image.BufferedImage source, double scale)
source
- the image to copyscale
- the double precision scale to use.public void draw(BoxedMorph boxedMorph, java.lang.Object graphicsContext, Dim size, boolean selectionState, boolean showBoundingBox, boolean clip)
draw
in interface MorphDrawer