edu.cmu.hcii.calo.view.panes.PaneTitle Class Reference

Inherits edu.cmu.hcii.calo.view.CALOComponent.

Inheritance diagram for edu.cmu.hcii.calo.view.panes.PaneTitle:

Inheritance graph
[legend]
Collaboration diagram for edu.cmu.hcii.calo.view.panes.PaneTitle:

Collaboration graph
[legend]
List of all members.

Detailed Description

Author:
Will Haines


Public Member Functions

 PaneTitle (String title, boolean scrollable)
 Create a new PaneTitle.
Dimension getPreferredSize ()

Static Public Member Functions

static void main (String[] args)
 Runs a small test program to verify that PaneTitle works correctly.

Protected Member Functions

String getTitle ()
 A getter for this pane's title.
void paintComponent (Graphics arg0)
 Make the pane title pretty with a gradient and roundedness.
boolean isExpanded ()
 A getter for the expanded state of this pane.
void setExpanded (boolean isExpanded)
 A setter for the expanded state of this pane.

Private Member Functions

void toggleExpanded ()

Private Attributes

String title
 This pane's title.
JLabel titleLabel
 The label for this pane's title.
IconButton expandButton
 The minimize button.
boolean isExpanded
 Is this pane expanded?

Static Private Attributes

static final long serialVersionUID = 3459552455765647160L
 Prevent serialization collisions.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.panes.PaneTitle.PaneTitle ( String  title,
boolean  scrollable 
)

Create a new PaneTitle.

Parameters:
title this pane's title
scrollable whether or not this pane is scrollable


Member Function Documentation

static void edu.cmu.hcii.calo.view.panes.PaneTitle.main ( String[]  args  )  [static]

Runs a small test program to verify that PaneTitle works correctly.

Parameters:
args command-line args; don't bother passing any

String edu.cmu.hcii.calo.view.panes.PaneTitle.getTitle (  )  [protected]

A getter for this pane's title.

Returns:
the title

void edu.cmu.hcii.calo.view.panes.PaneTitle.paintComponent ( Graphics  arg0  )  [protected]

Make the pane title pretty with a gradient and roundedness.

See also:
javax.swing.JComponent.paintComponent(java.awt.Graphics)

Reimplemented from edu.cmu.hcii.calo.view.TranslucentView.

boolean edu.cmu.hcii.calo.view.panes.PaneTitle.isExpanded (  )  [protected]

A getter for the expanded state of this pane.

Returns:
the isExpanded

void edu.cmu.hcii.calo.view.panes.PaneTitle.setExpanded ( boolean  isExpanded  )  [protected]

A setter for the expanded state of this pane.

Parameters:
isExpanded the isExpanded to set


Member Data Documentation

final long edu.cmu.hcii.calo.view.panes.PaneTitle.serialVersionUID = 3459552455765647160L [static, private]

Prevent serialization collisions.

Reimplemented from edu.cmu.hcii.calo.view.CALOComponent.

String edu.cmu.hcii.calo.view.panes.PaneTitle.title [private]

This pane's title.

JLabel edu.cmu.hcii.calo.view.panes.PaneTitle.titleLabel [private]

The label for this pane's title.

IconButton edu.cmu.hcii.calo.view.panes.PaneTitle.expandButton [private]

The minimize button.

boolean edu.cmu.hcii.calo.view.panes.PaneTitle.isExpanded [private]

Is this pane expanded?


The documentation for this class was generated from the following file:
Generated on Wed Aug 8 20:24:46 2007 for CALO by  doxygen 1.5.2