public class BackendJ2D extends java.lang.Object implements Backend
Constructor and Description |
---|
BackendJ2D() |
Modifier and Type | Method and Description |
---|---|
void |
beginTransform() |
Shape |
chooseEdgeArrowShape(Shape oldShape,
org.graphstream.ui.graphicGraph.StyleGroup group) |
Shape |
chooseEdgeShape(Shape oldShape,
org.graphstream.ui.graphicGraph.StyleGroup group) |
GraphBackgroundRenderer |
chooseGraphBackgroundRenderer() |
Shape |
chooseNodeShape(Shape oldShape,
org.graphstream.ui.graphicGraph.StyleGroup group) |
Shape |
chooseSpriteShape(Shape oldShape,
org.graphstream.ui.graphicGraph.StyleGroup group) |
void |
close()
Called after finished using this object.
|
android.view.SurfaceView |
drawingSurface()
The drawing surface.
|
void |
endTransform() |
android.graphics.Matrix |
getMatrix()
Access to currentTransform
|
android.graphics.Matrix |
getMatrixSurface()
Setup the transformation with translation for the status bar of android
|
android.graphics.Paint |
getPaint()
The brush for Canvas
|
android.graphics.Canvas |
graphics2D()
The Java2D graphics.
|
org.graphstream.ui.geom.Point3 |
inverseTransform(double x,
double y,
double z) |
org.graphstream.ui.geom.Point3 |
inverseTransform(org.graphstream.ui.geom.Point3 p) |
void |
open(android.view.SurfaceView drawingSurface)
Called before any prior use of this back-end.
|
void |
popTransform() |
void |
prepareNewFrame(android.graphics.Canvas g)
Setup the back-end for a new rendering session.
|
void |
pushTransform() |
void |
rotate(double angle,
double ax,
double ay,
double az) |
void |
scale(double sx,
double sy,
double sz) |
void |
setAntialias(java.lang.Boolean on) |
void |
setCanvas(android.graphics.Canvas g) |
void |
setIdentity() |
void |
setMatrix(android.graphics.Matrix m) |
void |
setQuality(java.lang.Boolean on) |
org.graphstream.ui.geom.Point3 |
transform(double x,
double y,
double z) |
org.graphstream.ui.geom.Point3 |
transform(org.graphstream.ui.geom.Point3 p) |
void |
translate(double tx,
double ty,
double tz) |
public void setCanvas(android.graphics.Canvas g)
public void open(android.view.SurfaceView drawingSurface)
Backend
public void close()
Backend
public void prepareNewFrame(android.graphics.Canvas g)
Backend
public android.graphics.Matrix getMatrix()
Backend
public android.graphics.Matrix getMatrixSurface()
public void setMatrix(android.graphics.Matrix m)
public org.graphstream.ui.geom.Point3 transform(double x, double y, double z)
transform
in interface org.graphstream.ui.view.camera.Backend
public org.graphstream.ui.geom.Point3 inverseTransform(double x, double y, double z)
inverseTransform
in interface org.graphstream.ui.view.camera.Backend
public org.graphstream.ui.geom.Point3 transform(org.graphstream.ui.geom.Point3 p)
transform
in interface org.graphstream.ui.view.camera.Backend
public org.graphstream.ui.geom.Point3 inverseTransform(org.graphstream.ui.geom.Point3 p)
inverseTransform
in interface org.graphstream.ui.view.camera.Backend
public void pushTransform()
pushTransform
in interface org.graphstream.ui.view.camera.Backend
public void beginTransform()
beginTransform
in interface org.graphstream.ui.view.camera.Backend
public void setIdentity()
setIdentity
in interface org.graphstream.ui.view.camera.Backend
public void translate(double tx, double ty, double tz)
translate
in interface org.graphstream.ui.view.camera.Backend
public void rotate(double angle, double ax, double ay, double az)
rotate
in interface org.graphstream.ui.view.camera.Backend
public void scale(double sx, double sy, double sz)
scale
in interface org.graphstream.ui.view.camera.Backend
public void endTransform()
endTransform
in interface org.graphstream.ui.view.camera.Backend
public void popTransform()
popTransform
in interface org.graphstream.ui.view.camera.Backend
public void setAntialias(java.lang.Boolean on)
setAntialias
in interface org.graphstream.ui.view.camera.Backend
public void setQuality(java.lang.Boolean on)
setQuality
in interface org.graphstream.ui.view.camera.Backend
public android.graphics.Canvas graphics2D()
Backend
public android.graphics.Paint getPaint()
Backend
public Shape chooseNodeShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
public Shape chooseEdgeShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
public Shape chooseEdgeArrowShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
public Shape chooseSpriteShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
public GraphBackgroundRenderer chooseGraphBackgroundRenderer()
public android.view.SurfaceView drawingSurface()
Backend