GP
Interface Scalable

All Known Subinterfaces:
Container, Graphic

public interface Scalable

This defines the interface for all objects that have a size associated with them.


Method Summary
 Size GetSize()
          This method should return the current size of the object.
 void Scale(double widthFactor, double heightFactor)
          This method should scale the object to the proper size give the height and width multiplication factors.
 void Scale(Size factor)
           
 void Scale(Value widthFactor, Value heightFactor)
           
 void SetSize(Size size)
          This method should set the current size of the object.
 

Method Detail

SetSize

public void SetSize(Size size)
This method should set the current size of the object.
Parameters:
size - the new size

GetSize

public Size GetSize()
This method should return the current size of the object.
Returns:
the current size of the object

Scale

public void Scale(double widthFactor,
                  double heightFactor)
This method should scale the object to the proper size give the height and width multiplication factors.
Parameters:
widthFactor -  
heightFactor -  

Scale

public void Scale(Value widthFactor,
                  Value heightFactor)

Scale

public void Scale(Size factor)