Packagecom.degrafa.geometry
Classpublic class RasterText
InheritanceRasterText Inheritance Geometry Inheritance DegrafaObject
ImplementsIDisplayObjectProxy

The RasterText element permits rendering Text as part of a composition or drawing to an arbitrary graphics target.

RasterText represents a bitmap copy of text content that can be part of a geometry composition with behavior similar to a regular geometry object. It provides a simple way to include Text based content within compositions rendered to an arbitrary graphics context.



Public Properties
 PropertyDefined by
  accessibilityProperties : AccessibilityProperties
accessibilityProperties property for the textField.
RasterText
  align : String
RasterText
  alpha : Number
alpha property for the textField.
RasterText
  antiAliasType : String
antiAliasType property for the textField.
RasterText
 InheritedautoClearGraphicsTarget : Boolean
When using a graphicsTarget and if this property is set to true the draw phase will clear the graphics context before drawing.
Geometry
  autoSize : String
autoSize property for the textField.
RasterText
  autoSizeField : Boolean
Autosize the text field to text size.
RasterText
  availableEmbeddedFonts : Array
[static][read-only] Utility function for checking fonts
RasterText
  background : Boolean
background property for the textField.
RasterText
  backgroundColor : Object
Similar to backgroundColor property for the textField.
RasterText
  backgroundFill : IGraphicsFill
A Degrafa Fill used in the background of this RasterText area.
RasterText
  blockIndent : Object
RasterText
  bold : Boolean
RasterText
  border : Boolean
border property for the textField.
RasterText
  borderColor : Object
borderColor property for the textField.
RasterText
 Inheritedbottom : Number
When set, the bottom of the layout will be located offset from the bottom of it's parent.
Geometry
  bounds : Rectangle
[read-only] The tight bounds of this element as represented by a Rectangle object.
RasterText
  bullet : Object
RasterText
 InheritedclippingRectangle : Rectangle
A clipping rectangle to use when rendering this geometry.
Geometry
 InheritedcommandStack : CommandStack
Provides access to the command stack.
Geometry
  condenseWhite : Boolean
condenseWhite property for the textField.
RasterText
 InheritedcurrentState : String
The current view state.
Geometry
 InheriteddecoratorCollection : DecoratorCollection
Access to the Decorator collection object for this Geometry object.
Geometry
 Inheriteddecorators : Array
A array of IDecorator objects to be applied on this Geometry.
Geometry
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
  embedFonts : Boolean
embedFonts property for the textField.
RasterText
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
  fill : IGraphicsFill
RasterText
 Inheritedfilters : Array
An array of BitmapFilter objects applied to this Geometry.
Geometry
  fontFamily : String
RasterText
  fontSize : Number
RasterText
  fontWeight : String
RasterText
 InheritedgeometricLength : Number
Returns geometric length of this object.
Geometry
 Inheritedgeometry : Array
A array of IGeometryComposition objects.
Geometry
 InheritedgeometryCollection : GeometryCollection
Access to the Degrafa geometry collection object for this geometry object.
Geometry
 InheritedgraphicsTarget : Array
One or more display object's that this Geometry is to be drawn to.
Geometry
 InheritedgraphicsTargetCollection : DisplayObjectCollection
Access to the Degrafa target collection object for this geometry object.
Geometry
  gridFitType : String
gridFitType property for the textField.
RasterText
 InheritedhasDecorators : Boolean
Returns true if this Geometry has decorators.
Geometry
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
 InheritedhasFilters : Boolean
Returns true if this Geometry has filters.
Geometry
 InheritedhasLayout : Boolean
Returns true if this Geometry has layout.
Geometry
 InheritedhasStates : Boolean
Returns true if this Geometry has states.
Geometry
 InheritedhasTriggers : Boolean
Returns true if this Geometry has triggers.
Geometry
  height : Number
The height of the text element.
RasterText
 InheritedhorizontalCenter : Number
When set, if left or right is not set, the layout will be centered horizontally offset by the numeric value of this property.
Geometry
  htmlText : String
htmlText property for the textField.
RasterText
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
  indent : Object
RasterText
 InheritedinheritFill : Boolean
If set to true and no fill is defined and there is a parent object then this object will walk up through the parents to retrive a fill object.
Geometry
 InheritedinheritStroke : Boolean
If set to true and no stroke is defined and there is a parent object then this object will walk up through the parents to retrive a stroke object.
Geometry
 Inheritedinvalidated : Boolean
Specifies whether this object is to be re calculated on the next cycle.
Geometry
 InheritedisInitialized : Boolean
DegrafaObject
 InheritedisInvalidated : Boolean
Returns true if this Geometry object is invalidated
Geometry
 InheritedisRootGeometry : Boolean
Returns true if this Geometry object is a root Geometry Object.
Geometry
  italic : Boolean
RasterText
  kerning : Boolean
RasterText
 InheritedlayoutConstraint : LayoutConstraint
The layout constraint that is used for positioning/sizing this geometry object.
Geometry
 Inherited_layoutMatrix : Matrix
Access to the layout matrix if this Geometry has layout.
Geometry
  layoutMode : String
[read-only] The layout mode associated with this RasterText.
RasterText
 InheritedlayoutRectangle : Rectangle
Returns the constraint based layout rectangle for this object or bounds if no layout constraint is specified.
Geometry
  leading : int
RasterText
 Inheritedleft : Number
When set, the left of the layout will be located offset by the value of this property multiplied by the containing width.
Geometry
  leftMargin : Number
RasterText
  length : int
[read-only] length property for the textField.
RasterText
  letterSpacing : Number
RasterText
 InheritedmaintainAspectRatio : Boolean
When true, the size of the layout will always maintain an aspect ratio relative to the ratio of the current width and height properties, even if those properties are not in control of the height and width of the layout.
Geometry
 Inheritedmask : IGeometryComposition
A separate geometry object to use as a mask when rendering this geometry.
Geometry
 InheritedmaskMode : String
The mode used when this object is being masked by the geometry assigned to the mask property.
Geometry
 InheritedmaxHeight : Number
The maximum height that can be applied to the layout.
Geometry
 InheritedmaxWidth : Number
The maximum width that can be applied to the layout.
Geometry
 InheritedmaxX : Number
The maximum x location that can be applied to the layout.
Geometry
 InheritedmaxY : Number
The maximum y location that can be applied to the layout.
Geometry
 InheritedminHeight : Number
The minimum height that can be applied to the layout.
Geometry
 InheritedminWidth : Number
The minimum width that can be applied to the layout.
Geometry
 InheritedminX : Number
The minimum x location that can be applied to the layout.
Geometry
 InheritedminY : Number
The minimum y location that can be applied to the layout.
Geometry
  multiline : Boolean
multiline property for the textField.
RasterText
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  numLines : int
[read-only] numLines property for the textField.
RasterText
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
 InheritedpercentHeight : Number
When set, the height of the layout will be set as the value of this property multiplied by the containing height.
Geometry
 InheritedpercentWidth : Number
When set, the width of the layout will be set as the value of this property multiplied by the containing width.
Geometry
 Inheritedright : Number
When set, the right of the layout will be located offset by the value of this property multiplied by the containing width.
Geometry
  rightMargin : Number
RasterText
  sharpness : Number
sharpness property for the textField.
RasterText
  size : Number
RasterText
 Inheritedstate : String
The state at which to draw this object.
Geometry
 InheritedstateEvent : String
The state event at which to draw this object.
Geometry
 Inheritedstates : Array
An array of states defined for this Geometry.
Geometry
 Inheritedstroke : IGraphicsStroke
Defines the stroke object that will be used for rendering this geometry object.
Geometry
 InheritedstyleName : Object
The css style name associated with this Geometry.
Geometry
  styleSheet : StyleSheet
styleSheet property for the textField.
RasterText
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  tabStops : Array
RasterText
 InheritedtargetCoordinateSpace : DisplayObject
The display object that defines the coordinate system to use.
Geometry
  text : String
text property for the textField.
RasterText
  textColor : uint
textColor property for the textField.
RasterText
  textFormat : DegrafaTextFormat
RasterText
  textWidth : Number
[read-only] textHeight property for the textField.
RasterText
  thickness : Number
thickness property for the textField.
RasterText
 Inheritedtop : Number
When set, the top of the layout will be located offset from the top of it's parent.
Geometry
 Inheritedtransform : ITransform
Defines the transform object that will be used for rendering this geometry object.
Geometry
  transformBeforeRender : Boolean
[read-only] A setting to determine at what point transforms are performed when capturing the bitmap representation of this object internally before final rendering.
RasterText
 InheritedtransformBounds : Rectangle
Returns a transformed version of this objects bounds as represented by a Rectangle.
Geometry
 InheritedtransformContext : Matrix
A reference to the transformation matrix context within which local transforms will be applied.
Geometry
 Inheritedtriggers : Array
An array of ITrigger objects that this Geometry object will use.
Geometry
  underline : Boolean
RasterText
 InheritedverticalCenter : Number
When set, if top or bottom is not set, the layout will be centered vertically offset by the numeric value of this property.
Geometry
 Inheritedvisible : Boolean
Controls the visibility of this geometry object.
Geometry
  width : Number
The width of the text element.
RasterText
  wordWrap : Boolean
wordWrap property for the textField.
RasterText
  x : Number
The x-axis coordinate of the upper left point of the text element.
RasterText
  y : Number
The y-axis coordinate of the upper left point of the text element.
RasterText
Protected Properties
 PropertyDefined by
  _embedded : Boolean
RasterText
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
 Inherited_fill : IGraphicsFill
Geometry
  internalbackground : Shape
RasterText
  internalMaskee : Shape
RasterText
  sprite : Sprite
RasterText
 Inherited_stroke : IGraphicsStroke
Geometry
  textField : TextField
RasterText
Public Methods
 MethodDefined by
  

The RasterText constructor has no arguments .

RasterText
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
DegrafaObject
 Inherited
angleAt(t:Number):Number
Returns the angle of a point t(0-1) on the path.
Geometry
  
calculateLayout(childBounds:Rectangle = null):void
Performs the specific layout work required by this Geometry.
RasterText
 Inherited
Clears all graphics targets specified in the graphicsTarget array.
Geometry
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
DegrafaObject
  
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry/IDisplayObjectProxy objects.
RasterText
 Inherited
Requests a draw for each graphics target specified in the graphicsTarget array.
Geometry
 Inherited
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
Geometry
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
  
initFill(graphics:Graphics, rc:Rectangle):void
Initialise the fill for RasterText.
RasterText
 Inherited
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
DegrafaObject
  
initStroke(graphics:Graphics, rc:Rectangle):void
Initialise the stroke/border for this RasterText object.
RasterText
 Inherited
pointAt(t:Number):Point
Returns the point at t(0-1) on this object.
Geometry
  
preDraw():void
Performs any pre calculation that is required to successfully render this element.
RasterText
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
styleChanged(styleProp:String):void
Called when the value of a style property is changed.
Geometry
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
DegrafaObject
Protected Methods
 MethodDefined by
  
propertyChangeHandler(event:PropertyChangeEvent):void
RasterText
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Public Constants
 ConstantDefined by
  ADJUST : String = "adjust"
[static]
RasterText
  SCALE : String = "scale"
[static]
RasterText
Property detail
accessibilityPropertiesproperty
accessibilityProperties:AccessibilityProperties  [read-write]

accessibilityProperties property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get accessibilityProperties():AccessibilityProperties
    public function set accessibilityProperties(value:AccessibilityProperties):void

See also

flash.text.TextField
alignproperty 
align:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get align():String
    public function set align(value:String):void
alphaproperty 
alpha:Number  [read-write]

alpha property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void

See also

flash.text.TextField
antiAliasTypeproperty 
antiAliasType:String  [read-write]

antiAliasType property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get antiAliasType():String
    public function set antiAliasType(value:String):void

See also

flash.text.TextField
autoSizeproperty 
autoSize:String  [read-write]

autoSize property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get autoSize():String
    public function set autoSize(value:String):void

See also

flash.text.TextField
autoSizeFieldproperty 
autoSizeField:Boolean  [read-write]

Autosize the text field to text size. Default value is false. When set to true the TextField object will size to fit the height and width of the text. If layout is active on this object and its layoutMode is set to "adjust", then this setting will be overridden by the layout constraints. If layoutMode is set to "scale" then layout scaling will be applied after the textfield has been autosized to its contents (not yet available, planned for future release)

This property can be used as the source for data binding.

Implementation
    public function get autoSizeField():Boolean
    public function set autoSizeField(value:Boolean):void
availableEmbeddedFontsproperty 
availableEmbeddedFonts:Array  [read-only]

Utility function for checking fonts

This property can be used as the source for data binding.

Implementation
    public static function get availableEmbeddedFonts():Array
backgroundproperty 
background:Boolean  [read-write]

background property for the textField. Activates the backgroundFill.

This property can be used as the source for data binding.

Implementation
    public function get background():Boolean
    public function set background(value:Boolean):void

See also

flash.text.TextField
backgroundColorproperty 
backgroundColor:Object  [read-write]

