edu.cmu.hcii.calo.view.CALOScrollPane Class Reference

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

Inheritance diagram for edu.cmu.hcii.calo.view.CALOScrollPane:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

A scroll pane that is also a CALOComponent, and will therefore forward property changes from its children to its parent.

Note:
Due to the lack of multiple inheritance in Java, CALOScrollPane does not actually subclass JScrollPane. As a result, many of the methods of JScrollPane are not available.
Author:
Brian Ellis


Public Member Functions

 CALOScrollPane (Component c)
 Constructs a CALOScrollPane containing the given component.
void doLayout ()
 Recalculates the layout for this container.
Dimension getPreferredSize ()
 Returns the preferred size of this component.
void setPreferredSize (Dimension preferredSize)
 Sets the preferred size of this component to the given dimension.
void setSize (Dimension d)
 Sets the size of this component.
void setBackground (Color bg)
 Sets the background of this scroll pane.

Private Member Functions

void setup ()
 Sets up the visual appearance of this scroll pane.

Private Attributes

JScrollPane scrollPane
 The actual JScrollPane contained within this pane.

Static Private Attributes

static final long serialVersionUID = 9110620568939812305L
 Prevent serialization collisions.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.CALOScrollPane.CALOScrollPane ( Component  c  ) 

Constructs a CALOScrollPane containing the given component.

Parameters:
c the component to add


Member Function Documentation

void edu.cmu.hcii.calo.view.CALOScrollPane.doLayout (  ) 

Recalculates the layout for this container.

Overridden to also send doLayout() to the actual JScrollPane contained inside this one.

Dimension edu.cmu.hcii.calo.view.CALOScrollPane.getPreferredSize (  ) 

Returns the preferred size of this component.

Overridden to always return the preferred size of the actual scroll pane contained inside this one unless a preferred size has been explicitly set, in which case that is returned instead.

void edu.cmu.hcii.calo.view.CALOScrollPane.setPreferredSize ( Dimension  preferredSize  ) 

Sets the preferred size of this component to the given dimension.

Parameters:
preferredSize the new preferred size
See also:
javax.swing.JComponent.setPreferredSize(java.awt.Dimension)

void edu.cmu.hcii.calo.view.CALOScrollPane.setSize ( Dimension  d  ) 

Sets the size of this component.

Overridden to also set the size of the actual scroll pane contained inside this one.

Parameters:
d the size to set

void edu.cmu.hcii.calo.view.CALOScrollPane.setup (  )  [private]

Sets up the visual appearance of this scroll pane.

void edu.cmu.hcii.calo.view.CALOScrollPane.setBackground ( Color  bg  ) 

Sets the background of this scroll pane.

Overridden to set the background of the scroll pane's viewport instead.

Parameters:
bg the background to set


Member Data Documentation

final long edu.cmu.hcii.calo.view.CALOScrollPane.serialVersionUID = 9110620568939812305L [static, private]

Prevent serialization collisions.

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

JScrollPane edu.cmu.hcii.calo.view.CALOScrollPane.scrollPane [private]

The actual JScrollPane contained within this pane.


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