org.jhotdraw.gui.plaf.palette
Class PaletteButtonBorder

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

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

PaletteButtonBorder.

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

Field Summary
private static java.awt.Color[] enabledStopColors
           
private static float[] enabledStops
           
private static java.awt.Color[] selectedStopColors
           
private static float[] selectedStops
           
 
Constructor Summary
PaletteButtonBorder()
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
private  java.lang.String getSegmentPosition(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(javax.swing.AbstractButton c, java.awt.Graphics gr, int x, int y, int width, int height)
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, 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

selectedStops

private static final float[] selectedStops

selectedStopColors

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

PaletteButtonBorder

public PaletteButtonBorder()
Method Detail

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

paintBorder

public void paintBorder(javax.swing.AbstractButton c,
                        java.awt.Graphics gr,
                        int x,
                        int y,
                        int width,
                        int height)

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