org.jhotdraw.gui.plaf.palette
Class PaletteTextComponentBorder

java.lang.Object
  extended by org.jhotdraw.gui.plaf.palette.PaletteTextComponentBorder
All Implemented Interfaces:
javax.swing.border.Border, javax.swing.plaf.UIResource

public class PaletteTextComponentBorder
extends java.lang.Object
implements javax.swing.border.Border, javax.swing.plaf.UIResource

PaletteTextComponentBorder.

Author:
Werner Randelshofer  @version $Id: PaletteTextComponentBorder.java 591 2009-12-18 22:54:10Z rawcoder $

Field Summary
private static java.awt.Color[] enabledStopColors
           
private static float[] enabledStops
           
 
Constructor Summary
PaletteTextComponentBorder()
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
private  java.lang.String getSegmentPosition(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 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
 

Field Detail

enabledStops

private static final float[] enabledStops

enabledStopColors

private static final java.awt.Color[] enabledStopColors
Constructor Detail

PaletteTextComponentBorder

public PaletteTextComponentBorder()
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

getSegmentPosition

private java.lang.String getSegmentPosition(java.awt.Component c)

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