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 Graphics2D
getGraphics()
Returns the current graphics object.int
getHeight()
Image
getImage()
float
getScaling()
Vector
getTranslate()
int
getWidth()
void
refresh()
Redraw the Processing canvasvoid
reset()
void
resize(int width, int height)
void
setMoving(boolean moving)
void
setScaling(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
-
-