Class Retangulo

java.lang.Object
  extended by Retangulo

public class Retangulo
extends Object

A square that can be manipulated and that draws itself on a canvas.

Version:
1.0 (15 July 2000) / 1.0 (4 September 2015)
Author:
Michael Kolling and David J. Barnes / Alexandre Goncalves Silva

Constructor Summary
Retangulo(double x1, double y1, double x2, double y2)
           
Retangulo(int n)
          Create a new rectangles at default position with default color.
 
Method Summary
 void makeInvisible()
          Make this rectangles invisible.
 void makeVisible()
          Make this rectangles visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Retangulo

public Retangulo(double x1,
                 double y1,
                 double x2,
                 double y2)

Retangulo

public Retangulo(int n)
Create a new rectangles at default position with default color.

Method Detail

makeInvisible

public void makeInvisible()
Make this rectangles invisible. If it was already invisible, do nothing.


makeVisible

public void makeVisible()
Make this rectangles visible. If it was already visible, do nothing.