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

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

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

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

Collaboration graph
[legend]
List of all members.

Detailed Description

The title bars for the various CALO panes in the sidebar.

Author:
Will Haines


Public Member Functions

 PaneTitleView (String title, boolean collapsible)
 Create a new PaneTitle.
Dimension getPreferredSize ()
 Returns the preferred size of the title view, which is always 22 pixels tall.

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.
boolean isExpanded ()
 A getter for the expanded state of this pane.
void paintComponent (Graphics arg0)
 Make the pane title pretty with a gradient and roundedness.
void setExpanded (boolean isExpanded)
 A setter for the expanded state of this pane.

Private Member Functions

void toggleExpanded ()
 Toggles whether or not this title view claims the pane is expanded.

Private Attributes

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

Static Private Attributes

static final long serialVersionUID = 3459552455765647160L
 Prevent serialization collisions.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.panes.PaneTitleView.PaneTitleView ( String  title,
boolean  collapsible 
)

Create a new PaneTitle.

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


Member Function Documentation

static void edu.cmu.hcii.calo.view.panes.PaneTitleView.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

Dimension edu.cmu.hcii.calo.view.panes.PaneTitleView.getPreferredSize (  ) 

Returns the preferred size of the title view, which is always 22 pixels tall.

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

A getter for this pane's title.

Returns:
the title

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

A getter for the expanded state of this pane.

Returns:
the isExpanded

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

Make the pane title pretty with a gradient and roundedness.

Parameters:
arg0 the graphics to paint with
See also:
javax.swing.JComponent.paintComponent(java.awt.Graphics)

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

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

A setter for the expanded state of this pane.

Parameters:
isExpanded the isExpanded to set

void edu.cmu.hcii.calo.view.panes.PaneTitleView.toggleExpanded (  )  [private]

Toggles whether or not this title view claims the pane is expanded.

This doesn't actually toggle whether the pane is expanded, but it does fire the appropriate property change event (with a name of PANE_EXPANDED) so the pane can set its state accordingly. It also changes the appearance of the expand/contract button to match the new state.


Member Data Documentation

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

Prevent serialization collisions.

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

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

This pane's title.

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

The label for this pane's title.

IconToggleButton edu.cmu.hcii.calo.view.panes.PaneTitleView.expandButton [private]

The minimize button.

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

Is this pane expanded?

JLabel edu.cmu.hcii.calo.view.panes.PaneTitleView.titleShadowLabel [private]

The label for this pane's title's shadow.


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