Inheritance diagram for edu.cmu.hcii.calo.view.iconwell.IconWellView:
The view also intelligently rearranges its icons when its width changes.
Public Member Functions | |
IconWellView () | |
Constructs an IconWellView. | |
Protected Member Functions | |
void | paintComponent (Graphics g) |
| |
Protected Attributes | |
TaskViewerPanel | taskViewer |
The task viewer panel. | |
Private Member Functions | |
void | addIconAndLabel (ImageIcon icon, String labelText, String tooltipText) |
Adds the given icon and label to the button list, with the given tooltip text. | |
void | layoutButtonsInColumns (JPanel panel, int numColumns) |
Does what the method name implies. | |
void | recomputeLayout () |
Causes the button panel to lay itself out again, possibly changing the number of columns in which it displays buttons and also possibly showing or hiding text labels depending on the available space. | |
void | setup () |
Sets up the visual appearance of this view. | |
Private Attributes | |
BindingMaker | bm |
A binding maker for layout purposes. | |
JPanel | buttonPanel |
The panel on which the buttons will be placed. | |
List< IconButton > | buttons |
The list of all buttons we intend to put on the panel. | |
Map< IconButton, JLabel > | labels |
The mapping between each button and its label. | |
TaskViewerController | taskViewerController |
The controller for the task viewer. | |
Static Private Attributes | |
static final long | serialVersionUID = -2349200075305110326L |
Prevent serialization collisions. | |
Classes | |
class | ThisDontWorkYetListener |
An action listener subclass that displays a message saying what the clicked button would do if it were implemented. More... |
edu.cmu.hcii.calo.view.iconwell.IconWellView.IconWellView | ( | ) |
Constructs an IconWellView.
void edu.cmu.hcii.calo.view.iconwell.IconWellView.paintComponent | ( | Graphics | g | ) | [protected] |
Reimplemented from edu.cmu.hcii.calo.view.TranslucentView.
void edu.cmu.hcii.calo.view.iconwell.IconWellView.addIconAndLabel | ( | ImageIcon | icon, | |
String | labelText, | |||
String | tooltipText | |||
) | [private] |
Adds the given icon and label to the button list, with the given tooltip text.
icon | the icon | |
labelText | the text of the label | |
tooltipText | the text that should go on the tool tip |
void edu.cmu.hcii.calo.view.iconwell.IconWellView.layoutButtonsInColumns | ( | JPanel | panel, | |
int | numColumns | |||
) | [private] |
Does what the method name implies.
The panel must be using a RelativeLayout for this to work.
panel | the panel to lay out the buttons on | |
numColumns | the number of columns to use | |
numColumns |
void edu.cmu.hcii.calo.view.iconwell.IconWellView.recomputeLayout | ( | ) | [private] |
Causes the button panel to lay itself out again, possibly changing the number of columns in which it displays buttons and also possibly showing or hiding text labels depending on the available space.
void edu.cmu.hcii.calo.view.iconwell.IconWellView.setup | ( | ) | [private] |
Sets up the visual appearance of this view.
final long edu.cmu.hcii.calo.view.iconwell.IconWellView.serialVersionUID = -2349200075305110326L [static, private] |
The task viewer panel.
BindingMaker edu.cmu.hcii.calo.view.iconwell.IconWellView.bm [private] |
A binding maker for layout purposes.
JPanel edu.cmu.hcii.calo.view.iconwell.IconWellView.buttonPanel [private] |
The panel on which the buttons will be placed.
List<IconButton> edu.cmu.hcii.calo.view.iconwell.IconWellView.buttons [private] |
The list of all buttons we intend to put on the panel.
Map<IconButton, JLabel> edu.cmu.hcii.calo.view.iconwell.IconWellView.labels [private] |
The mapping between each button and its label.
The controller for the task viewer.