Up: Java Kali Source Code and Documentation

Class ControlPanel

Class ControlPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ControlPanel

class ControlPanel
extends Panel
The ControlPanel contains the buttons etc that allow the user to change the group, current color, etc.

Constructor Index

 o ControlPanel(Kali, DrawPanel, Panorama)
Create a new control panel object.

Method Index

 o action(Event, Object)
Handling method for button actions.
 o findColor(ImageButton)
Given a color button, return its index.
 o setGroupType(int)

Constructors

 o ControlPanel
  public ControlPanel(Kali kali,
                      DrawPanel drawPanel,
                      Panorama panorama)
Create a new control panel object.
Parameters:
kali - The Kali object for this applet
drawPanel - The DrawPanel object for this applet
panorama - The Panorama object for this applet

Methods

 o setGroupType
  public void setGroupType(int i)
 o findColor
  public int findColor(ImageButton button)
Given a color button, return its index.
 o action
  public boolean action(Event e,
                        Object arg)
Handling method for button actions.
Overrides:
action in class Component


Up: Java Kali Source Code and Documentation

[HOME] The Geometry Center Home Page

Author: Mark Phillips
Comments to: webmaster@geom.umn.edu
Created: Sep 16 1996 --- Last modified: Sep 18 1996