Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaToolBarButtonStateBorder

java.lang.Object
  extended by ch.randelshofer.quaqua.border.ButtonStateBorder
      extended by ch.randelshofer.quaqua.QuaquaToolBarButtonStateBorder
All Implemented Interfaces:
javax.swing.border.Border

public class QuaquaToolBarButtonStateBorder
extends ButtonStateBorder

ToolbarButtonStateBorder.

Version:
1.1 2005-11-30 Constructor with tiled image added.
1.0 29 March 2005 Created.
Author:
Werner Randelshofer

Nested Class Summary
 
Nested classes/interfaces inherited from class ch.randelshofer.quaqua.border.ButtonStateBorder
ButtonStateBorder.UIResource
 
Field Summary
 
Fields inherited from class ch.randelshofer.quaqua.border.ButtonStateBorder
D, DEFAULT, DI, DIS, DS, E, EP, EPS, ES, I, IS
 
Constructor Summary
QuaquaToolBarButtonStateBorder(javax.swing.border.Border[] borders, boolean isRollover)
          Creates a new instance.
QuaquaToolBarButtonStateBorder(javax.swing.border.Border e, javax.swing.border.Border ep, javax.swing.border.Border es, javax.swing.border.Border eps, javax.swing.border.Border d, javax.swing.border.Border ds, javax.swing.border.Border i, javax.swing.border.Border is, javax.swing.border.Border di, javax.swing.border.Border dis, boolean isRollover)
           
QuaquaToolBarButtonStateBorder(java.awt.Image[] images, java.awt.Insets borderInsets, java.awt.Insets imageInsets, boolean fill, boolean isRollover)
          Creates a new instance.
QuaquaToolBarButtonStateBorder(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly, java.awt.Insets imageInsets, java.awt.Insets borderInsets, boolean fill, boolean isRollover)
          Creates a new instance.
 
Method Summary
 void paintBorder(java.awt.Component c, java.awt.Graphics gr, int x, int y, int width, int height)
           
 
Methods inherited from class ch.randelshofer.quaqua.border.ButtonStateBorder
getBorder, getBorderInsets, isBorderOpaque, setBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaToolBarButtonStateBorder

public QuaquaToolBarButtonStateBorder(javax.swing.border.Border e,
                                      javax.swing.border.Border ep,
                                      javax.swing.border.Border es,
                                      javax.swing.border.Border eps,
                                      javax.swing.border.Border d,
                                      javax.swing.border.Border ds,
                                      javax.swing.border.Border i,
                                      javax.swing.border.Border is,
                                      javax.swing.border.Border di,
                                      javax.swing.border.Border dis,
                                      boolean isRollover)

QuaquaToolBarButtonStateBorder

public QuaquaToolBarButtonStateBorder(javax.swing.border.Border[] borders,
                                      boolean isRollover)
Creates a new instance. All borders must have the same insets.


QuaquaToolBarButtonStateBorder

public QuaquaToolBarButtonStateBorder(java.awt.Image[] images,
                                      java.awt.Insets borderInsets,
                                      java.awt.Insets imageInsets,
                                      boolean fill,
                                      boolean isRollover)
Creates a new instance. All icons must have the same dimensions.


QuaquaToolBarButtonStateBorder

public QuaquaToolBarButtonStateBorder(java.awt.Image tiledImage,
                                      int tileCount,
                                      boolean isTiledHorizontaly,
                                      java.awt.Insets imageInsets,
                                      java.awt.Insets borderInsets,
                                      boolean fill,
                                      boolean isRollover)
Creates a new instance. All borders must have the same dimensions.

Method Detail

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
Overrides:
paintBorder in class ButtonStateBorder

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