com.rapidminer.gui.look.painters
Class AbstractCachedPainter

java.lang.Object
  extended by com.rapidminer.gui.look.painters.AbstractCachedPainter
Direct Known Subclasses:
ButtonBorderPainter, ButtonPainter, CheckboxPainter, ComboBoxPainter, DeterminateProgressBarPainter, InDeterminateProgressBarPainter, MenuBackgroundPainter, MenuBarBackgroundPainter, MenuItemFadingPainter, MenuSeparatorPainter, RadioButtonPainter

public abstract class AbstractCachedPainter
extends java.lang.Object

A cached painter.

Author:
Ingo Mierswa

Field Summary
protected static java.util.Map<java.lang.Object,Cache> cacheMap
           
 
Constructor Summary
AbstractCachedPainter(int cacheCount)
           
 
Method Summary
static void clearCache()
           
protected  java.awt.Image createImage(java.awt.Component c, int w, int h, java.awt.GraphicsConfiguration config)
           
 void paint(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h, java.lang.Object[] args)
           
protected  void paintImage(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h, java.awt.Image image, java.lang.Object[] args)
           
protected abstract  void paintToImage(java.awt.Component c, java.awt.Graphics g, int w, int h, java.lang.Object[] args)
          Paints the representation to cache to the supplied Graphics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheMap

protected static final java.util.Map<java.lang.Object,Cache> cacheMap
Constructor Detail

AbstractCachedPainter

public AbstractCachedPainter(int cacheCount)
Method Detail

paintToImage

protected abstract void paintToImage(java.awt.Component c,
                                     java.awt.Graphics g,
                                     int w,
                                     int h,
                                     java.lang.Object[] args)
Paints the representation to cache to the supplied Graphics.


paint

public void paint(java.awt.Component c,
                  java.awt.Graphics g,
                  int x,
                  int y,
                  int w,
                  int h,
                  java.lang.Object[] args)

paintImage

protected void paintImage(java.awt.Component c,
                          java.awt.Graphics g,
                          int x,
                          int y,
                          int w,
                          int h,
                          java.awt.Image image,
                          java.lang.Object[] args)

createImage

protected java.awt.Image createImage(java.awt.Component c,
                                     int w,
                                     int h,
                                     java.awt.GraphicsConfiguration config)

clearCache

public static void clearCache()


Copyright © 2001-2009 by Rapid-I