Similar to backgroundColor property for the textField. A shortcut setting for backgroundFill's color property. If used, and a non-SolidFill (e.g gradientFill) is currently being used as a backgroundFill, then this will force creation of a new SolidFill in its place.

This property can be used as the source for data binding.

Implementation
    public function get backgroundColor():Object
    public function set backgroundColor(value:Object):void

See also

flash.text.TextField
backgroundFillproperty 
backgroundFill:IGraphicsFill  [read-write]

A Degrafa Fill used in the background of this RasterText area.

This property can be used as the source for data binding.

Implementation
    public function get backgroundFill():IGraphicsFill
    public function set backgroundFill(value:IGraphicsFill):void
blockIndentproperty 
blockIndent:Object  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get blockIndent():Object
    public function set blockIndent(value:Object):void
boldproperty 
bold:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get bold():Boolean
    public function set bold(value:Boolean):void
borderproperty 
border:Boolean  [read-write]

border property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get border():Boolean
    public function set border(value:Boolean):void

See also

flash.text.TextField
borderColorproperty 
borderColor:Object  [read-write]

borderColor property for the textField. This property has additional support for extended Degrafa color specifications, for example "red" as a color key.

This property can be used as the source for data binding.

Implementation
    public function get borderColor():Object
    public function set borderColor(value:Object):void

See also

flash.text.TextField
boundsproperty 
bounds:Rectangle  [read-only]

The tight bounds of this element as represented by a Rectangle object.

This property can be used as the source for data binding.

Implementation
    public function get bounds():Rectangle
bulletproperty 
bullet:Object  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get bullet():Object
    public function set bullet(value:Object):void
condenseWhiteproperty 
condenseWhite:Boolean  [read-write]

condenseWhite property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get condenseWhite():Boolean
    public function set condenseWhite(value:Boolean):void

See also

flash.text.TextField
_embeddedproperty 
protected var _embedded:Boolean
embedFontsproperty 
embedFonts:Boolean  [read-write]

embedFonts property for the textField. setting the fontFamily can also change this setting in RasterText.

This property can be used as the source for data binding.

Implementation
    public function get embedFonts():Boolean
    public function set embedFonts(value:Boolean):void

See also

flash.text.TextField
fillproperty 
fill:IGraphicsFill  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fill():IGraphicsFill
    public function set fill(value:IGraphicsFill):void
fontFamilyproperty 
fontFamily:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fontFamily():String
    public function set fontFamily(value:String):void
fontSizeproperty 
fontSize:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fontSize():Number
    public function set fontSize(value:Number):void
fontWeightproperty 
fontWeight:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fontWeight():String
    public function set fontWeight(value:String):void
gridFitTypeproperty 
gridFitType:String  [read-write]

gridFitType property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get gridFitType():String
    public function set gridFitType(value:String):void

See also

flash.text.TextField
heightproperty 
height:Number  [read-write]

The height of the text element. This may change depending on autoSizeField settings (true) and/or layoutMode settings (adjust).

This property can be used as the source for data binding.

Implementation
    public function get height():Number
    public function set height(value:Number):void
htmlTextproperty 
htmlText:String  [read-write]

htmlText property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get htmlText():String
    public function set htmlText(value:String):void

See also

flash.text.TextField
indentproperty 
indent:Object  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get indent():Object
    public function set indent(value:Object):void
internalbackgroundproperty 
protected var internalbackground:Shape
internalMaskeeproperty 
protected var internalMaskee:Shape
italicproperty 
italic:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get italic():Boolean
    public function set italic(value:Boolean):void
kerningproperty 
kerning:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get kerning():Boolean
    public function set kerning(value:Boolean):void
layoutModeproperty 
layoutMode:String  [read-only]

The layout mode associated with this RasterText. Currently fixed at 'adjust' which means that layout adjusts the size of the text field instead of scaling it. A 'scale' option will be available in a future release.

This property can be used as the source for data binding.

Implementation
    public function get layoutMode():String
leadingproperty 
leading:int  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get leading():int
    public function set leading(value:int):void
leftMarginproperty 
leftMargin:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get leftMargin():Number
    public function set leftMargin(value:Number):void
lengthproperty 
length:int  [read-only]

length property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get length():int

See also

flash.text.TextField
letterSpacingproperty 
letterSpacing:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get letterSpacing():Number
    public function set letterSpacing(value:Number):void
multilineproperty 
multiline:Boolean  [read-write]

multiline property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get multiline():Boolean
    public function set multiline(value:Boolean):void

See also

