Packageorg.purepdf.elements.images
Classpublic class ImageElement
InheritanceImageElement Inheritance RectangleElement Inheritance Object
Implements IElement
Subclasses ImageRaw, ImageTemplate, ImageWMF, ImgCCITT, Jpeg



Public Properties
 PropertyDefined By
  absoluteX : Number
[read-only]
ImageElement
  absoluteY : Number
[read-only]
ImageElement
  additional : PdfDictionary
ImageElement
  alignment : int
ImageElement
  annotation : Annotation
ImageElement
 InheritedbackgroundColor : RGBColor
RectangleElement
 Inheritedborder : int
RectangleElement
 InheritedborderColor : RGBColor
RectangleElement
 InheritedborderColorBottom : RGBColor
RectangleElement
 InheritedborderColorLeft : RGBColor
RectangleElement
 InheritedborderColorRight : RGBColor
RectangleElement
 InheritedborderColorTop : RGBColor
RectangleElement
 InheritedborderSides : int
[write-only] Enables/Disables the border on the specified sides.
RectangleElement
 InheritedborderWidth : Number
RectangleElement
 InheritedborderWidthBottom : Number
RectangleElement
 InheritedborderWidthLeft : Number
RectangleElement
 InheritedborderWidthRight : Number
RectangleElement
 InheritedborderWidthTop : Number
RectangleElement
  bpc : int
[read-only]
ImageElement
  colorspace : int
[read-only]
ImageElement
  compressionLevel : int
ImageElement
  deflated : Boolean
ImageElement
  directReference : PdfIndirectReference
[read-only]
ImageElement
 InheritedgrayFill : Number
RectangleElement
  hasAbsoluteX : Boolean
[read-only]
ImageElement
  hasAbsoluteY : Boolean
[read-only]
ImageElement
 Inheritedheight : Number
[read-only]
RectangleElement
  imageMask : ImageElement
ImageElement
  imageRotation : Number
[read-only] Get the current Image rotation in radians
ImageElement
  indentationLeft : Number
[read-only]
ImageElement
  indentationRight : Number
[read-only]
ImageElement
 InheritedisContent : Boolean
[read-only]
RectangleElement
  isImgRaw : Boolean
[read-only]
ImageElement
  isImgTemplate : Boolean
[read-only]
ImageElement
  isInterpolated : Boolean
[read-only]
ImageElement
  isInverted : Boolean
ImageElement
  isMask : Boolean
[read-only]
ImageElement
 InheritedisNestable : Boolean
[read-only]
RectangleElement
  isSmask : Boolean
[read-only]
ImageElement
  layer : IPdfOCG
[read-only]
ImageElement
  matrix : Vector.<Number>
[read-only]
ImageElement
  mySerialId : Number
[read-only]
ImageElement
  originalData : ByteArray
ImageElement
  originalType : int
ImageElement
  rawData : ByteArray
[read-only]
ImageElement
 Inheritedrotation : int
[read-only]
RectangleElement
  scaledHeight : Number
[read-only]
ImageElement
  scaledWidth : Number
[read-only]
ImageElement
  spacingAfter : Number
ImageElement
  spacingBefore : Number
ImageElement
  templateData : PdfTemplate
ImageElement
  transparency : Vector.<int>
ImageElement
  type : int
[override] [read-only]
ImageElement
  url : String
ImageElement
 InheriteduseVariableBorders : Boolean
[read-only]
RectangleElement
 Inheritedwidth : Number
[read-only]
RectangleElement
  widthPercentage : Number
[read-only]
ImageElement
  xyRatio : Number
ImageElement
Protected Properties
 PropertyDefined By
  _absoluteX : Number = NaN
ImageElement
  _absoluteY : Number = NaN
ImageElement
  _additional : PdfDictionary
ImageElement
  _alignment : int
ImageElement
  alt : String
ImageElement
  _annotation : Annotation = null
ImageElement
 Inherited_backgroundColor : RGBColor = null
RectangleElement
 Inherited_border : int = -1
RectangleElement
 Inherited_borderColor : RGBColor = null
RectangleElement
 Inherited_borderColorBottom : RGBColor = null
RectangleElement
 Inherited_borderColorLeft : RGBColor = null
RectangleElement
 Inherited_borderColorRight : RGBColor = null
RectangleElement
 Inherited_borderColorTop : RGBColor = null
