패키지 | mx.charts.chartClasses |
클래스 | public class InstanceCache |
상속 | InstanceCache Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
count : int
The number of items currently required in the cache. | InstanceCache | ||
creationCallback : Function
A callback invoked when new instances are created. | InstanceCache | ||
discard : Boolean = false
Determines if unneeded instances are discarded. | InstanceCache | ||
factory : IFactory
A factory that generates the type of object to cache. | InstanceCache | ||
format : flash.text:TextFormat
A TextFormat to apply to any instances created. | InstanceCache | ||
hide : Boolean = true
Determines if unneeded instances should be hidden. | InstanceCache | ||
insertPosition : int [쓰기 전용]
The position of the instance in the parent's child list. | InstanceCache | ||
instances : Array [읽기 전용]
The Array of cached instances. | InstanceCache | ||
properties : Object
A hashmap of properties to assign to new instances. | InstanceCache | ||
remove : Boolean = false
Determines if unneeded instances should be removed from their parent. | InstanceCache |
메서드 | 정의 주체 | ||
---|---|---|---|
InstanceCache(type:Object, parent:Object = null, insertPosition:int = -1, moduleFactory:IFlexModuleFactory = null)
Constructor. | InstanceCache | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
count | 속성 |
creationCallback | 속성 |
public var creationCallback:Function
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A callback invoked when new instances are created. This callback has the following signature:
function creationCallback(newInstance:Object, cache:InstanceCache):void;
discard | 속성 |
public var discard:Boolean = false
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Determines if unneeded instances are discarded.
If set to true
, extra elements are discarded
when the cache count is reduced.
Otherwise, extra elements are kept in a separate cache
and reused when the count is increased.
factory | 속성 |
factory:IFactory
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A factory that generates the type of object to cache. Assigning to this discards all current instances and recreate new instances of the correct type.
구현
public function get factory():IFactory
public function set factory(value:IFactory):void
format | 속성 |
format:flash.text:TextFormat
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A TextFormat to apply to any instances created. If set, this format is applied as the current and default format for the contents of any instances created. This property is only relevant if the factory generates TextField instances.
구현
public function get format():flash.text:TextFormat
public function set format(value:flash.text:TextFormat):void
hide | 속성 |
public var hide:Boolean = true
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Determines if unneeded instances should be hidden.
If true
, the visible
property
is set to false
on each extra element
when the cache count is reduced, and set to true
when the count is increased.
This property is only relevant when the factory
generates DisplayObjects.
Setting this property to true
for other factory types
generates a run-time error.
insertPosition | 속성 |
instances | 속성 |
instances:Array
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The Array of cached instances.
There may be more instances in this Array than currently requested.
You should rely on the count
property
of the instance cache rather than the length of this Array.
구현
public function get instances():Array
properties | 속성 |
properties:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A hashmap of properties to assign to new instances. Each key/value pair in this hashmap is assigned to each new instance created. The property hashmap is assigned to any existing instances when set.
The values in the hashmap are not cloned; object values are shared by all instances.
구현
public function get properties():Object
public function set properties(value:Object):void
remove | 속성 |
public var remove:Boolean = false
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Determines if unneeded instances should be removed from their parent.
If true
, the removeChild()
method
is called on the parent for each extra element
when the cache count is reduced.
This property is only relevant when the factory
generates DisplayObjects.
Setting this property to true
for other factory types
generates a run-time error.
InstanceCache | () | 생성자 |
public function InstanceCache(type:Object, parent:Object = null, insertPosition:int = -1, moduleFactory:IFlexModuleFactory = null)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
매개 변수type:Object — The type of object to construct.
This can be either a Class or an IFactory.
| |
parent:Object (default = null ) — An optional DisplayObject to add new instances to.
| |
insertPosition:int (default = -1 ) — Where in the parent's child list
to insert instances. Set to -1 to add the children to the end of the child list.
| |
moduleFactory:IFlexModuleFactory (default = null ) — The context for using embedded fonts and for
finding the style manager that controls the styles for this component.
|
Tue Jun 12 2018, 03:17 PM Z