public static class G2DRenderTargetBuilder.G2DTargetImpl extends AbstractRenderTarget implements G2DTarget
G2D_TARGET, PDF_TARGET, SVG_TARGET| Constructor and Description |
|---|
G2DTargetImpl(PreviewModel model,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
Graphics2D |
getGraphics()
Returns the current graphics object.
|
int |
getHeight() |
Image |
getImage() |
float |
getScaling() |
Vector |
getTranslate() |
int |
getWidth() |
void |
refresh()
Redraw the Processing canvas
|
void |
reset() |
void |
resize(int width,
int height) |
void |
setMoving(boolean moving) |
void |
setScaling(float scaling) |
cancel, getProgressTicket, isCancelled, setProgressTicketpublic G2DTargetImpl(PreviewModel model, int width, int height)
public Graphics2D getGraphics()
G2DTargetgetGraphics in interface G2DTargetpublic Vector getTranslate()
getTranslate in interface G2DTargetpublic float getScaling()
getScaling in interface G2DTargetpublic void setScaling(float scaling)
setScaling in interface G2DTargetCopyright © 2007–2017. All rights reserved.