|
Quaqua 7.4.2 2011-07-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.randelshofer.quaqua.util.CachedPainter
ch.randelshofer.quaqua.QuaquaPlacardButtonBorder
public class QuaquaPlacardButtonBorder
QuaquaPlacardButtonBorder.
Constructor Summary | |
---|---|
QuaquaPlacardButtonBorder()
Creates a new instance of QuaquaSquareButtonBorder |
Method Summary | |
---|---|
protected java.awt.Image |
createImage(java.awt.Component c,
int w,
int h,
java.awt.GraphicsConfiguration config)
Creates the image to cache. |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
boolean |
isBorderOpaque()
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics gr,
int x,
int y,
int width,
int height)
|
protected void |
paintToImage(java.awt.Component c,
java.awt.Graphics gr,
int width,
int height,
java.lang.Object[] args)
Paints the representation to cache to the supplied Graphics. |
Methods inherited from class ch.randelshofer.quaqua.util.CachedPainter |
---|
paint, paintImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuaquaPlacardButtonBorder()
Method Detail |
---|
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
public boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border
protected java.awt.Image createImage(java.awt.Component c, int w, int h, java.awt.GraphicsConfiguration config)
createImage
in class CachedPainter
c
- Component painting tow
- Width of image to createh
- Height to image to createconfig
- GraphicsConfiguration that will be
rendered to, this may be null.public void paintBorder(java.awt.Component c, java.awt.Graphics gr, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
protected void paintToImage(java.awt.Component c, java.awt.Graphics gr, int width, int height, java.lang.Object[] args)
CachedPainter
paintToImage
in class CachedPainter
c
- Component painting togr
- Graphics to paint towidth
- Width to paint toheight
- Height to paint toargs
- Arguments supplied to paint
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |