| Package | com.pblabs.rendering2D |
| Class | public final class SceneAlignment |
| Inheritance | SceneAlignment Enumerable Object |
| Implements | ISerializable |
| Property | Defined By | ||
|---|---|---|---|
| defaultType : Enumerable [override] [read-only]
This must be implemented by subclasses. | SceneAlignment | ||
| typeMap : Dictionary [override] [read-only]
This must be implemented by subclasses. | SceneAlignment | ||
| Method | Defined By | ||
|---|---|---|---|
calculate(outPoint:Point, alignment:SceneAlignment, sceneWidth:int, sceneHeight:int):void [static]
Given an alignment constant from this class, calculate
| SceneAlignment | ||
![]() | deserialize(xml:XML):*
deserializes the object from xml. | Enumerable | |
![]() | serialize(xml:XML):void
serializes the object to XML. | Enumerable | |
| Constant | Defined By | ||
|---|---|---|---|
| BOTTOM_LEFT : SceneAlignment [static] | SceneAlignment | ||
| BOTTOM_RIGHT : SceneAlignment [static] | SceneAlignment | ||
| CENTER : SceneAlignment [static] | SceneAlignment | ||
| DEFAULT_ALIGNMENT : SceneAlignment [static] | SceneAlignment | ||
| TOP_LEFT : SceneAlignment [static] | SceneAlignment | ||
| TOP_RIGHT : SceneAlignment [static] | SceneAlignment | ||
| defaultType | property |
defaultType:Enumerable [read-only] [override] This must be implemented by subclasses. It is the type to use when a string isn't found in the TypeMap.
public function get defaultType():Enumerable| typeMap | property |
typeMap:Dictionary [read-only] [override] This must be implemented by subclasses. It is a dictionary that maps the names of enumerable values to the instance of the enumerable they represent.
public function get typeMap():Dictionary| calculate | () | method |
public static function calculate(outPoint:Point, alignment:SceneAlignment, sceneWidth:int, sceneHeight:int):voidGiven an alignment constant from this class, calculate
Parameters
outPoint:Point | |
alignment:SceneAlignment | |
sceneWidth:int | |
sceneHeight:int |
| BOTTOM_LEFT | Constant |
public static const BOTTOM_LEFT:SceneAlignment| BOTTOM_RIGHT | Constant |
public static const BOTTOM_RIGHT:SceneAlignment| CENTER | Constant |
public static const CENTER:SceneAlignment| DEFAULT_ALIGNMENT | Constant |
public static const DEFAULT_ALIGNMENT:SceneAlignment| TOP_LEFT | Constant |
public static const TOP_LEFT:SceneAlignment| TOP_RIGHT | Constant |
public static const TOP_RIGHT:SceneAlignment