All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cs101.calculator.Calculator

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----cs101.calculator.Calculator

public class Calculator
extends Panel
implements ActionListener

Constructor Index

 o Calculator()

Method Index

 o actionPerformed(ActionEvent)
 o add(Component, int, int, int, int, int, int)
 o and(boolean, boolean)
 o area(double)
 o circumference(double)
 o diagonal(double)
 o divide(double, double)
 o memoryExchange(double)
 o memoryPlus(double)
 o memoryRecall()
 o minus(double, double)
 o nand(boolean, boolean)
 o negate(double)
 o or(boolean, boolean)
 o plus(double, double)
 o times(double, double)
 o xor(boolean, boolean)

Constructors

 o Calculator
 public Calculator()

Methods

 o add
 public void add(Component c,
                 int x,
                 int y,
                 int w,
                 int h,
                 int wx,
                 int wy)
 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o negate
 protected double negate(double v)
 o circumference
 protected double circumference(double v)
 o area
 protected double area(double v)
 o diagonal
 protected double diagonal(double v)
 o memoryRecall
 protected double memoryRecall()
 o memoryPlus
 protected void memoryPlus(double v)
 o memoryExchange
 protected double memoryExchange(double v)
 o plus
 protected double plus(double a,
                       double b)
 o minus
 protected double minus(double a,
                        double b)
 o times
 protected double times(double a,
                        double b)
 o divide
 protected double divide(double a,
                         double b)
 o and
 protected boolean and(boolean a,
                       boolean b)
 o or
 protected boolean or(boolean a,
                      boolean b)
 o nand
 protected boolean nand(boolean a,
                        boolean b)
 o xor
 protected boolean xor(boolean a,
                       boolean b)

All Packages  Class Hierarchy  This Package  Previous  Next  Index