jdk/src/java.desktop/share/classes/sun/swing/CachedPainter.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 30948 0a0972d3b58d
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
    77     public CachedPainter(int cacheCount) {
    77     public CachedPainter(int cacheCount) {
    78         getCache(getClass()).setMaxCount(cacheCount);
    78         getCache(getClass()).setMaxCount(cacheCount);
    79     }
    79     }
    80 
    80 
    81     /**
    81     /**
    82      * Renders the cached image to the the passed in <code>Graphic</code>.
    82      * Renders the cached image to the passed in <code>Graphic</code>.
    83      * If there is no cached image <code>paintToImage</code> will be invoked.
    83      * If there is no cached image <code>paintToImage</code> will be invoked.
    84      * <code>paintImage</code> is invoked to paint the cached image.
    84      * <code>paintImage</code> is invoked to paint the cached image.
    85      *
    85      *
    86      * @param c Component rendering to, this may be null.
    86      * @param c Component rendering to, this may be null.
    87      * @param g Graphics to paint to
    87      * @param g Graphics to paint to