Inheritance diagram for edu.cmu.hcii.calo.view.panes.PaneTitleView:
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. |
edu.cmu.hcii.calo.view.panes.PaneTitleView.PaneTitleView | ( | String | title, | |
boolean | collapsible | |||
) |
Create a new PaneTitle.
title | this pane's title | |
collapsible | whether or not this pane is scrollable |
static void edu.cmu.hcii.calo.view.panes.PaneTitleView.main | ( | String[] | args | ) | [static] |
Runs a small test program to verify that PaneTitle works correctly.
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.
boolean edu.cmu.hcii.calo.view.panes.PaneTitleView.isExpanded | ( | ) | [protected] |
A getter for the expanded state of this pane.
void edu.cmu.hcii.calo.view.panes.PaneTitleView.paintComponent | ( | Graphics | arg0 | ) | [protected] |
Make the pane title pretty with a gradient and roundedness.
arg0 | the graphics to paint with |
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.
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.
final long edu.cmu.hcii.calo.view.panes.PaneTitleView.serialVersionUID = 3459552455765647160L [static, private] |
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.
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.