public static class G2DRenderTargetBuilder.G2DGraphics extends Object
| Modifier and Type | Field and Description |
|---|---|
private Color |
background |
private Graphics2D |
g2 |
private int |
height |
private Image |
image |
private boolean |
inited |
private PreviewController |
previewController |
private float |
scaling |
private Vector |
trans |
private int |
width |
| Constructor and Description |
|---|
G2DRenderTargetBuilder.G2DGraphics(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
private float |
computeDefaultScaling(CanvasSize cs) |
private void |
fit(CanvasSize cs) |
Graphics2D |
getGraphics() |
int |
getHeight() |
Image |
getImage() |
float |
getScaling() |
private CanvasSize |
getSheetCanvasSize(PreviewModel m) |
Vector |
getTranslate() |
int |
getWidth() |
void |
refresh(PreviewModel m,
RenderTarget target) |
void |
reset() |
void |
setScaling(float scaling) |
private final PreviewController previewController
private boolean inited
private final Image image
private final int width
private final int height
private final Graphics2D g2
private final Vector trans
private float scaling
private Color background
public G2DRenderTargetBuilder.G2DGraphics(int width,
int height)
public void refresh(PreviewModel m, RenderTarget target)
public Vector getTranslate()
public float getScaling()
public void setScaling(float scaling)
public Graphics2D getGraphics()
public Image getImage()
public int getWidth()
public int getHeight()
public void reset()
private CanvasSize getSheetCanvasSize(PreviewModel m)
private float computeDefaultScaling(CanvasSize cs)
private void fit(CanvasSize cs)
Copyright © 2007–2016 Gephi Consortium. All rights reserved.