| Package | com.degrafa.geometry.layout |
| Class | public class LayoutUtils |
| Method | Defined by | ||
|---|---|---|---|
| LayoutUtils | |||
|
applyOffsetToCommandStack(commandStack:CommandStack, xMultiplier:Number, yMultiplier:Number, minPoint:Point, lastPoint:Point = null):void
[static]
Traverses through the given command stack applying the offset.
| LayoutUtils | ||
|
calculateRatios(commandStack:CommandStack, destinationRectangle:Rectangle):void
[static]
Proportionally sizes each point in the command array to the given width and height
taking into account any additional x or y offset that the command data may have.
| LayoutUtils | ||
|
getCommandStackMinMax(commandStack:CommandStack, maxPoint:Point, minPoint:Point, lastX:Number, lastY:Number):void
[static]
Traverses the given command stack and calculates the min and max points.
| LayoutUtils | ||
| LayoutUtils | () | constructor |
public function LayoutUtils()
| applyOffsetToCommandStack | () | method |
public static function applyOffsetToCommandStack(commandStack:CommandStack, xMultiplier:Number, yMultiplier:Number, minPoint:Point, lastPoint:Point = null):voidTraverses through the given command stack applying the offset.
ParameterscommandStack:CommandStack |
|
xMultiplier:Number |
|
yMultiplier:Number |
|
minPoint:Point |
|
lastPoint:Point (default = null) |
| calculateRatios | () | method |
public static function calculateRatios(commandStack:CommandStack, destinationRectangle:Rectangle):voidProportionally sizes each point in the command array to the given width and height taking into account any additional x or y offset that the command data may have. This ensures that rendering is always started at point(0,0) and that the maximum allotted spaced is used for both width and height.
ParameterscommandStack:CommandStack |
|
destinationRectangle:Rectangle |
| getCommandStackMinMax | () | method |
public static function getCommandStackMinMax(commandStack:CommandStack, maxPoint:Point, minPoint:Point, lastX:Number, lastY:Number):voidTraverses the given command stack and calculates the min and max points.
ParameterscommandStack:CommandStack |
|
maxPoint:Point |
|
minPoint:Point |
|
lastX:Number |
|
lastY:Number |