edu.cmu.hcii.calo.view.task.TaskViewBorder Class Reference

List of all members.

Detailed Description

A custom border (actually comprising both a border and a background color) for use with TaskViews.

Author:
Brian Ellis


Public Member Functions

 TaskViewBorder (Color fillColor, Color strokeColor)
 Constructs a TaskViewBorder with the given fill and stroke colors.
 TaskViewBorder (Color fillColor, Color strokeColor, boolean isDropTarget)
 Constructs a TaskViewBorder with the given color and state.
void paintBorder (Component c, Graphics graphics, int x, int y, int width, int height)
 Paints this border.
Insets getBorderInsets (Component c)
 Returns the insets of this border for the given component.

Private Member Functions

 TaskViewBorder ()
 Private superclass constructor.

Private Attributes

Color fillColor
 The color we will use to fill the background.
Color strokeColor
 The color we will use for the border's stroke.
boolean isDropTarget
 Whether this border should be drawn to indicate that its view is a drop target.

Static Private Attributes

static final int CORNER_RADIUS = 8
 The radius of the rounded corners of the border.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.task.TaskViewBorder.TaskViewBorder ( Color  fillColor,
Color  strokeColor 
)

Constructs a TaskViewBorder with the given fill and stroke colors.

Parameters:
fillColor the fill color to use
strokeColor the stroke color to use

edu.cmu.hcii.calo.view.task.TaskViewBorder.TaskViewBorder (  )  [private]

Private superclass constructor.

Do not use.

edu.cmu.hcii.calo.view.task.TaskViewBorder.TaskViewBorder ( Color  fillColor,
Color  strokeColor,
boolean  isDropTarget 
)

Constructs a TaskViewBorder with the given color and state.

Parameters:
fillColor the fill color of the border
strokeColor the stroke color of the border
isDropTarget if true, the border will be drawn to indicate its associated view is a drop target


Member Function Documentation

void edu.cmu.hcii.calo.view.task.TaskViewBorder.paintBorder ( Component  c,
Graphics  graphics,
int  x,
int  y,
int  width,
int  height 
)

Paints this border.

Parameters:
c the component this border is attached to
graphics the graphics context into which to paint this border
x the x-coordinate of this border's top left corner
y the y-coordinate of this border's top left corner
width the width of this border's paint region
height the height of this border's paint region
See also:
javax.swing.border.AbstractBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)

Insets edu.cmu.hcii.calo.view.task.TaskViewBorder.getBorderInsets ( Component  c  ) 

Returns the insets of this border for the given component.

Parameters:
c the component to return insets for


Member Data Documentation

final int edu.cmu.hcii.calo.view.task.TaskViewBorder.CORNER_RADIUS = 8 [static, private]

The radius of the rounded corners of the border.

Color edu.cmu.hcii.calo.view.task.TaskViewBorder.fillColor [private]

The color we will use to fill the background.

Color edu.cmu.hcii.calo.view.task.TaskViewBorder.strokeColor [private]

The color we will use for the border's stroke.

boolean edu.cmu.hcii.calo.view.task.TaskViewBorder.isDropTarget [private]

Whether this border should be drawn to indicate that its view is a drop target.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:28 2007 for CALO by  doxygen 1.5.2