codeblockutil
Class TabCard

java.lang.Object
  extended by codeblockutil.TabCard
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class TabCard
extends java.lang.Object
implements java.beans.PropertyChangeListener

A Tab Card is used by glass explorers explorers as a mediator to their canvases. It wraps a button, a scrollpane, and a invoker. The button uses information about the current color and highlight of the canvas to dipict itself. The scrollpane takes the canvas and puts it inside a scroll pane so that users can navigate a very large canvas in small space. The invoker respnds to button presses and invokes the right method in the explorer. A tabbed pane does more than just store the scroll, button, and canvas, it also holds information about the menuitem for the tab oane's drop down menu.


Constructor Summary
TabCard(int i, Canvas canvas, TabbedExplorer ex, boolean scrollable)
          Constructor
 
Method Summary
(package private)  CButton getButton()
           
(package private)  Canvas getCanvas()
           
(package private)  javax.swing.JMenuItem getMenuItem()
           
(package private)  javax.swing.JComponent getScroll()
           
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabCard

TabCard(int i,
        Canvas canvas,
        TabbedExplorer ex,
        boolean scrollable)
Constructor

Parameters:
i -
canvas -
ex -
scrollable -
Method Detail

getCanvas

Canvas getCanvas()
Returns:
the canvas

getScroll

javax.swing.JComponent getScroll()
Returns:
the scroll pane

getButton

CButton getButton()
Returns:
the button

getMenuItem

javax.swing.JMenuItem getMenuItem()
Returns:
the menu item

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener