Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.gui.border
Class ScrollBarThumbBorder

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

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

ScrollBarThumbBorder.

Version:
1.0 2008-10-04 Created.
Author:
Werner Randelshofer, Hausmatt 10, CH-6405 Immensee

Field Summary
static int D
           
static int DEFAULT
           
static int DI
           
static int E
           
static int EP
           
static int I
           
 
Constructor Summary
ScrollBarThumbBorder(javax.swing.border.Border[] borders)
          Creates a new instance.
ScrollBarThumbBorder(javax.swing.border.Border e, javax.swing.border.Border ep, javax.swing.border.Border d, javax.swing.border.Border i, javax.swing.border.Border di)
          Creates a new instance.
ScrollBarThumbBorder(java.awt.Image[] images, java.awt.Insets imageInsets, java.awt.Insets borderInsets, boolean fill)
          Creates a new instance.
ScrollBarThumbBorder(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly, java.awt.Insets imageInsets, java.awt.Insets borderInsets, boolean fill)
          Creates a new instance.
 
Method Summary
protected  javax.swing.border.Border getBorder(java.awt.Component c)
           
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 void setBorder(int key, javax.swing.border.Border b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E

public static final int E
See Also:
Constant Field Values

EP

public static final int EP
See Also:
Constant Field Values

D

public static final int D
See Also:
Constant Field Values

I

public static final int I
See Also:
Constant Field Values

DI

public static final int DI
See Also:
Constant Field Values

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values
Constructor Detail

ScrollBarThumbBorder

public ScrollBarThumbBorder(javax.swing.border.Border e,
                            javax.swing.border.Border ep,
                            javax.swing.border.Border d,
                            javax.swing.border.Border i,
                            javax.swing.border.Border di)
Creates a new instance. All borders must have the same insets. If a border is null, nothing is drawn for this state.


ScrollBarThumbBorder

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


ScrollBarThumbBorder

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


ScrollBarThumbBorder

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

Method Detail

setBorder

public void setBorder(int key,
                      javax.swing.border.Border b)

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

paintBorder

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

getBorder

protected javax.swing.border.Border getBorder(java.awt.Component c)

Copyright 2012-02-25 Werner Randelshofer