ilog.views.util.swing.calendar.plaf
Class BasicCalendarPanelUI.SelectionBorder

java.lang.Object
  extended by ilog.views.util.swing.calendar.plaf.BasicCalendarPanelUI.SelectionBorder
All Implemented Interfaces:
Border, UIResource
Enclosing class:
BasicCalendarPanelUI

public static class BasicCalendarPanelUI.SelectionBorder
extends Object
implements Border, UIResource

SelectionBorder is the default border for selected day cells in an IlvJCalendarPanel. It is used to wrapper the button border of the current look and feel and forces the encapsulated button border to always render as for the default button in the user interface.


Constructor Summary
BasicCalendarPanelUI.SelectionBorder(Border buttonBorder)
          Creates a new SelectionBorder that encapsulates the specified button border.
 
Method Summary
 Insets getBorderInsets(Component c)
          Returns the insets of the border.
 boolean isBorderOpaque()
          Returns whether or not the border is opaque.
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          Paints the border for the specified component with the specified position and size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCalendarPanelUI.SelectionBorder

public BasicCalendarPanelUI.SelectionBorder(Border buttonBorder)
Creates a new SelectionBorder that encapsulates the specified button border.

Parameters:
buttonBorder - The button border.
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Paints the border for the specified component with the specified position and size.

Specified by:
paintBorder in interface Border
Parameters:
c - The component for which this border is being painted.
g - The paint graphics.
x - The x position of the painted border.
y - The y position of the painted border.
width - The width of the painted border.
height - The height of the painted border.

getBorderInsets

public Insets getBorderInsets(Component c)
Returns the insets of the border.

Specified by:
getBorderInsets in interface Border
Parameters:
c - The component for which this border insets' value applies.
Returns:
The insets of the border.

isBorderOpaque

public boolean isBorderOpaque()
Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in its own background when painting.

Specified by:
isBorderOpaque in interface Border
Returns:
true if the border is opaque, or false otherwise.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.