RectangleElement
 Inherited_borderWidth : Number = -1
RectangleElement
 Inherited_borderWidthBottom : Number = -1
RectangleElement
 Inherited_borderWidthLeft : Number = -1
RectangleElement
 Inherited_borderWidthRight : Number = -1
RectangleElement
 Inherited_borderWidthTop : Number = -1
RectangleElement
  _bpc : int = 1
ImageElement
  _colorspace : int = -1
ImageElement
  _compressionLevel : int
ImageElement
  _deflated : Boolean = false
ImageElement
  dpiX : int = 0
ImageElement
  dpiY : int = 0
ImageElement
  _imageMask : ImageElement
ImageElement
  _indentationLeft : Number = 0
ImageElement
  _indentationRight : Number = 0
ImageElement
  initialRotation : Number = 0
ImageElement
  _interpolation : Boolean
ImageElement
  _invert : Boolean = false
ImageElement
  _layer : IPdfOCG
ImageElement
 Inheritedllx : Number
RectangleElement
 Inheritedlly : Number
RectangleElement
  _mask : Boolean = false
ImageElement
  _mySerialId : Number
ImageElement
  _originalData : ByteArray
ImageElement
  _originalType : int = 0
ImageElement
  plainHeight : Number
ImageElement
  plainWidth : Number
ImageElement
  _rawData : ByteArray
ImageElement
 Inherited_rotation : int = 0
RectangleElement
  rotationRadians : Number
ImageElement
  _scaledHeight : Number
ImageElement
  _scaledWidth : Number
ImageElement
  serialId : Number = 0
[static]
ImageElement
  _smask : Boolean
ImageElement
  _spacingAfter : Number = 0
ImageElement
  _spacingBefore : Number = 0
ImageElement
  template : Vector.<PdfTemplate>
ImageElement
  _transparency : Vector.<int>
ImageElement
  _type : int
ImageElement
  _url : String
ImageElement
 Inheritedurx : Number
RectangleElement
 Inheritedury : Number
RectangleElement
 Inherited_useVariableBorders : Boolean = false
RectangleElement
  _XYRatio : Number = 0
ImageElement
Public Methods
 MethodDefined By
  
ImageElement(obj:Object)
ImageElement
 Inherited
[static]
RectangleElement
 Inherited
RectangleElement
 Inherited
disableBorderSide(side:int):void
RectangleElement
 Inherited
enableBorderSide(side:int):void
RectangleElement
  
[static] Create an ImageElement instance from a BitmapData.
ImageElement
 Inherited
getBottom(margin:Number = 0):Number
RectangleElement
  
getCCITTInstance(width:int, height:int, reverseBits:Boolean, typeCCITT:int, parameters:int, data:Bytes, transparency:Vector.<int>):ImageElement
[static] Creates an Image with CCITT G3 or G4 compression.
ImageElement
 Inherited
getChunks():Vector.<Object>
RectangleElement
  
[static]
ImageElement
  
getInstance(buffer:ByteArray):ImageElement
[static] Create a new ImageElement instance from the passed image data Currently allowed image types are: jpeg, png, gif (and animated gif), tiff
ImageElement
 Inherited
getLeft(margin:Number = 0):Number
RectangleElement
  
getRawInstance(width:int, height:int, components:int, bpc:int, data:ByteArray, transparency:Vector.<int> = null):ImageElement
[static]
ImageElement
 Inherited
getRight(margin:Number = 0):Number
RectangleElement
  
[static]
ImageElement
 Inherited
getTop(margin:Number = 0):Number
RectangleElement
 Inherited
hasBorder(borderType:int):Boolean
RectangleElement
 Inherited
hasBorders():Boolean
RectangleElement
  
ImageElement
  
makeMask():void
ImageElement
 Inherited
normalize():void
Normalizes the rectangle.
RectangleElement
 Inherited
process(listener:IElementListener):Boolean
RectangleElement
 Inherited
rectangle(top:Number, bottom:Number):RectangleElement
RectangleElement
 Inherited
rotate(value:uint = 90):RectangleElement
Return a new rotated RectangleElement ( rotation of the current rectangle plus the value passed )
RectangleElement
  
scaleAbsolute(newWidth:Number, newHeight:Number):void
Scale the Image to an absolute width and height
ImageElement
  
