Packagecom.adobe.illustrator
Classpublic class Layer
InheritanceLayer Inheritance IllustratorHostObject Inheritance CSHostObject Inheritance flash.utils.Proxy

Since : CS5

A layer.



Public Properties
 PropertyDefined By
  artworkKnockout : KnockoutState
Is the artwork used to create a knockout.
Layer
  blendingMode : BlendModes
The mode used when compositing an object.
Layer
  color : RGBColor
Color used when outlining artwork in this layer.
Layer
  compoundPathItems : CompoundPathItems
[read-only] The compound path artwork in this layer.
Layer
  dimPlacedImages : Boolean
Is rendered as dimmed in this layer?
Layer
  graphItems : GraphItems
[read-only] The graph art items in this layer.
Layer
  groupItems : GroupItems
[read-only] The group items in this layer.
Layer
  hasSelectedArtwork : Boolean
Is any artwork in this layer selected? Setting this property to false deselects all artwork in the layer.
Layer
 InheritedhostObjectDelegate : HostObject
Getter for the delegate
CSHostObject
  isIsolated : Boolean
Is the artwork isolated.
Layer
  layers : Layers
[read-only] Nested layers.
Layer
  legacyTextItems : LegacyTextItems
[read-only] The text frame items in this story.
Layer
  locked : Boolean
Is the layer editable?
Layer
  meshItems : MeshItems
[read-only] The mesh art items in this layer.
Layer
  name : String
The layer's name.
Layer
  nonNativeItems : NonNativeItems
[read-only] The non-native art items in this layer.
Layer
  opacity : Number
The layer's opacity (between 0.0 and 100.0)
Layer
  pageItems : PageItems
[read-only] All the artwork in this layer.
Layer
 Inheritedparent : *
[read-only]
IllustratorHostObject
  pathItems : PathItems
[read-only] The path artwork in this layer.
Layer
  placedItems : PlacedItems
[read-only] The placed art items in this layer.
Layer
  pluginItems : PluginItems
[read-only] The plugin art items in this layer.
Layer
  preview : Boolean
Is the layer rendered in preview mode?
Layer
  printable : Boolean
Is the layer printable?
Layer
  rasterItems : RasterItems
[read-only] The raster art items in this layer.
Layer
  sliced : Boolean
Is the layer sliced (default: false)
Layer
  symbolItems : SymbolItems
[read-only] The symbol items in this layer.
Layer
  textFrames : TextFrames
[read-only] The text frame items in this layer.
Layer
  visible : Boolean
Is the layer visible?
Layer
  zOrderPosition : Number
[read-only] The drawing order of the layer.
Layer
Public Methods
 MethodDefined By
 Inherited
filterArgsForHBAPI(args:Array):Array
[static] Function to clean up the argument list and put it into a format that makes sense for HBAPI.
CSHostObject
 Inherited
filterSingleObjectForHBAPI(value:Object):Object
[static]
CSHostObject
 Inherited
getClassObjectForName(className:String):HostObject
[static] This returns a "Class" object, meaning, a HostObject that can be used to make static function calls or get static properties
CSHostObject
 Inherited
getSpecialTranslation(className:String, ho:HostObject, expectedReturnType:Class, ownerName:String):*
[static]
CSHostObject
 Inherited
hostCall(name:String, expectedReturnType:Class, rawargs:Array):*
Encapsulates a function call to the host
CSHostObject
 Inherited
hostCallStatic(className:String, methodName:String, expectedReturnType:Class, rawargs:Array):*
[static] Implements a safe call of a static method on the host
CSHostObject
 Inherited
hostGet(name:String, expectedReturnType:Class):*
Encapsulates a property get to the host
CSHostObject
 Inherited
hostGetIndex(idx:Object, expectedReturnType:Class):*
Encapsulates a indexed get to the host
CSHostObject
 Inherited
hostGetStatic(className:String, propertyName:String, expectedReturnType:Class):*
[static] Implements a safe get of a static property on the host Used by for instance, all the enum implementations.
CSHostObject
 Inherited
hostSet(name:String, rawvalue:*):void
Encapsulates a property set to the host
CSHostObject
 Inherited
hostSetStatic(className:String, propertyName:String, rawvalue:*):*
[static] Implements a safe set of a static property on the host
CSHostObject
 Inherited
