Lines Matching defs:Painter
30 * <p>A painting delegate. The Painter interface defines exactly one method,
36 * <p><code>Painter</code>s are simply encapsulations of Java2D code and make
37 * it fairly trivial to reuse existing <code>Painter</code>s or to combine
39 * such that if you can't find a <code>Painter</code> that does what you need,
40 * you can write one with minimal effort. Writing a <code>Painter</code> requires
43 * <p>A <code>Painter</code> may be created with a type parameter. This type will be
45 * <code>Painter</code> that only works with subclasses of {@link java.awt.Component}.
46 * In that case, when the <code>Painter</code> is declared, you may declare that
50 * Painter<Component> p = new Painter<Component>() {
63 public interface Painter<T> {
73 * graphics may or may not be respected by the <code>Painter</code> implementation.</p>
76 * For example, it could be of type <code>Component</code>. A <code>Painter</code>
81 * <p>Generally, to enhance reusability, most standard <code>Painter</code>s ignore
87 * width and height that the <code>Painter</code> should paint into. More
92 * <p>For example, suppose I have a <code>Painter</code> implementation that draws
94 * painted region. Thus, if I use this <code>Painter</code> to paint a 500 x 500
97 * <code>Painter</code> to paint a region that is 20x20 in size. This region would