scaleAbsoluteHeight(newHeight:Number):void
Scale the image to an absolute height
ImageElement
  
scaleAbsoluteWidth(newWidth:Number):void
Scale the image to an absolute width
ImageElement
  
scalePercent(percentX:Number, percentY:Number):void
Scale the width and the height of the Image to an absolute percentage
ImageElement
  
scaleToFit(fitWidth:Number, fitHeight:Number):void
Scales the Image to fit an absolute width and height.
ImageElement
  
setAbsolutePosition(absX:Number, absY:Number):void
Set the absolute position of the Image
ImageElement
 Inherited
setBottom($lly:Number):void
RectangleElement
  
setDpi(x:int, y:int):void
ImageElement
 Inherited
setLeft($llx:Number):void
RectangleElement
 Inherited
setRight($urx:Number):void
RectangleElement
  
setRotation(r:Number):void
Set the rotation of the Image in radians
ImageElement
  
setRotationDegrees(deg:Number):void
Set the rotation of the Image in degrees
ImageElement
 Inherited
setTop($ury:Number):void
RectangleElement
  
setWidthPercentage(value:Number):void
ImageElement
 Inherited
Copies each of the parameters, except the position
RectangleElement
 Inherited
toString():String
RectangleElement
Protected Methods
 MethodDefined By
  
getSerialId():Number
[static] Creates a new serial id.
ImageElement
Public Constants
 ConstantDefined By
 InheritedALL : int
[static]
RectangleElement
  AX : int = 0
[static]
ImageElement
  AY : int = 1
[static]
ImageElement
 InheritedBOTTOM : int = 2
[static]
RectangleElement
 InheritedBOX : int = 15.0
[static]
RectangleElement
  BX : int = 2
[static]
ImageElement
  BY : int = 3
[static]
ImageElement
  CCITT_BLACKIS1 : int = 1
[static]
ImageElement
  CCITT_ENCODEDBYTEALIGN : int = 2
[static]
ImageElement
  CCITT_ENDOFBLOCK : int = 8
[static]
ImageElement
  CCITT_ENDOFLINE : int = 4
[static]
ImageElement
  CCITTG3_1D : int = 0x101
[static]
ImageElement
  CCITTG3_2D : int = 0x102
[static]
ImageElement
  CCITTG4 : int = 0x100
[static]
ImageElement
  CX : int = 4
[static]
ImageElement
  CY : int = 5
[static]
ImageElement
  DEFAULT : int = 0
[static]
ImageElement
  DX : int = 6
[static]
ImageElement
  DY : int = 7
[static]
ImageElement
  LEFT : int = 0
[static]
ImageElement
  MIDDLE : int = 1
[static]
ImageElement
 InheritedNO_BORDER : int = 0
[static]
RectangleElement
  ORIGINAL_BMP : int = 4
[static]
ImageElement
  ORIGINAL_GIF : int = 3
[static]
ImageElement
  ORIGINAL_JBIG2 : int = 9
[static]
ImageElement
  ORIGINAL_JPEG : int = 1
[static]
ImageElement
  ORIGINAL_JPEG2000 : int = 8
[static]
ImageElement
  ORIGINAL_NONE : int = 0
[static]
ImageElement
  ORIGINAL_PNG : int = 2
[static]
ImageElement
  ORIGINAL_PS : int = 7
[static]
ImageElement
  ORIGINAL_TIFF : int = 5
[static]
ImageElement
  ORIGINAL_WMF : int = 6
[static]
ImageElement
  RIGHT : int = 2
[static]
ImageElement
  TEXTWRAP : int = 4
[static]
ImageElement
 InheritedTOP : int = 1
[static]
RectangleElement
 InheritedUNDEFINED : int = -1
[static]
RectangleElement
  UNDERLYING : int = 8
[static]
ImageElement
Property Detail
_absoluteXproperty
protected var _absoluteX:Number = NaN

_absoluteYproperty 
protected var _absoluteY:Number = NaN

_additionalproperty 
protected var _additional:PdfDictionary

_alignmentproperty 
protected var _alignment:int

_annotationproperty 
protected var _annotation:Annotation = null

_bpcproperty 
protected var _bpc:int = 1

_colorspaceproperty 
protected var _colorspace:int = -1

_compressionLevelproperty 
protected var _compressionLevel:int

