Package org.gephi.preview.api
Interface G2DTarget
-
- All Superinterfaces:
RenderTarget
public interface G2DTarget extends RenderTarget
Rendering target to Java2d.Users should use
getGraphics()method for drawing.- Author:
- Mathieu Bastian
-
-
Field Summary
-
Fields inherited from interface org.gephi.preview.api.RenderTarget
G2D_TARGET, PDF_TARGET, SVG_TARGET
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Graphics2DgetGraphics()Returns the current graphics object.intgetHeight()ImagegetImage()floatgetScaling()VectorgetTranslate()intgetWidth()voidrefresh()Redraw the Processing canvasvoidreset()voidresize(int width, int height)voidsetMoving(boolean moving)voidsetScaling(float scaling)
-
-
-
Method Detail
-
getGraphics
Graphics2D getGraphics()
Returns the current graphics object. Use this method to draw to the canvas.- Returns:
- the current graphics to draw to
-
getImage
Image getImage()
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
resize
void resize(int width, int height)
-
setMoving
void setMoving(boolean moving)
-
getTranslate
Vector getTranslate()
-
getScaling
float getScaling()
-
setScaling
void setScaling(float scaling)
-
reset
void reset()
-
refresh
void refresh()
Redraw the Processing canvas
-
-