Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua.border
Class AbstractFocusedPainter

java.lang.Object
  extended by ch.randelshofer.quaqua.border.AbstractFocusedPainter
Direct Known Subclasses:
FocusedBorder, FocusedIcon

public abstract class AbstractFocusedPainter
extends java.lang.Object

FocusedBorder.

Version:
1.0 2011-07-26 Created.
Author:
Werner Randelshofer

Constructor Summary
AbstractFocusedPainter()
           
 
Method Summary
protected abstract  void doPaint(java.awt.Component c, java.awt.Graphics cgx, int x, int y, int width, int height)
           
protected  void paint(java.awt.Component c, java.awt.Graphics cgx, int x, int y, int width, int height)
           
static void paintFocusRing(java.awt.image.BufferedImage borderImg, java.awt.image.BufferedImage focusImg, java.awt.Graphics cgx, int x, int y)
          Paints an focus ring on cgx.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFocusedPainter

public AbstractFocusedPainter()
Method Detail

paint

protected void paint(java.awt.Component c,
                     java.awt.Graphics cgx,
                     int x,
                     int y,
                     int width,
                     int height)

paintFocusRing

public static void paintFocusRing(java.awt.image.BufferedImage borderImg,
                                  java.awt.image.BufferedImage focusImg,
                                  java.awt.Graphics cgx,
                                  int x,
                                  int y)
Paints an focus ring on cgx.

Parameters:
borderImg - The input image which is used to compute the border.
focusImg - A temporary image. Must have the same size as borderImg.
cgx - The output object.

doPaint

protected abstract void doPaint(java.awt.Component c,
                                java.awt.Graphics cgx,
                                int x,
                                int y,
                                int width,
                                int height)

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.