flash.text.TextField
numLinesproperty 
numLines:int  [read-only]

numLines property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get numLines():int

See also

flash.text.TextField
rightMarginproperty 
rightMargin:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get rightMargin():Number
    public function set rightMargin(value:Number):void
sharpnessproperty 
sharpness:Number  [read-write]

sharpness property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get sharpness():Number
    public function set sharpness(value:Number):void

See also

flash.text.TextField
sizeproperty 
size:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get size():Number
    public function set size(value:Number):void
spriteproperty 
protected var sprite:Sprite
styleSheetproperty 
styleSheet:StyleSheet  [read-write]

styleSheet property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get styleSheet():StyleSheet
    public function set styleSheet(value:StyleSheet):void

See also

flash.text.TextField
tabStopsproperty 
tabStops:Array  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get tabStops():Array
    public function set tabStops(value:Array):void
textproperty 
text:String  [read-write]

text property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get text():String
    public function set text(value:String):void

See also

flash.text.TextField
textColorproperty 
textColor:uint  [read-write]

textColor property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get textColor():uint
    public function set textColor(value:uint):void

See also

flash.text.TextField
textFieldproperty 
protected var textField:TextField
textFormatproperty 
textFormat:DegrafaTextFormat  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get textFormat():DegrafaTextFormat
    public function set textFormat(value:DegrafaTextFormat):void
textWidthproperty 
textWidth:Number  [read-only]

textHeight property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get textWidth():Number

See also

flash.text.TextField
thicknessproperty 
thickness:Number  [read-write]

thickness property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get thickness():Number
    public function set thickness(value:Number):void

See also

flash.text.TextField
transformBeforeRenderproperty 
transformBeforeRender:Boolean  [read-only]

A setting to determine at what point transforms are performed when capturing the bitmap representation of this object internally before final rendering. This is currently fixed as false for RasterText. A true option may be made available in a future release.

This property can be used as the source for data binding.

Implementation
    public function get transformBeforeRender():Boolean
underlineproperty 
underline:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get underline():Boolean
    public function set underline(value:Boolean):void
widthproperty 
width:Number  [read-write]

The width of the text element. This may change depending on autoSizeField settings (true) and/or layoutMode settings (adjust).

This property can be used as the source for data binding.

Implementation
    public function get width():Number
    public function set width(value:Number):void
wordWrapproperty 
wordWrap:Boolean  [read-write]

wordWrap property for the textField.

This property can be used as the source for data binding.

Implementation
    public function get wordWrap():Boolean
    public function set wordWrap(value:Boolean):void

See also

flash.text.TextField
xproperty 
x:Number  [read-write]

The x-axis coordinate of the upper left point of the text element. If not specified a default value of 0 is used.

This property can be used as the source for data binding.

Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number  [read-write]

The y-axis coordinate of the upper left point of the text element. If not specified a default value of 0 is used.

This property can be used as the source for data binding.

Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor detail
RasterText()constructor
public function RasterText()

The RasterText constructor has no arguments . RasterText does not inherit stroke or fill by default unlike other Geometry items.

Method detail
calculateLayout()method
public override function calculateLayout(childBounds:Rectangle = null):void

Performs the specific layout work required by this Geometry.

Parameters
childBounds:Rectangle (default = null) — the bounds to be layed out. If not specified a rectangle of (0,0,1,1) is used or the most appropriate size is calculated.
draw()method 
public override function draw(graphics:Graphics, rc:Rectangle):void

Begins the draw phase for geometry/IDisplayObjectProxy objects. All geometry objects override this to do their specific rendering.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.
initFill()method 
public override function initFill(graphics:Graphics, rc:Rectangle):void

Initialise the fill for RasterText. This overrides Geometry to implement a specific combination for RasterText.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.
initStroke()method 
public override function initStroke(graphics:Graphics, rc:Rectangle):void

Initialise the stroke/border for this RasterText object. Typically only called by draw. RasterText only has a visible border stroke if the border property is set to true.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.
preDraw()method 
public override function preDraw():void

Performs any pre calculation that is required to successfully render this element. Including bounds calculations and lower level drawing command storage. Each geometry object overrides this and is responsible for it's own pre calculation cycle.

propertyChangeHandler()method 
protected override function propertyChangeHandler(event:PropertyChangeEvent):voidParameters
event:PropertyChangeEvent
Constant detail
ADJUSTconstant
public static const ADJUST:String = "adjust"
SCALEconstant 
public static const SCALE:String = "scale"