Documentation of 'visad.java2d.DisplayImplJ2D' Java class
DisplayImplJ2D
visad.java2d

Class DisplayImplJ2D

  • All Implemented Interfaces:
    java.lang.Runnable, java.util.EventListener, Action, Display, LocalDisplay, ThingChangedListener


    public class DisplayImplJ2D
    extends DisplayImpl
    DisplayImplJ2D is the VisAD class for displays that use Java 3D. It is runnable.

    DisplayImplJ2D is not Serializable and should not be copied between JVMs.

    • Constructor Detail

      • DisplayImplJ2D

        public DisplayImplJ2D(java.lang.String name)
                       throws VisADException,
                              java.rmi.RemoteException
        construct a DisplayImpl for Java2D with the default DisplayRenderer, in a JFC JPanel
        Throws:
        VisADException
        java.rmi.RemoteException
      • DisplayImplJ2D

        public DisplayImplJ2D(java.lang.String name,
                              DisplayRendererJ2D renderer)
                       throws VisADException,
                              java.rmi.RemoteException
        construct a DisplayImpl for Java2D with a non-default DisplayRenderer, in a JFC JPanel
        Throws:
        VisADException
        java.rmi.RemoteException
      • DisplayImplJ2D

        public DisplayImplJ2D(java.lang.String name,
                              int api)
                       throws VisADException,
                              java.rmi.RemoteException
        constructor with default DisplayRenderer
        Throws:
        VisADException
        java.rmi.RemoteException
      • DisplayImplJ2D

        public DisplayImplJ2D(java.lang.String name,
                              DisplayRendererJ2D renderer,
                              int api)
                       throws VisADException,
                              java.rmi.RemoteException
        construct a DisplayImpl for Java2D with a non-default DisplayRenderer; in a JFC JPanel if api == DisplayImplJ2D.JPANEL
        Throws:
        VisADException
        java.rmi.RemoteException
      • DisplayImplJ2D

        public DisplayImplJ2D(java.lang.String name,
                              int width,
                              int height)
                       throws VisADException,
                              java.rmi.RemoteException
        construct a DisplayImpl for Java2D for offscreen rendering, with size given by width and height; getComponent() of this returns null, but display is accesible via getImage()
        Throws:
        VisADException
        java.rmi.RemoteException
      • DisplayImplJ2D

        public DisplayImplJ2D(java.lang.String name,
                              DisplayRendererJ2D renderer,
                              int width,
                              int height)
                       throws VisADException,
                              java.rmi.RemoteException
        offscreen constructor with non-default DisplayRenderer
        Throws:
        VisADException
        java.rmi.RemoteException
      • DisplayImplJ2D

        public DisplayImplJ2D(java.lang.String name,
                              DisplayRendererJ2D renderer,
                              int api,
                              int width,
                              int height)
                       throws VisADException,
                              java.rmi.RemoteException
        most general constructor
        Throws:
        VisADException
        java.rmi.RemoteException
    • Method Detail

      • setScratch

        public void setScratch()
      • doAction

        public void doAction()
                      throws VisADException,
                             java.rmi.RemoteException
        Description copied from class: DisplayImpl
        Check if any Data need re-transform, and if so, do it. Check if auto-scaling is needed for any ScalarMaps, and if so, do it. This method does the real work of DisplayImpl.
        Overrides:
        doAction in class DisplayImpl
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • getAutoAspect

        public boolean getAutoAspect()
      • setAutoAspect

        public void setAutoAspect(boolean auto)
      • destroy

        public void destroy()
                     throws VisADException,
                            java.rmi.RemoteException
        Description copied from class: DisplayImpl
        destroy this display: clear all references to objects (so they can be garbage collected), stop all Threads and remove all links
        Specified by:
        destroy in interface Display
        Overrides:
        destroy in class DisplayImpl
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.