Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaTableHeaderBorder

java.lang.Object
  extended by ch.randelshofer.quaqua.QuaquaTableHeaderBorder
All Implemented Interfaces:
BackgroundBorder, javax.swing.border.Border
Direct Known Subclasses:
QuaquaTableHeaderBorder.UIResource

public class QuaquaTableHeaderBorder
extends java.lang.Object
implements BackgroundBorder

QuaquaTableHeaderBorder.

Version:
$Id: QuaquaTableHeaderBorder.java 361 2010-11-21 11:19:20Z wrandelshofer $
Author:
Werner Randelshofer

Nested Class Summary
static class QuaquaTableHeaderBorder.UIResource
           
 
Constructor Summary
QuaquaTableHeaderBorder(java.lang.String imagesLocation, java.awt.Insets imageInsets)
          Creates a new instance.
 
Method Summary
 javax.swing.border.Border getBackgroundBorder()
          Returns the border that needs to be drawn onto the background.
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 void setColumnIndex(int index)
          FIXME: We should find a better way to pass the column index to the border.
 void setOnActiveWindow(boolean b)
          FIXME: We should find a better way to pass the column index to the border.
 void setSorted(boolean b)
          FIXME: We should find a better way to pass the sorted state to the border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaTableHeaderBorder

public QuaquaTableHeaderBorder(java.lang.String imagesLocation,
                               java.awt.Insets imageInsets)
Creates a new instance.

Method Detail

getBorderInsets

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

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)

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

getBackgroundBorder

public javax.swing.border.Border getBackgroundBorder()
Description copied from interface: BackgroundBorder
Returns the border that needs to be drawn onto the background.

Specified by:
getBackgroundBorder in interface BackgroundBorder

setColumnIndex

public void setColumnIndex(int index)
FIXME: We should find a better way to pass the column index to the border.


setSorted

public void setSorted(boolean b)
FIXME: We should find a better way to pass the sorted state to the border.


setOnActiveWindow

public void setOnActiveWindow(boolean b)
FIXME: We should find a better way to pass the column index to the border.


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