ch.randelshofer.quaqua.border
Class AbstractFocusedPainter
java.lang.Object
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
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 |
AbstractFocusedPainter
public AbstractFocusedPainter()
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)