Package | com.gestureworks.cml.elements |
Class | public class Gigapixel |
Inheritance | Gigapixel ![]() ![]() |
var gpElement:Gigapixel = new Gigapixel(); gpElement.src = "space.xml"; gpElement.x = 500; gpElement.width = 600; gpElement.height = 600; gpElement.mouseChildren = true; addChild(gpElement); gpElement.init();
See also
Property | Defined By | ||
---|---|---|---|
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
![]() | childList : ChildList
Returns the object's childList. | TouchContainer | |
![]() | className : String
sets the class name of displayobject
| TouchContainer | |
![]() | cloneExclusions : Vector.<String> [read-only]
Returns a list of properties to exclude when cloning this object
| TouchContainer | |
![]() | cmlIndex : int
Returns the index created by the CML parser. | TouchContainer | |
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
![]() | group : String | TouchContainer | |
![]() | height : Number [override]
sets the height of the container
| TouchContainer | |
![]() | heightPercent : Number
sets the height of the container
| TouchContainer | |
hotspots : Array | Gigapixel | ||
![]() | id : String
Returns the object's id. | TouchContainer | |
image : MultiScaleImage | Gigapixel | ||
![]() | layout : *
specifies the type of layout
| TouchContainer | |
![]() | layoutList : Dictionary | TouchContainer | |
loaded : Boolean [read-only]
Indicated whether the gigaPixel image is loaded
| Gigapixel | ||
minScaleConstraint : Number
sets the scaling
| Gigapixel | ||
![]() | mouseChildren : Boolean [override]
sets the mousechildren value to true or false. | TouchContainer | |
![]() | paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | TouchContainer | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | TouchContainer | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | TouchContainer | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | TouchContainer | |
![]() | position : *
Sets the position
| TouchContainer | |
![]() | relativeX : Boolean
When set true this containers children's x position will be laid out relatively
to each other. | TouchContainer | |
![]() | relativeY : Boolean
When set true this containers children's y position will be laid out relatively
to each other. | TouchContainer | |
sceneHeight : Number [read-only] | Gigapixel | ||
sceneWidth : Number [read-only] | Gigapixel | ||
smoothPanning : Boolean = true | Gigapixel | ||
![]() | sound : String | TouchContainer | |
src : String
Sets the src xml file
| Gigapixel | ||
srcXML : String Deprecated: Please Use src
Sets the src xml file
| Gigapixel | ||
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
![]() | toBitmap : Boolean | TouchContainer | |
toggleHotspots : Boolean
Set the visibility of hotspots. | Gigapixel | ||
viewportHeight : Number [read-only] | Gigapixel | ||
viewportWidth : Number [read-only] | Gigapixel | ||
viewportX : Number | Gigapixel | ||
viewportY : Number | Gigapixel | ||
visibilityRatio : Number
Sets how much of the gigapixel must be seen. | Gigapixel | ||
![]() | width : Number [override]
sets the width of the container
| TouchContainer | |
![]() | widthPercent : Number
sets the width of the container
| TouchContainer | |
zoom : Number | Gigapixel |
Method | Defined By | ||
---|---|---|---|
Constructor
| Gigapixel | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
![]() | addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | applyLayout(value:* = null):void
Apply the containers layout
| TouchContainer | |
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
![]() | clone():*
Clone method
| TouchContainer | |
dispose():void [override]
Destructor
| Gigapixel | ||
![]() | getElementById(id:String):*
Searches CML childList by id. | TouchContainer | |
![]() | getElementsByClassName(className:String):Array
Searches the CML childList by className. | TouchContainer | |
![]() | getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class. | TouchContainer | |
init():void [override]
Initialisation method
| Gigapixel | ||
![]() | loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number. | TouchContainer | |
localToScene(p:Point):Point | Gigapixel | ||
![]() | makeGestureList(value:XMLList):Object
Creates gestureList object from XML
| TouchContainer | |
panTo(x:Number, y:Number, immediately:Boolean = false):void | Gigapixel | ||
![]() | parseCML(cml:XMLList):XMLList
Parse cml for local layouts. | TouchContainer | |
![]() | postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine. | TouchContainer | |
![]() | querySelector(selector:String):*
Searches the CML childList by selector. | TouchContainer | |
![]() | querySelectorAll(selector:*):Array
Search the CML childList by selector. | TouchContainer | |
![]() | removeChild(child:DisplayObject):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildAt(index:int):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void [override]
Removes children from display list and, if not already removed, the child list
| TouchContainer | |
![]() | saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number. | TouchContainer | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | TouchContainer | |
![]() | setDimensionsToChild():void
method sets the dimensions of each child
| TouchContainer | |
![]() | tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index. | TouchContainer | |
![]() | updatePadding():void
Updates child padding within this container
| TouchContainer | |
![]() | updatePercentDim():void
Updates child percent dimensions within this container
| TouchContainer | |
![]() | updateProperties(state:* = 0):void
Updates properties from state. | TouchContainer | |
![]() | updateRelativePos():void
Updates child relative positions within this container
| TouchContainer |
hotspots | property |
hotspots:Array
public function get hotspots():Array
public function set hotspots(value:Array):void
image | property |
public var image:MultiScaleImage
loaded | property |
loaded:Boolean
[read-only] Indicated whether the gigaPixel image is loaded
public function get loaded():Boolean
minScaleConstraint | property |
minScaleConstraint:Number
sets the scaling
The default value is = 0.001;
.
public function get minScaleConstraint():Number
public function set minScaleConstraint(value:Number):void
sceneHeight | property |
sceneHeight:Number
[read-only] public function get sceneHeight():Number
sceneWidth | property |
sceneWidth:Number
[read-only] public function get sceneWidth():Number
smoothPanning | property |
public var smoothPanning:Boolean = true
src | property |
src:String
Sets the src xml file
public function get src():String
public function set src(value:String):void
srcXML | property |
srcXML:String
Sets the src xml file
The default value is .
public function get srcXML():String
public function set srcXML(value:String):void
toggleHotspots | property |
toggleHotspots:Boolean
Set the visibility of hotspots.
public function get toggleHotspots():Boolean
public function set toggleHotspots(value:Boolean):void
viewportHeight | property |
viewportHeight:Number
[read-only] public function get viewportHeight():Number
viewportWidth | property |
viewportWidth:Number
[read-only] public function get viewportWidth():Number
viewportX | property |
viewportX:Number
public function get viewportX():Number
public function set viewportX(value:Number):void
viewportY | property |
viewportY:Number
public function get viewportY():Number
public function set viewportY(value:Number):void
visibilityRatio | property |
visibilityRatio:Number
Sets how much of the gigapixel must be seen. Setting it to 1 will ensure no border is ever seen within the viewer.
The default value is 0.6
.
public function get visibilityRatio():Number
public function set visibilityRatio(value:Number):void
zoom | property |
zoom:Number
public function get zoom():Number
public function set zoom(value:Number):void
Gigapixel | () | Constructor |
public function Gigapixel()
Constructor
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
Initialisation method
localToScene | () | method |
public function localToScene(p:Point):Point
Parameters
p:Point |
Point |
panTo | () | method |
public function panTo(x:Number, y:Number, immediately:Boolean = false):void
Parameters
x:Number | |
y:Number | |
immediately:Boolean (default = false )
|