< prev index next >

src/java.desktop/share/classes/sun/java2d/pipe/hw/AccelGraphicsConfig.java

Print this page




  53      * @param type requested accelerated surface type as specified by constants
  54      * in AccelSurface interface
  55      * @return a {@code VolatileImage} backed up by requested accelerated
  56      * surface type or null
  57      * @throws IllegalArgumentException if the transparency is not a valid value
  58      * @see AccelSurface#TEXTURE
  59      * @see AccelSurface#RT_PLAIN
  60      * @see AccelSurface#RT_TEXTURE
  61      */
  62     public VolatileImage createCompatibleVolatileImage(int width, int height,
  63                                                        int transparency,
  64                                                        int type);
  65     /**
  66      * Returns object representing capabilities of the context associated
  67      * with this {@code AccelGraphicsConfig}.
  68      *
  69      * @return ContextCapabilities object representing caps
  70      * @see ContextCapabilities
  71      */
  72     public ContextCapabilities getContextCapabilities();
  73 
  74     /**
  75      * Adds an {@code AccelDeviceEventListener} to listen to accelerated
  76      * device's (which is associated with this {@code AccelGraphicsConfig})
  77      * events.
  78      *
  79      * Note: a hard link to the listener may be kept so it must be explicitly
  80      * removed via {@link #removeDeviceEventListener}.
  81      *
  82      * @param l the listener
  83      * @see AccelDeviceEventListener
  84      */
  85     public void addDeviceEventListener(AccelDeviceEventListener l);
  86 
  87     /**
  88      * Removes an {@code AccelDeviceEventListener} from the list of listeners
  89      * for this device's events.
  90      *
  91      * @param l the listener
  92      * @see AccelDeviceEventListener
  93      */
  94     public void removeDeviceEventListener(AccelDeviceEventListener l);
  95 }


  53      * @param type requested accelerated surface type as specified by constants
  54      * in AccelSurface interface
  55      * @return a {@code VolatileImage} backed up by requested accelerated
  56      * surface type or null
  57      * @throws IllegalArgumentException if the transparency is not a valid value
  58      * @see AccelSurface#TEXTURE
  59      * @see AccelSurface#RT_PLAIN
  60      * @see AccelSurface#RT_TEXTURE
  61      */
  62     public VolatileImage createCompatibleVolatileImage(int width, int height,
  63                                                        int transparency,
  64                                                        int type);
  65     /**
  66      * Returns object representing capabilities of the context associated
  67      * with this {@code AccelGraphicsConfig}.
  68      *
  69      * @return ContextCapabilities object representing caps
  70      * @see ContextCapabilities
  71      */
  72     public ContextCapabilities getContextCapabilities();






















  73 }
< prev index next >