CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.gui.border
Class PlacardButtonBorder

java.lang.Object
  extended by ch.randelshofer.gui.border.PlacardButtonBorder
All Implemented Interfaces:
javax.swing.border.Border

public class PlacardButtonBorder
extends java.lang.Object
implements javax.swing.border.Border

Quaqua14PlacardButtonBorder.

Version:
1.0 2006-01-04 Created.
Author:
Werner Randelshofer

Constructor Summary
PlacardButtonBorder(int orientation)
          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()
           
protected  void paint(java.awt.Component c, java.awt.Graphics gr, int x, int y, int width, int height, java.awt.Color[] args)
           
 void paintBorder(java.awt.Component c, java.awt.Graphics gr, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlacardButtonBorder

public PlacardButtonBorder(int orientation)
Creates a new instance of QuaquaSquareButtonBorder

Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border

createImage

protected java.awt.Image createImage(java.awt.Component c,
                                     int w,
                                     int h,
                                     java.awt.GraphicsConfiguration config)
Creates the image to cache. This returns a translucent image.

Parameters:
c - Component painting to
w - Width of image to create
h - Height to image to create
config - GraphicsConfiguration that will be rendered to, this may be null.

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics gr,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border

paint

protected void paint(java.awt.Component c,
                     java.awt.Graphics gr,
                     int x,
                     int y,
                     int width,
                     int height,
                     java.awt.Color[] args)

(c) Werner Randelshofer.
All rights reserved.