Class gjt.rubberband.RubberbandPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.rubberband.RubberbandPanel

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

public class RubberbandPanel
extends Panel
An extension of Panel which is fitted with a Rubberband. Handling of mouse events is automatically handled for rubberbanding.

Clients may set or get the Rubberband at any time.

See Also:
Rubberband, RubberbandTest

Constructor Index

 o RubberbandPanel()

Method Index

 o getRubberband()
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseUp(Event, int, int)
 o setRubberband(Rubberband)

Constructors

 o RubberbandPanel
  public RubberbandPanel()

Methods

 o setRubberband
  public void setRubberband(Rubberband rubberband)
 o getRubberband
  public Rubberband getRubberband()
 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