acm.graphics
Interface GScalable

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

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

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
 


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