modules/graphics/src/main/java/com/sun/prism/Presentable.java

Print this page




  40      * {@link #present()}.
  41      *
  42      * @param pState The presentation state for the upcoming pulse
  43      * @return true if the caller should recreate the Presentable
  44      */
  45     public boolean lockResources(PresentableState pState);
  46 
  47     /**
  48      * display the indicated region to the user.
  49      * @param dirtyregion display region or null for full area
  50      * @return true if the provided region was successfully displayed,
  51      * false otherwise
  52      */
  53     public boolean prepare(Rectangle dirtyregion);
  54 
  55     /**
  56      * present the prepared region to the user.
  57      */
  58     public boolean present();
  59 
  60     public float getPixelScaleFactor();

  61 }


  40      * {@link #present()}.
  41      *
  42      * @param pState The presentation state for the upcoming pulse
  43      * @return true if the caller should recreate the Presentable
  44      */
  45     public boolean lockResources(PresentableState pState);
  46 
  47     /**
  48      * display the indicated region to the user.
  49      * @param dirtyregion display region or null for full area
  50      * @return true if the provided region was successfully displayed,
  51      * false otherwise
  52      */
  53     public boolean prepare(Rectangle dirtyregion);
  54 
  55     /**
  56      * present the prepared region to the user.
  57      */
  58     public boolean present();
  59 
  60     public float getPixelScaleFactorX();
  61     public float getPixelScaleFactorY();
  62 }