Class gjt.ImageButtonPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.ImageButtonPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----gjt.ImageButtonPanel

public class ImageButtonPanel
extends Panel
A panel which contains a collection of ImageButtons, arranged either horizontally or vertically.

Handling of mouse events is delegated to an image button panel controller. By default, an image button panel is outfitted with an instance of RadioImageButtonPanelController which implements mutually exclusive selection behavior.

See Also:
ImageButton, RadioImageButtonPanelController, ToolbarTest

Constructor Index

 o ImageButtonPanel(Orientation)
 o ImageButtonPanel(Orientation, int)
 o ImageButtonPanel(Orientation, Orientation, Orientation, int)

Method Index

 o add(Image)
 o add(Image, String)
 o add(ImageButton)
 o add(ImageButton, String)
 o addSpacer(int)
 o getButtonByName(String)
 o getButtonName(ImageButton)
 o insets()
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseUp(Event, int, int)
 o setController(ImageButtonPanelController)

Constructors

 o ImageButtonPanel
  public ImageButtonPanel(Orientation orient)
 o ImageButtonPanel
  public ImageButtonPanel(Orientation orient,
                          int gap)
 o ImageButtonPanel
  public ImageButtonPanel(Orientation orient,
                          Orientation horient,
                          Orientation vorient,
                          int gap)

Methods

 o setController
  public void setController(ImageButtonPanelController c)
 o insets
  public Insets insets()
Overrides:
insets in class Container
 o add
  public ImageButton add(Image image,
                         String name)
 o add
  public ImageButton add(Image image)
 o add
  public void add(ImageButton button)
 o add
  public void add(ImageButton button,
                  String name)
 o getButtonByName
  public ImageButton getButtonByName(String name)
 o getButtonName
  public String getButtonName(ImageButton button)
 o addSpacer
  public void addSpacer(int sizeInPixels)
 o mouseDown
  public boolean mouseDown(Event event,
                           int x,
                           int y)
Overrides:
mouseDown in class Component
 o mouseDrag
  public boolean mouseDrag(Event event,
                           int x,
                           int y)
Overrides:
mouseDrag in class Component
 o mouseUp
  public boolean mouseUp(Event event,
                         int x,
                         int y)
Overrides:
mouseUp in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index