ACM Library

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

scale

void scale(double sx,
           double sy)
Scales the object on the screen by the scale factors sx and 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

scale

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

Parameters:
sf - The factor used to scale all coordinates in both dimensions

Last updated: Sat, Aug 22, 2009 • 10:26 PM EDT