_deflatedproperty 
protected var _deflated:Boolean = false

_imageMaskproperty 
protected var _imageMask:ImageElement

_indentationLeftproperty 
protected var _indentationLeft:Number = 0

_indentationRightproperty 
protected var _indentationRight:Number = 0

_interpolationproperty 
protected var _interpolation:Boolean

_invertproperty 
protected var _invert:Boolean = false

_layerproperty 
protected var _layer:IPdfOCG

_maskproperty 
protected var _mask:Boolean = false

_mySerialIdproperty 
protected var _mySerialId:Number

_originalDataproperty 
protected var _originalData:ByteArray

_originalTypeproperty 
protected var _originalType:int = 0

_rawDataproperty 
protected var _rawData:ByteArray

_scaledHeightproperty 
protected var _scaledHeight:Number

_scaledWidthproperty 
protected var _scaledWidth:Number

_smaskproperty 
protected var _smask:Boolean

_spacingAfterproperty 
protected var _spacingAfter:Number = 0

_spacingBeforeproperty 
protected var _spacingBefore:Number = 0

_transparencyproperty 
protected var _transparency:Vector.<int>

_typeproperty 
protected var _type:int

_urlproperty 
protected var _url:String

_XYRatioproperty 
protected var _XYRatio:Number = 0

absoluteXproperty 
absoluteX:Number  [read-only]


Implementation
    public function get absoluteX():Number
absoluteYproperty 
absoluteY:Number  [read-only]


Implementation
    public function get absoluteY():Number
additionalproperty 
additional:PdfDictionary


Implementation
    public function get additional():PdfDictionary
    public function set additional(value:PdfDictionary):void
alignmentproperty 
alignment:int


Implementation
    public function get alignment():int
    public function set alignment(value:int):void
altproperty 
protected var alt:String

annotationproperty 
annotation:Annotation


Implementation
    public function get annotation():Annotation
    public function set annotation(value:Annotation):void
bpcproperty 
bpc:int  [read-only]


Implementation
    public function get bpc():int
colorspaceproperty 
colorspace:int  [read-only]


Implementation
    public function get colorspace():int
compressionLevelproperty 
compressionLevel:int


Implementation
    public function get compressionLevel():int
    public function set compressionLevel(value:int):void
deflatedproperty 
deflated:Boolean


Implementation
    public function get deflated():Boolean
    public function set deflated(value:Boolean):void
directReferenceproperty 
directReference:PdfIndirectReference  [read-only]


Implementation
    public function get directReference():PdfIndirectReference
dpiXproperty 
protected var dpiX:int = 0

dpiYproperty 
protected var dpiY:int = 0

hasAbsoluteXproperty 
hasAbsoluteX:Boolean  [read-only]


Implementation
    public function get hasAbsoluteX():Boolean
hasAbsoluteYproperty 
hasAbsoluteY:Boolean  [read-only]


Implementation
    public function get hasAbsoluteY():Boolean
imageMaskproperty 
imageMask:ImageElement


Implementation
    public function get imageMask():ImageElement
    public function set imageMask(value:ImageElement):void
imageRotationproperty 
imageRotation:Number  [read-only]

Get the current Image rotation in radians


Implementation
    public function get imageRotation():Number
indentationLeftproperty 
indentationLeft:Number  [read-only]


Implementation
    public function get indentationLeft():Number
indentationRightproperty 
indentationRight:Number  [read-only]


Implementation
    public function get indentationRight():Number
initialRotationproperty 
protected var initialRotation:Number = 0

isImgRawproperty 
isImgRaw:Boolean  [read-only]


Implementation
    public function get isImgRaw():Boolean
isImgTemplateproperty 
isImgTemplate:Boolean  [read-only]


Implementation
    public function get isImgTemplate():Boolean
isInterpolatedproperty 
isInterpolated:Boolean  [read-only]


Implementation
    public function get isInterpolated():Boolean
isInvertedproperty 
isInverted:Boolean


Implementation
    public function get isInverted():Boolean
    public function set isInverted(value:Boolean):void
isMaskproperty 
isMask:Boolean  [read-only]


Implementation
    public function get isMask():Boolean
isSmaskproperty 
isSmask:Boolean  [read-only]


Implementation
    public function get isSmask():Boolean
layerproperty 
layer:IPdfOCG  [read-only]


