< prev index next >

src/java.desktop/share/classes/java/awt/image/renderable/RenderableImage.java

Print this page




  86      * will be returned.
  87      *
  88      * @param name the name of the property to get, as a String.
  89      * @return a reference to the property Object, or the value
  90      *         java.awt.Image.UndefinedProperty.
  91      */
  92     Object getProperty(String name);
  93 
  94     /**
  95      * Returns a list of names recognized by getProperty.
  96      * @return a list of property names.
  97      */
  98     String[] getPropertyNames();
  99 
 100     /**
 101      * Returns true if successive renderings (that is, calls to
 102      * createRendering() or createScaledRendering()) with the same arguments
 103      * may produce different results.  This method may be used to
 104      * determine whether an existing rendering may be cached and
 105      * reused.  It is always safe to return true.
 106      * @return <code>true</code> if successive renderings with the
 107      *         same arguments might produce different results;
 108      *         <code>false</code> otherwise.
 109      */
 110     boolean isDynamic();
 111 
 112     /**
 113      * Gets the width in user coordinate space.  By convention, the
 114      * usual width of a RenderableImage is equal to the image's aspect
 115      * ratio (width divided by height).
 116      *
 117      * @return the width of the image in user coordinates.
 118      */
 119     float getWidth();
 120 
 121     /**
 122      * Gets the height in user coordinate space.  By convention, the
 123      * usual height of a RenderedImage is equal to 1.0F.
 124      *
 125      * @return the height of the image in user coordinates.
 126      */
 127     float getHeight();
 128 




  86      * will be returned.
  87      *
  88      * @param name the name of the property to get, as a String.
  89      * @return a reference to the property Object, or the value
  90      *         java.awt.Image.UndefinedProperty.
  91      */
  92     Object getProperty(String name);
  93 
  94     /**
  95      * Returns a list of names recognized by getProperty.
  96      * @return a list of property names.
  97      */
  98     String[] getPropertyNames();
  99 
 100     /**
 101      * Returns true if successive renderings (that is, calls to
 102      * createRendering() or createScaledRendering()) with the same arguments
 103      * may produce different results.  This method may be used to
 104      * determine whether an existing rendering may be cached and
 105      * reused.  It is always safe to return true.
 106      * @return {@code true} if successive renderings with the
 107      *         same arguments might produce different results;
 108      *         {@code false} otherwise.
 109      */
 110     boolean isDynamic();
 111 
 112     /**
 113      * Gets the width in user coordinate space.  By convention, the
 114      * usual width of a RenderableImage is equal to the image's aspect
 115      * ratio (width divided by height).
 116      *
 117      * @return the width of the image in user coordinates.
 118      */
 119     float getWidth();
 120 
 121     /**
 122      * Gets the height in user coordinate space.  By convention, the
 123      * usual height of a RenderedImage is equal to 1.0F.
 124      *
 125      * @return the height of the image in user coordinates.
 126      */
 127     float getHeight();
 128 


< prev index next >