Class wb.PolyButton
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wb.PolyButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----wb.WBButton
                           |
                           +----wb.PolyButton

public class PolyButton
extends WBButton
PolyButton extends WBButton and draws a Polyline in the small canvas alloted to display the intention of this button

Constructor Index

 o PolyButton(String, WBDrawPanel)
Creates an instance of PolyButton with its label string used for display on the status bar
 o PolyButton(String, WBDrawPanel, boolean)
Creates an instance of PolyButton with its label string used for display on the status bar

Method Index

 o draw(Graphics)
Overides the parents draw method to draw the required in the rectangular region.

Constructors

 o PolyButton
  public PolyButton(String name,
                    WBDrawPanel above)
Creates an instance of PolyButton with its label string used for display on the status bar
Parameters:
name - String containing the label of this button
above - the WBDrawPanel which holds this button and understands the type "POLYS" and displays the label in its status line
 o PolyButton
  public PolyButton(String name,
                    WBDrawPanel above,
                    boolean displaytext)
Creates an instance of PolyButton with its label string used for display on the status bar
Parameters:
name - String containing the label of this button
above - the WBDrawPanel which holds this button and understands the type "POLYS" and displays the label in its status line
displaytext - boolean to show the label

Methods

 o draw
  protected void draw(Graphics g)
Overides the parents draw method to draw the required in the rectangular region. In this case it draws a polyline
Parameters:
g - Graphics
Overrides:
draw in class WBButton

All Packages  Class Hierarchy  This Package  Previous  Next  Index