edu.cmu.hcii.calo.view.notification.NotificationViewBorder Class Reference

List of all members.

Detailed Description

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

Also defines lots of useful constants.

Author:
Will Haines


Public Member Functions

 NotificationViewBorder (Color fillColor, Color strokeColor)
 Constructs a NotificationViewBorder with the given fill and stroke colors.
 NotificationViewBorder (Color fillColor, Color strokeColor, boolean isDropTarget)
 Constructs a new NotificationViewBorder with the given state.
void paintBorder (Component c, Graphics graphics, int x, int y, int width, int height)
 
See also:
javax.swing.border.AbstractBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)


Private Member Functions

 NotificationViewBorder ()
 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.
double opacity = 1.0
 The opacity of the border, on a scale from 0 to 1.

Static Private Attributes

static final long serialVersionUID = -6905593250955099862L
 Prevent serialization collisions.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.notification.NotificationViewBorder.NotificationViewBorder ( Color  fillColor,
Color  strokeColor 
)

Constructs a NotificationViewBorder 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.notification.NotificationViewBorder.NotificationViewBorder ( Color  fillColor,
Color  strokeColor,
boolean  isDropTarget 
)

Constructs a new NotificationViewBorder with the given state.

Parameters:
fillColor the fill color for this border
strokeColor the stroke color for this border
isDropTarget true if this should be drawn as a drop target, false otherwise

edu.cmu.hcii.calo.view.notification.NotificationViewBorder.NotificationViewBorder (  )  [private]

Private superclass constructor.

Do not use.


Member Function Documentation

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

See also:
javax.swing.border.AbstractBorder.paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)


Member Data Documentation

final long edu.cmu.hcii.calo.view.notification.NotificationViewBorder.serialVersionUID = -6905593250955099862L [static, private]

Prevent serialization collisions.

Color edu.cmu.hcii.calo.view.notification.NotificationViewBorder.fillColor [private]

The color we will use to fill the background.

Color edu.cmu.hcii.calo.view.notification.NotificationViewBorder.strokeColor [private]

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

double edu.cmu.hcii.calo.view.notification.NotificationViewBorder.opacity = 1.0 [private]

The opacity of the border, on a scale from 0 to 1.


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