Implementation
    public function get layer():IPdfOCG
matrixproperty 
matrix:Vector.<Number>  [read-only]


Implementation
    public function get matrix():Vector.<Number>
mySerialIdproperty 
mySerialId:Number  [read-only]


Implementation
    public function get mySerialId():Number
originalDataproperty 
originalData:ByteArray


Implementation
    public function get originalData():ByteArray
    public function set originalData(value:ByteArray):void
originalTypeproperty 
originalType:int


Implementation
    public function get originalType():int
    public function set originalType(value:int):void
plainHeightproperty 
protected var plainHeight:Number

plainWidthproperty 
protected var plainWidth:Number

rawDataproperty 
rawData:ByteArray  [read-only]


Implementation
    public function get rawData():ByteArray
rotationRadiansproperty 
protected var rotationRadians:Number

scaledHeightproperty 
scaledHeight:Number  [read-only]


Implementation
    public function get scaledHeight():Number
scaledWidthproperty 
scaledWidth:Number  [read-only]


Implementation
    public function get scaledWidth():Number
serialIdproperty 
protected static var serialId:Number = 0

spacingAfterproperty 
spacingAfter:Number


Implementation
    public function get spacingAfter():Number
    public function set spacingAfter(value:Number):void
spacingBeforeproperty 
spacingBefore:Number


Implementation
    public function get spacingBefore():Number
    public function set spacingBefore(value:Number):void
templateproperty 
protected var template:Vector.<PdfTemplate>

templateDataproperty 
templateData:PdfTemplate


Implementation
    public function get templateData():PdfTemplate
    public function set templateData(value:PdfTemplate):void
transparencyproperty 
transparency:Vector.<int>


Implementation
    public function get transparency():Vector.<int>
    public function set transparency(value:Vector.<int>):void
typeproperty 
type:int  [read-only] [override]


Implementation
    public function get type():int
urlproperty 
url:String


Implementation
    public function get url():String
    public function set url(value:String):void
widthPercentageproperty 
widthPercentage:Number  [read-only]


Implementation
    public function get widthPercentage():Number
xyRatioproperty 
xyRatio:Number


Implementation
    public function get xyRatio():Number
    public function set xyRatio(value:Number):void
Constructor Detail
ImageElement()Constructor
public function ImageElement(obj:Object)



Parameters
obj:Object
Method Detail
getBitmapDataInstance()method
public static function getBitmapDataInstance(data:BitmapData):ImageElement

Create an ImageElement instance from a BitmapData. The image will be encoded using a TIFF encoder and compressed into a raw bytearray

Parameters

data:BitmapData

Returns
ImageElement
getCCITTInstance()method 
public static function getCCITTInstance(width:int, height:int, reverseBits:Boolean, typeCCITT:int, parameters:int, data:Bytes, transparency:Vector.<int>):ImageElement

Creates an Image with CCITT G3 or G4 compression. It assumes that the data bytes are already compressed.

Parameters

width:int — the exact width of the image
 
height:int — the exact height of the image
 
reverseBits:Boolean — reverses the bits in data. Bit 0 is swapped with bit 7 and so on
 
typeCCITT:int — the type of compression in data. It can be CCITTG4, CCITTG31D, CCITTG32D
 
parameters:int — parameters associated with this stream. Possible values are CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFLINE and CCITT_ENDOFBLOCK or a combination of them
 
data:Bytes
 
transparency:Vector.<int>

Returns
ImageElement

Throws
BadElementError
getImageInstance()method 
public static function getImageInstance(image:ImageElement):ImageElement

Parameters

image:ImageElement

Returns
ImageElement
getInstance()method 
public static function getInstance(buffer:ByteArray):ImageElement

Create a new ImageElement instance from the passed image data Currently allowed image types are: jpeg, png, gif (and animated gif), tiff

Parameters

buffer:ByteArray

Returns
ImageElement
getRawInstance()method 
public static function getRawInstance(width:int, height:int, components:int, bpc:int, data:ByteArray, transparency:Vector.<int> = null):ImageElement

Parameters

width:int
 
height:int
 
components:int
 
bpc:int
 
data:ByteArray
 
transparency:Vector.<int> (default = null)

Returns
ImageElement
getSerialId()method 
protected static function getSerialId():Number

Creates a new serial id.

