com.hdcookbook.grin
Interface SEScalableNode

All Known Implementing Classes:
SEAssembly, SEBox, SEClipped, SECommandRCHandler, SEFade, SEFixedImage, SEFontStripText, SEGroup, SEGuaranteeFill, SEImageSequence, SEMenuAssembly, SEScalingModel, SESetTarget, SESrcOver, SEText, SETimer, SETranslator, SETranslatorModel, SEVisualRCHandler

public interface SEScalableNode

Represents a node that knows how to scale itself. Features and RC handlers tha can handle scaling should implement this. If an extension feature or handler doesn't support this interface, and an attempt is made to scale a show containing it, an error will occur.

Author:
Bill Foote (http://jovial.com)

Method Summary
 void scaleBy(int xScale, int yScale, int xOffset, int yOffset)
          Scale this node by the given scale factor, and apply the given offset.
 

Method Detail

scaleBy

void scaleBy(int xScale,
             int yScale,
             int xOffset,
             int yOffset)
Scale this node by the given scale factor, and apply the given offset. This will change the size of the features and RC handlers within the show at compile time, so no special scaling action is required at runtime.

Parameters:
xScale - x scale factor in mills
yScale - y scale factor in mills
xOffset - x offset in pixels
yOffset - y offset in pixels