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)
Backendpublic void close()
Backendpublic void prepareNewFrame(android.graphics.Canvas g)
Backendpublic android.graphics.Matrix getMatrix()
Backendpublic 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.Backendpublic org.graphstream.ui.geom.Point3 inverseTransform(double x,
double y,
double z)
inverseTransform in interface org.graphstream.ui.view.camera.Backendpublic org.graphstream.ui.geom.Point3 transform(org.graphstream.ui.geom.Point3 p)
transform in interface org.graphstream.ui.view.camera.Backendpublic org.graphstream.ui.geom.Point3 inverseTransform(org.graphstream.ui.geom.Point3 p)
inverseTransform in interface org.graphstream.ui.view.camera.Backendpublic void pushTransform()
pushTransform in interface org.graphstream.ui.view.camera.Backendpublic void beginTransform()
beginTransform in interface org.graphstream.ui.view.camera.Backendpublic void setIdentity()
setIdentity in interface org.graphstream.ui.view.camera.Backendpublic void translate(double tx,
double ty,
double tz)
translate in interface org.graphstream.ui.view.camera.Backendpublic void rotate(double angle,
double ax,
double ay,
double az)
rotate in interface org.graphstream.ui.view.camera.Backendpublic void scale(double sx,
double sy,
double sz)
scale in interface org.graphstream.ui.view.camera.Backendpublic void endTransform()
endTransform in interface org.graphstream.ui.view.camera.Backendpublic void popTransform()
popTransform in interface org.graphstream.ui.view.camera.Backendpublic void setAntialias(java.lang.Boolean on)
setAntialias in interface org.graphstream.ui.view.camera.Backendpublic void setQuality(java.lang.Boolean on)
setQuality in interface org.graphstream.ui.view.camera.Backendpublic android.graphics.Canvas graphics2D()
Backendpublic android.graphics.Paint getPaint()
Backendpublic 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