Class BackendJ2D

java.lang.Object
org.graphstream.ui.swing.BackendJ2D
All Implemented Interfaces:
Backend, org.graphstream.ui.view.camera.Backend

public class BackendJ2D extends Object implements Backend
  • Constructor Details

    • BackendJ2D

      public BackendJ2D()
  • Method Details

    • setGraphics2D

      public void setGraphics2D(Graphics2D g)
    • open

      public void open(Container drawingSurface)
      Description copied from interface: Backend
      Called before any prior use of this back-end.
      Specified by:
      open in interface Backend
    • close

      public void close()
      Description copied from interface: Backend
      Called after finished using this object.
      Specified by:
      close in interface Backend
    • prepareNewFrame

      public void prepareNewFrame(Graphics2D g)
      Description copied from interface: Backend
      Setup the back-end for a new rendering session.
      Specified by:
      prepareNewFrame in interface Backend
    • transform

      public org.graphstream.ui.geom.Point3 transform(double x, double y, double z)
      Specified by:
      transform in interface org.graphstream.ui.view.camera.Backend
    • inverseTransform

      public org.graphstream.ui.geom.Point3 inverseTransform(double x, double y, double z)
      Specified by:
      inverseTransform in interface org.graphstream.ui.view.camera.Backend
    • transform

      public org.graphstream.ui.geom.Point3 transform(org.graphstream.ui.geom.Point3 p)
      Specified by:
      transform in interface org.graphstream.ui.view.camera.Backend
    • inverseTransform

      public org.graphstream.ui.geom.Point3 inverseTransform(org.graphstream.ui.geom.Point3 p)
      Specified by:
      inverseTransform in interface org.graphstream.ui.view.camera.Backend
    • pushTransform

      public void pushTransform()
      Specified by:
      pushTransform in interface org.graphstream.ui.view.camera.Backend
    • beginTransform

      public void beginTransform()
      Specified by:
      beginTransform in interface org.graphstream.ui.view.camera.Backend
    • setIdentity

      public void setIdentity()
      Specified by:
      setIdentity in interface org.graphstream.ui.view.camera.Backend
    • translate

      public void translate(double tx, double ty, double tz)
      Specified by:
      translate in interface org.graphstream.ui.view.camera.Backend
    • rotate

      public void rotate(double angle, double ax, double ay, double az)
      Specified by:
      rotate in interface org.graphstream.ui.view.camera.Backend
    • scale

      public void scale(double sx, double sy, double sz)
      Specified by:
      scale in interface org.graphstream.ui.view.camera.Backend
    • endTransform

      public void endTransform()
      Specified by:
      endTransform in interface org.graphstream.ui.view.camera.Backend
    • popTransform

      public void popTransform()
      Specified by:
      popTransform in interface org.graphstream.ui.view.camera.Backend
    • setAntialias

      public void setAntialias(Boolean on)
      Specified by:
      setAntialias in interface org.graphstream.ui.view.camera.Backend
    • setQuality

      public void setQuality(Boolean on)
      Specified by:
      setQuality in interface org.graphstream.ui.view.camera.Backend
    • graphics2D

      public Graphics2D graphics2D()
      Description copied from interface: Backend
      The Java2D graphics.
      Specified by:
      graphics2D in interface Backend
    • chooseNodeShape

      public Shape chooseNodeShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
      Specified by:
      chooseNodeShape in interface Backend
    • chooseEdgeShape

      public Shape chooseEdgeShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
      Specified by:
      chooseEdgeShape in interface Backend
    • chooseEdgeArrowShape

      public Shape chooseEdgeArrowShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
      Specified by:
      chooseEdgeArrowShape in interface Backend
    • chooseSpriteShape

      public Shape chooseSpriteShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
      Specified by:
      chooseSpriteShape in interface Backend
    • chooseGraphBackgroundRenderer

      public GraphBackgroundRenderer chooseGraphBackgroundRenderer()
      Specified by:
      chooseGraphBackgroundRenderer in interface Backend
    • drawingSurface

      public Container drawingSurface()
      Description copied from interface: Backend
      The drawing surface. The drawing surface may be different than the one passed as argument to open(), the back-end is free to create a new surface as it sees fit.
      Specified by:
      drawingSurface in interface Backend