Returns
Number
getTemplateInstance()method 
public static function getTemplateInstance(template:PdfTemplate):ImageElement

Parameters

template:PdfTemplate

Returns
ImageElement
initFromImageElement()method 
public function initFromImageElement(other:ImageElement):void

Parameters

other:ImageElement

makeMask()method 
public function makeMask():void

scaleAbsolute()method 
public function scaleAbsolute(newWidth:Number, newHeight:Number):void

Scale the Image to an absolute width and height

Parameters

newWidth:Number — the new image width
 
newHeight:Number — the new image height

scaleAbsoluteHeight()method 
public function scaleAbsoluteHeight(newHeight:Number):void

Scale the image to an absolute height

Parameters

newHeight:Number

scaleAbsoluteWidth()method 
public function scaleAbsoluteWidth(newWidth:Number):void

Scale the image to an absolute width

Parameters

newWidth:Number

scalePercent()method 
public function scalePercent(percentX:Number, percentY:Number):void

Scale the width and the height of the Image to an absolute percentage

Parameters

percentX:Number
 
percentY:Number

scaleToFit()method 
public function scaleToFit(fitWidth:Number, fitHeight:Number):void

Scales the Image to fit an absolute width and height.

Parameters

fitWidth:Number
 
fitHeight:Number

setAbsolutePosition()method 
public function setAbsolutePosition(absX:Number, absY:Number):void

Set the absolute position of the Image

Parameters

absX:Number
 
absY:Number

setDpi()method 
public function setDpi(x:int, y:int):void

Parameters

x:int
 
y:int

setRotation()method 
public function setRotation(r:Number):void

Set the rotation of the Image in radians

Parameters

r:Number — rotation in radians

setRotationDegrees()method 
public function setRotationDegrees(deg:Number):void

Set the rotation of the Image in degrees

Parameters

deg:Number — rotation in degrees

setWidthPercentage()method 
public function setWidthPercentage(value:Number):void

Parameters

value:Number

Constant Detail
AXConstant
public static const AX:int = 0

AYConstant 
public static const AY:int = 1

BXConstant 
public static const BX:int = 2

BYConstant 
public static const BY:int = 3

CCITT_BLACKIS1Constant 
public static const CCITT_BLACKIS1:int = 1

CCITT_ENCODEDBYTEALIGNConstant 
public static const CCITT_ENCODEDBYTEALIGN:int = 2

CCITT_ENDOFBLOCKConstant 
public static const CCITT_ENDOFBLOCK:int = 8

CCITT_ENDOFLINEConstant 
public static const CCITT_ENDOFLINE:int = 4

CCITTG3_1DConstant 
public static const CCITTG3_1D:int = 0x101

CCITTG3_2DConstant 
public static const CCITTG3_2D:int = 0x102

CCITTG4Constant 
public static const CCITTG4:int = 0x100

CXConstant 
public static const CX:int = 4

CYConstant 
public static const CY:int = 5

DEFAULTConstant 
public static const DEFAULT:int = 0

DXConstant 
public static const DX:int = 6

DYConstant 
public static const DY:int = 7

LEFTConstant 
public static const LEFT:int = 0

MIDDLEConstant 
public static const MIDDLE:int = 1

ORIGINAL_BMPConstant 
public static const ORIGINAL_BMP:int = 4

ORIGINAL_GIFConstant 
public static const ORIGINAL_GIF:int = 3

ORIGINAL_JBIG2Constant 
public static const ORIGINAL_JBIG2:int = 9

ORIGINAL_JPEGConstant 
public static const ORIGINAL_JPEG:int = 1

ORIGINAL_JPEG2000Constant 
public static const ORIGINAL_JPEG2000:int = 8

ORIGINAL_NONEConstant 
public static const ORIGINAL_NONE:int = 0

ORIGINAL_PNGConstant 
public static const ORIGINAL_PNG:int = 2

ORIGINAL_PSConstant 
public static const ORIGINAL_PS:int = 7

ORIGINAL_TIFFConstant 
public static const ORIGINAL_TIFF:int = 5

ORIGINAL_WMFConstant 
public static const ORIGINAL_WMF:int = 6

RIGHTConstant 
public static const RIGHT:int = 2

TEXTWRAPConstant 
public static const TEXTWRAP:int = 4

UNDERLYINGConstant 
public static const UNDERLYING:int = 8