isDescendedFrom(clz:Class, ancClass:Class):Boolean
[static] Efficiently determines whether or not one class descends from another in inheritance hierarchy- class relationships are cached by the ClassUtils implementation- (uses org.as3commons lib to quickly discover class hierarchy.
CSHostObject
  
move(relativeObject:Object, insertionLocation:ElementPlacement):void
move the object
Layer
  
remove():void
delete the object
Layer
 Inherited
replaceDefaultArgs(args:Array, defaultArgs:Array):Array
Function to tidy up arguments prior to call.
CSHostObject
 Inherited
wrapReturnedHostObject(rawObject:Object, expectedReturnType:Class, client:CSHostObject, propertyName:String):*
[static] Method used on static/normal get/ hostcalls
CSHostObject
  
zOrder(zOrderCmd:ZOrderMethod):void
Arranges the layer relative to other layers.
Layer
Protected Methods
 MethodDefined By
 Inherited
createWithArgs(args:Array):void
CSHostObject
 Inherited
hostCreate(args:Array):void
CSHostObject
Property Detail
artworkKnockoutproperty
artworkKnockout:KnockoutState

Since : CS5

Is the artwork used to create a knockout.


Implementation
    public function get artworkKnockout():KnockoutState
    public function set artworkKnockout(value:KnockoutState):void
blendingModeproperty 
blendingMode:BlendModes

Since : CS5

The mode used when compositing an object.


Implementation
    public function get blendingMode():BlendModes
    public function set blendingMode(value:BlendModes):void
colorproperty 
color:RGBColor

Since : CS5

Color used when outlining artwork in this layer.


Implementation
    public function get color():RGBColor
    public function set color(value:RGBColor):void
compoundPathItemsproperty 
compoundPathItems:CompoundPathItems  [read-only]

Since : CS5

The compound path artwork in this layer.


Implementation
    public function get compoundPathItems():CompoundPathItems
dimPlacedImagesproperty 
dimPlacedImages:Boolean

Since : CS5

Is rendered as dimmed in this layer?


Implementation
    public function get dimPlacedImages():Boolean
    public function set dimPlacedImages(value:Boolean):void
graphItemsproperty 
graphItems:GraphItems  [read-only]

Since : CS5

The graph art items in this layer.


Implementation
    public function get graphItems():GraphItems
groupItemsproperty 
groupItems:GroupItems  [read-only]

Since : CS5

The group items in this layer.


Implementation
    public function get groupItems():GroupItems
hasSelectedArtworkproperty 
hasSelectedArtwork:Boolean

Since : CS5

Is any artwork in this layer selected? Setting this property to false deselects all artwork in the layer.


Implementation
    public function get hasSelectedArtwork():Boolean
    public function set hasSelectedArtwork(value:Boolean):void
isIsolatedproperty 
isIsolated:Boolean

Since : CS5

Is the artwork isolated.


Implementation
    public function get isIsolated():Boolean
    public function set isIsolated(value:Boolean):void
layersproperty 
layers:Layers  [read-only]

Since : CS5

Nested layers.


Implementation
    public function get layers():Layers
legacyTextItemsproperty 
legacyTextItems:LegacyTextItems  [read-only]

Since : CS5

The text frame items in this story.


Implementation
    public function get legacyTextItems():LegacyTextItems
lockedproperty 
locked:Boolean

Since : CS5

Is the layer editable?


Implementation
    public function get locked():Boolean
    public function set locked(value:Boolean):void
meshItemsproperty 
meshItems:MeshItems  [read-only]

Since : CS5

The mesh art items in this layer.


Implementation
    public function get meshItems():MeshItems
nameproperty 
name:String

Since : CS5

The layer's name.


Implementation
    public function get name():String
    public function set name(value:String):void
nonNativeItemsproperty 
nonNativeItems:NonNativeItems  [read-only]

Since : CS5

The non-native art items in this layer.


Implementation
    public function get nonNativeItems():NonNativeItems
opacityproperty 
opacity:Number

Since : CS5

The layer's opacity (between 0.0 and 100.0)


Implementation
    public function get opacity():Number
    public function set opacity(value:Number):void
pageItemsproperty 
pageItems:PageItems  [read-only]

Since : CS5

All the artwork in this layer.


Implementation
    public function get pageItems():PageItems
pathItemsproperty 
pathItems:PathItems  [read-only]

Since : CS5

The path artwork in this layer.


Implementation
    public function get pathItems():PathItems
placedItemsproperty 
placedItems:PlacedItems  [read-only]

Since : CS5

The placed art items in this layer.


Implementation
    public function get placedItems():PlacedItems
pluginItemsproperty 
pluginItems:PluginItems  [read-only]

Since : CS5

The plugin art items in this layer.


Implementation
    public function get pluginItems():PluginItems
previewproperty 
preview:Boolean

Since : CS5

Is the layer rendered in preview mode?


Implementation
    public function get preview():Boolean
    public function set preview(value:Boolean):void
printableproperty 
printable:Boolean

Since : CS5

Is the layer printable?


Implementation
    public function get printable():Boolean
    public function set printable(value:Boolean):void
rasterItemsproperty 
rasterItems:RasterItems  [read-only]

Since : CS5

The raster art items in this layer.


Implementation
    public function get rasterItems():RasterItems
slicedproperty 
sliced:Boolean

Since : CS5

Is the layer sliced (default: false)


Implementation
    public function get sliced():Boolean
    public function set sliced(value:Boolean):void
symbolItemsproperty 
symbolItems:SymbolItems  [read-only]

Since : CS5

The symbol items in this layer.


Implementation
    public function get symbolItems():SymbolItems
textFramesproperty 
textFrames:TextFrames  [read-only]

Since : CS5

The text frame items in this layer.


Implementation
    public function get textFrames():TextFrames
visibleproperty 
visible:Boolean

Since : CS5

Is the layer visible?


Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
zOrderPositionproperty 
zOrderPosition:Number  [read-only]

Since : CS5

The drawing order of the layer.


Implementation
    public function get zOrderPosition():Number
Method Detail
move()method
public function move(relativeObject:Object, insertionLocation:ElementPlacement):void

Since : CS5

move the object

Parameters

relativeObject:Object — (Object)
 
insertionLocation:ElementPlacement — (com.adobe.illustrator.ElementPlacement)

remove()method 
public function remove():void

Since : CS5

delete the object

zOrder()method 
public function zOrder(zOrderCmd:ZOrderMethod):void

Since : CS5

Arranges the layer relative to other layers.

Parameters

zOrderCmd:ZOrderMethod — (com.adobe.illustrator.ZOrderMethod) How to arrange the layer.