acm.graphics
Interface GScalable

All Known Implementing Classes:
GArc, GCompound, GOval, GPolygon, GRect, GLine, GImage

public interface GScalable

Specifies the characteristics of a graphical object that supports the scale method.


Method Summary
void scale(double sf)
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
void scale(double sx, double sy)
Scales the object on the screen by the scale factors sx and sy.
 

Method Detail

public void scale(double sf)

Scales the object on the screen by the scale factor sf, which applies in both dimensions.

 
Usage: gobj.scale(sf); 
Parameter: 
sf  The factor used to scale all coordinates in both dimensions
 

public void scale(double sx, double sy)

Scales the object on the screen by the scale factors sx and sy.

 
Usage: gobj.scale(sx, sy); 
Parameters: 
sx  The factor used to scale all coordinates in the x direction
sy  The factor used to scale all coordinates in the y direction